Hi,
I'm building a grid from my controller code but would like to use the style I defined in my ResourceDictionary (mLabelStyle).
Does anyone know how to set this style?
Thanks!
<Application
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MolinaEmployee1.App">
<Application.Resources>
<ResourceDictionary>
<Style x:Key="mLabelStyle" TargetType="Label">
<Setter Property="TextColor" Value="#00A1B0" />
<Setter Property="FontSize">
<Setter.Value>
...
var label = new Label { Text = "Row 1" };
myGrid.Children.Add(label,0,0);
// Set the style to mLabelStyle somehow