Created
March 3, 2019 17:08
-
-
Save ChaseFlorell/fd32063eb9cc496fc7dc65727cfa9981 to your computer and use it in GitHub Desktop.
trying to adjust FlexLayout.Basis on orientation changed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Grid.Triggers> | |
<DataTrigger TargetType="Grid" Binding="{Binding CurrentOrientation, Source={x:Static Device.Info}}" Value="{x:Static internals:DeviceOrientation.Portrait}" > | |
<Setter Property="FlexLayout.Basis" Value="50%" /> | |
</DataTrigger> | |
<DataTrigger TargetType="Grid" Binding="{Binding CurrentOrientation, Source={x:Static Device.Info}}" Value="{x:Static internals:DeviceOrientation.Landscape}" > | |
<Setter Property="FlexLayout.Basis" Value="33%" /> | |
</DataTrigger> | |
</Grid.Triggers> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The idea here was to try and have Landscape show 3 items whereby Portrait only showing 2