Skip to content

Commit

Permalink
Set BorderColor to transparent on Xamarin.Forms 3.0 Frames #44 #32
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmanuelthiel committed May 24, 2018
1 parent 1cfd097 commit 5fdfb47
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Flex/Controls/FlexButton.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
CornerRadius="{Binding Source={x:Reference this}, Path=CornerRadius}"
Padding="{Binding Source={x:Reference this}, Path=BorderThickness}"
HasShadow="false">
<controls:GestureFrame.BorderColor>
<!--- HACK: Temporary Bugfix for Xamarin.Forms 3.0 bug https://github.com/xamarin/Xamarin.Forms/issues/2634 -->
<OnPlatform x:TypeArguments="Color" Default="Transparent">
<!--<On Platform="Android" Value="{Binding Source={x:Reference this}, Path=BorderColor}" />-->
</OnPlatform>
</controls:GestureFrame.BorderColor>

<controls:GestureFrame.GestureRecognizers>
<extensions:TouchGestureRecognizer x:Name="TouchRecognizer" />
Expand All @@ -27,6 +33,12 @@
HasShadow="false"
Padding="0"
Margin="0">
<controls:GestureFrame.BorderColor>
<!--- HACK: Temporary Bugfix for Xamarin.Forms 3.0 bug https://github.com/xamarin/Xamarin.Forms/issues/2634 -->
<OnPlatform x:TypeArguments="Color" Default="Transparent">
<!--<On Platform="Android" Value="{Binding Source={x:Reference this}, Path=BackgroundColor}" />-->
</OnPlatform>
</controls:GestureFrame.BorderColor>

<ContentView
HorizontalOptions="FillAndExpand"
Expand Down

0 comments on commit 5fdfb47

Please sign in to comment.