Relative width for UI Elements with RelativePanel in XAML with UWP Apps
I want to realize something like |Image (40% Width)|Text(60% Width)| that adapts to small screens like |Image (100%)| |Text(100%| I've got the following solution with AdaptiveTrigger and an Grid. <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="VisualStateGroup"> <VisualState x:Name="NarrowView"> <VisualState.StateTriggers> <AdaptiveTrigger MinWindowWidth="0" /> </VisualState.StateTriggers> <VisualState.Setters> <Setter Target="Image.(Grid.ColumnSpan)" Value="2" /> <Setter Target="Text.(Grid.Row)" Value="1"