Browse Source

Fix usage of ComboBox in control catalog ViewboxPage (#14972)

pull/14973/head
Ge 2 years ago
committed by GitHub
parent
commit
efecbae942
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 26
      samples/ControlCatalog/Pages/ViewboxPage.xaml

26
samples/ControlCatalog/Pages/ViewboxPage.xaml

@ -27,20 +27,24 @@
<Slider Minimum="10" Maximum="200" Value="100" x:Name="HeightSlider" TickFrequency="25" TickPlacement="TopLeft" />
<TextBlock Text="Stretch" />
<ComboBox x:Name="StretchSelector" HorizontalAlignment="Stretch" SelectedIndex="0" Margin="0,0,0,2">
<collections:ArrayList>
<Stretch>Uniform</Stretch>
<Stretch>UniformToFill</Stretch>
<Stretch>Fill</Stretch>
<Stretch>None</Stretch>
</collections:ArrayList>
<ComboBox.ItemsSource>
<collections:ArrayList>
<Stretch>Uniform</Stretch>
<Stretch>UniformToFill</Stretch>
<Stretch>Fill</Stretch>
<Stretch>None</Stretch>
</collections:ArrayList>
</ComboBox.ItemsSource>
</ComboBox>
<TextBlock Text="Stretch Direction" />
<ComboBox x:Name="StretchDirectionSelector" SelectedIndex="0" HorizontalAlignment="Stretch">
<collections:ArrayList>
<StretchDirection>Both</StretchDirection>
<StretchDirection>DownOnly</StretchDirection>
<StretchDirection>UpOnly</StretchDirection>
</collections:ArrayList>
<ComboBox.ItemsSource>
<collections:ArrayList>
<StretchDirection>Both</StretchDirection>
<StretchDirection>DownOnly</StretchDirection>
<StretchDirection>UpOnly</StretchDirection>
</collections:ArrayList>
</ComboBox.ItemsSource>
</ComboBox>
</StackPanel>
</Grid>

Loading…
Cancel
Save