Skip to content

Commit

Permalink
Fix usage of ComboBox in control catalog ViewboxPage (#14972)
Browse files Browse the repository at this point in the history
  • Loading branch information
gehongyan authored Mar 14, 2024
1 parent 9e89533 commit efecbae
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions samples/ControlCatalog/Pages/ViewboxPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit efecbae

Please sign in to comment.