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

BorderColor isn't working

$
0
0

Hey, I'm really bored to loose time with that, but I'm stuck with the BorderColor of a button and the OutlineColor of a Frame.

I tried both in xaml file but they aren't showing on my Android application.

This is my code :
<ContentPage.Resources> <ResourceDictionary> <Style x:Key="buttonStyle" TargetType="Button"> <Setter Property="BorderColor" Value="{x:Static statics:Colors._Accent}" /> <Setter Property="BorderRadius" Value="5" /> <Setter Property="BorderWidth" Value="5" /> <Setter Property="BackgroundColor" Value="{x:Static statics:Colors._Primary}" /> <Setter Property="WidthRequest" Value="200" /> <Setter Property="TextColor" Value="Teal" /> </Style> </ResourceDictionary> </ContentPage.Resources>

And

<ContentPage.Content> <StackLayout Orientation="Vertical" VerticalOptions="Start" BackgroundColor="{x:Static statics:Colors._PageBackground}" > <Frame OutlineColor="#1961ac"> <Label Text="Test"/> </Frame> <Button Text="Test" Style="{StaticResource buttonStyle}" ></Button> </StackLayout> </ContentPage.Content>

I use the last pre version of Xamarin Forms and the AppCompat theme.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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