Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Does not apply styles in Debug

$
0
0

I'm applying a style to a page; but when I run the application on my device it does not apply the styles or the placement to a label; I'm running the application in Debug, but if you ran the Release application, apply the changes. I would like to know how I can make changes to the styles in Debug.

<Page.Resources>
    <ResourceDictionary>
        <Style x:Key="baseLabelStyle" TargetType="Label">
                <Setter Property="FontSize" Value="22" />
       </Style>
        <Style x:Key="infoLabelStyle" BasedOn="{StaticResource baseLabelStyle}" TargetType="Label">
            <Setter Property="FontAttributes" Value="Bold" />
        </Style>
    </ResourceDictionary>
</Page.Resources>

the styles are being applied in the following way

<Label x:Name="billLabel" Text="Bill" TextColor="{DynamicResource fgColor}" Style="{StaticResource infoLabelStyle}" Grid.Row="0" Grid.Column="0" />

I appreciate the collaboration


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>