Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Listbox text truncation when text is scaled up #1397

Merged
merged 3 commits into from
Nov 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions WinUIGallery/ControlPages/ListBoxPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
<StackPanel>
<local:ControlExample x:Name="Example1" HeaderText="A ListBox with items defined inline and its width set.">
<local:ControlExample x:Name="Example1" HeaderText="A ListBox with items defined inline and its minimum width set.">
<local:ControlExample.Example>
<StackPanel>
<ListBox x:Name="ListBox1" SelectionChanged="ColorListBox_SelectionChanged" Width="200" HighContrastAdjustment="Auto">
<ListBox x:Name="ListBox1" SelectionChanged="ColorListBox_SelectionChanged" MinWidth="200" HighContrastAdjustment="Auto">
<x:String>Blue</x:String>
<x:String>Green</x:String>
<x:String>Red</x:String>
Expand All @@ -28,7 +28,7 @@
</local:ControlExample.Example>
<local:ControlExample.Xaml>
<x:String xml:space="preserve">
&lt;ListBox SelectionChanged="ColorListBox_SelectionChanged" Width="200"&gt;
&lt;ListBox SelectionChanged="ColorListBox_SelectionChanged" MinWidth="200"&gt;
&lt;x:String&gt;Blue&lt;x:String&gt;
&lt;x:String&gt;Green&lt;x:String&gt;
&lt;x:String&gt;Red&lt;x:String&gt;
Expand Down