diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Pages/SampleController.xaml b/Microsoft.Toolkit.Uwp.SampleApp/Pages/SampleController.xaml index 57f54f29aa5..de86f8e610f 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/Pages/SampleController.xaml +++ b/Microsoft.Toolkit.Uwp.SampleApp/Pages/SampleController.xaml @@ -82,6 +82,12 @@ + + + + + + diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Pages/SampleController.xaml.cs b/Microsoft.Toolkit.Uwp.SampleApp/Pages/SampleController.xaml.cs index d34b54f1e22..917b34652f8 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/Pages/SampleController.xaml.cs +++ b/Microsoft.Toolkit.Uwp.SampleApp/Pages/SampleController.xaml.cs @@ -52,6 +52,9 @@ public SampleController() ThemePicker.SelectedIndex = (int)GetCurrentTheme(); ThemePicker.SelectionChanged += ThemePicker_SelectionChanged; + FlowDirectionPicker.SelectedIndex = (int)DemoFlowDirection; + FlowDirectionPicker.SelectionChanged += this.FlowDirectionPicker_SelectionChanged; + DocumentationTextBlock.SetRenderer(); ProcessSampleEditorTime(); @@ -661,6 +664,11 @@ private void ThemePicker_SelectionChanged(object sender, SelectionChangedEventAr } } + private void FlowDirectionPicker_SelectionChanged(object sender, SelectionChangedEventArgs e) + { + DemoFlowDirection = (FlowDirection)FlowDirectionPicker.SelectedIndex; + } + public Sample CurrentSample { get; private set; } public ObservableCollection Commands { get; } = new ObservableCollection(); @@ -694,6 +702,12 @@ public bool UseBackground } } + private FlowDirection DemoFlowDirection + { + get => DemoAreaGrid.FlowDirection; + set => DemoAreaGrid.FlowDirection = value; + } + // The Loaded Instance of the backing .xaml.cs Page (if any) private Page SamplePage { get; set; }