|
31 | 31 | <ColumnDefinition Width="*" />
|
32 | 32 | <ColumnDefinition Width="Auto" />
|
33 | 33 | </Grid.ColumnDefinitions>
|
| 34 | + <!-- |
| 35 | + BODGY: We want two columns of content: |
| 36 | + 1. the identifier (e.g. profile name), aligned left |
| 37 | + 2. the buttons (e.g. reorder, delete), aligned right |
| 38 | + There's a bug in WinUI 2 for Windows 10 where these nested columns are treated as "auto" instead |
| 39 | + of *-sized. To work around this, we can set the width of the first column's content to |
| 40 | + StandardControlMaxWidth. The first column will be clipped as necessary to make space for the second column, |
| 41 | + resulting in the desired layout. |
| 42 | + --> |
34 | 43 | <ContentPresenter Grid.Column="0"
|
| 44 | + Width="{StaticResource StandardControlMaxWidth}" |
35 | 45 | Content="{TemplateBinding Content}" />
|
36 | 46 | <StackPanel Grid.Column="1"
|
37 | 47 | Orientation="Horizontal"
|
|
127 | 137 | <ColumnDefinition Width="*" />
|
128 | 138 | <ColumnDefinition Width="Auto" />
|
129 | 139 | </Grid.ColumnDefinitions>
|
| 140 | + <!-- |
| 141 | + BODGY: We want two columns of content: |
| 142 | + 1. the identifier (e.g. profile name), aligned left |
| 143 | + 2. the buttons (e.g. reorder, delete), aligned right |
| 144 | + There's a bug in WinUI 2 for Windows 10 where these nested columns are treated as "auto" instead |
| 145 | + of *-sized. To work around this, we can set the width of the first column's content to |
| 146 | + StandardControlMaxWidth. The first column will be clipped as necessary to make space for the second column, |
| 147 | + resulting in the desired layout. |
| 148 | + --> |
130 | 149 | <StackPanel Grid.Column="0"
|
| 150 | + Width="{StaticResource StandardControlMaxWidth}" |
131 | 151 | Orientation="Horizontal">
|
132 | 152 | <IconSourceElement Width="16"
|
133 | 153 | Height="16"
|
|
0 commit comments