|
204 | 204 |
|
205 | 205 | <Grid |
206 | 206 | Padding="4,4,4,4" |
| 207 | + HorizontalAlignment="Stretch" |
207 | 208 | ColumnSpacing="4" |
208 | 209 | Opacity="{x:Bind ListedOpacity, Mode=OneWay}"> |
209 | 210 | <Grid.RowDefinitions> |
210 | | - <RowDefinition Height="Auto" /> |
211 | | - <RowDefinition Height="Auto" /> |
212 | | - <RowDefinition Height="Auto" /> |
| 211 | + <RowDefinition Height="48" /> |
213 | 212 | </Grid.RowDefinitions> |
214 | 213 | <Grid.ColumnDefinitions> |
215 | | - <ColumnDefinition Width="Auto" /> |
216 | | - <ColumnDefinition Width="*" MinWidth="200" /> |
217 | | - <ColumnDefinition Width="Auto" /> |
| 214 | + <ColumnDefinition Width="48" /> |
| 215 | + <ColumnDefinition Width="*" /> |
| 216 | + <ColumnDefinition Width="22" /> |
218 | 217 | </Grid.ColumnDefinitions> |
219 | 218 |
|
220 | 219 | <!-- Regular or package icon --> |
221 | | - <Grid |
222 | | - Grid.Row="0" |
223 | | - Grid.RowSpan="3" |
| 220 | + <widgets:LocalIcon |
224 | 221 | Grid.Column="0" |
225 | | - Width="48" |
226 | | - Height="48"> |
227 | | - <widgets:LocalIcon |
228 | | - Grid.Row="0" |
229 | | - Grid.RowSpan="3" |
230 | | - Grid.Column="0" |
231 | | - Margin="-4,0" |
232 | | - HorizontalAlignment="Center" |
233 | | - VerticalAlignment="Center" |
234 | | - FontSize="48" |
235 | | - FontWeight="ExtraLight" |
236 | | - Icon="Package" |
237 | | - ToolTipService.ToolTip="{x:Bind ListedNameTooltip, Mode=OneWay}" |
238 | | - Visibility="{x:Bind ShowDefaultPackageIcon, Mode=OneWay}" /> |
239 | | - |
240 | | - <Image |
241 | | - Width="48" |
242 | | - Height="48" |
243 | | - HorizontalAlignment="Center" |
244 | | - VerticalAlignment="Center" |
245 | | - Source="{x:Bind MainIconSource, Mode=OneWay}" |
246 | | - ToolTipService.ToolTip="{x:Bind ListedNameTooltip, Mode=OneWay}" |
247 | | - Visibility="{x:Bind ShowCustomPackageIcon, Mode=OneWay}" /> |
| 222 | + HorizontalAlignment="Center" |
| 223 | + VerticalAlignment="Center" |
| 224 | + FontSize="48" |
| 225 | + FontWeight="ExtraLight" |
| 226 | + Icon="Package" |
| 227 | + ToolTipService.ToolTip="{x:Bind ListedNameTooltip, Mode=OneWay}" |
| 228 | + Visibility="{x:Bind ShowDefaultPackageIcon, Mode=OneWay}" /> |
248 | 229 |
|
249 | | - <widgets:LocalIcon |
250 | | - Grid.Row="0" |
251 | | - Grid.Column="1" |
252 | | - Width="30" |
253 | | - Height="30" |
254 | | - Margin="0,0,-4,-2" |
255 | | - HorizontalAlignment="Right" |
256 | | - VerticalAlignment="Bottom" |
257 | | - FontSize="30" |
258 | | - FontWeight="ExtraLight" |
259 | | - Foreground="{ThemeResource AccentAAFillColorTertiaryBrush}" |
260 | | - Icon="{x:Bind AlternateIconId, Mode=OneWay}" |
261 | | - ToolTipService.ToolTip="{x:Bind ListedNameTooltip, Mode=OneWay}" |
262 | | - Visibility="{x:Bind AlternateIdIconVisible, Mode=OneWay}" /> |
| 230 | + <Image |
| 231 | + Grid.Column="0" |
| 232 | + Width="44" |
| 233 | + HorizontalAlignment="Center" |
| 234 | + VerticalAlignment="Center" |
| 235 | + Source="{x:Bind MainIconSource, Mode=OneWay}" |
| 236 | + ToolTipService.ToolTip="{x:Bind ListedNameTooltip, Mode=OneWay}" |
| 237 | + Visibility="{x:Bind ShowCustomPackageIcon, Mode=OneWay}" /> |
263 | 238 |
|
264 | | - <widgets:LocalIcon |
265 | | - Grid.Row="0" |
266 | | - Grid.Column="1" |
267 | | - Width="30" |
268 | | - Height="30" |
269 | | - Margin="0,0,-4,-2" |
270 | | - HorizontalAlignment="Right" |
271 | | - VerticalAlignment="Bottom" |
272 | | - FontSize="30" |
273 | | - FontWeight="ExtraLight" |
274 | | - Icon="{x:Bind MainIconId, Mode=OneWay}" |
275 | | - ToolTipService.ToolTip="{x:Bind ListedNameTooltip, Mode=OneWay}" |
276 | | - Visibility="{x:Bind AlternateIdIconVisible, Mode=OneWay}" /> |
| 239 | + <widgets:LocalIcon |
| 240 | + Grid.Column="0" |
| 241 | + Margin="0,0,-4,-2" |
| 242 | + HorizontalAlignment="Right" |
| 243 | + VerticalAlignment="Bottom" |
| 244 | + FontSize="30" |
| 245 | + FontWeight="ExtraLight" |
| 246 | + Foreground="{ThemeResource AccentAAFillColorTertiaryBrush}" |
| 247 | + Icon="{x:Bind AlternateIconId, Mode=OneWay}" |
| 248 | + ToolTipService.ToolTip="{x:Bind ListedNameTooltip, Mode=OneWay}" |
| 249 | + Visibility="{x:Bind AlternateIdIconVisible, Mode=OneWay}" /> |
277 | 250 |
|
278 | | - </Grid> |
| 251 | + <widgets:LocalIcon |
| 252 | + Grid.Column="0" |
| 253 | + Margin="0,0,-4,-2" |
| 254 | + HorizontalAlignment="Right" |
| 255 | + VerticalAlignment="Bottom" |
| 256 | + FontSize="30" |
| 257 | + FontWeight="ExtraLight" |
| 258 | + Icon="{x:Bind MainIconId, Mode=OneWay}" |
| 259 | + ToolTipService.ToolTip="{x:Bind ListedNameTooltip, Mode=OneWay}" |
| 260 | + Visibility="{x:Bind AlternateIdIconVisible, Mode=OneWay}" /> |
279 | 261 |
|
280 | | - <StackPanel |
281 | | - Grid.Row="0" |
282 | | - Grid.RowSpan="3" |
| 262 | + <CheckBox |
283 | 263 | Grid.Column="2" |
284 | | - Width="24" |
285 | | - Orientation="Vertical"> |
286 | | - <CheckBox |
287 | | - Margin="2,-4,0,0" |
288 | | - HorizontalAlignment="Left" |
289 | | - VerticalAlignment="Top" |
290 | | - IsChecked="{x:Bind IsChecked, Mode=TwoWay}" /> |
291 | | - <Button |
292 | | - Width="24" |
293 | | - Height="24" |
294 | | - Margin="0" |
295 | | - Padding="0" |
296 | | - Background="Transparent" |
297 | | - BorderThickness="0" |
298 | | - Click="{x:Bind RightClick}" |
299 | | - Tapped="ContextMenuButton_Tapped"> |
300 | | - <SymbolIcon Symbol="More" /> |
301 | | - </Button> |
302 | | - </StackPanel> |
303 | | - <!-- Package tag icon --> |
| 264 | + Margin="1,-4,0,0" |
| 265 | + HorizontalAlignment="Left" |
| 266 | + VerticalAlignment="Top" |
| 267 | + IsChecked="{x:Bind IsChecked, Mode=TwoWay}" /> |
| 268 | + <Button |
| 269 | + Grid.Column="2" |
| 270 | + Width="22" |
| 271 | + Height="22" |
| 272 | + Padding="0" |
| 273 | + VerticalAlignment="Bottom" |
| 274 | + Background="Transparent" |
| 275 | + BorderThickness="0" |
| 276 | + Click="{x:Bind RightClick}" |
| 277 | + Tapped="ContextMenuButton_Tapped"> |
| 278 | + <SymbolIcon Symbol="More" /> |
| 279 | + </Button> |
304 | 280 |
|
305 | 281 | <TextBlock |
306 | | - Grid.Row="0" |
307 | 282 | Grid.Column="1" |
308 | | - VerticalAlignment="Center" |
| 283 | + VerticalAlignment="Top" |
309 | 284 | FontFamily="Segoe UI Variable Text" |
310 | 285 | FontSize="14" |
311 | 286 | FontWeight="SemiBold" |
312 | 287 | Text="{x:Bind Package.Name}" |
313 | 288 | ToolTipService.ToolTip="{x:Bind ListedNameTooltip, Mode=OneWay}" /> |
314 | 289 |
|
315 | 290 | <TextBlock |
316 | | - Grid.Row="1" |
317 | 291 | Grid.Column="1" |
| 292 | + VerticalAlignment="Center" |
318 | 293 | FontFamily="Segoe UI Variable Text" |
319 | 294 | FontSize="11" |
320 | 295 | Opacity="0.8" |
321 | 296 | Text="{x:Bind Package.Id}" |
322 | 297 | ToolTipService.ToolTip="{x:Bind Package.Id}" /> |
323 | 298 |
|
324 | 299 | <TextBlock |
325 | | - Grid.Row="2" |
326 | 300 | Grid.Column="1" |
| 301 | + VerticalAlignment="Bottom" |
327 | 302 | FontFamily="Segoe UI Variable Text" |
328 | 303 | FontSize="11" |
329 | 304 | Opacity="0.5" |
330 | 305 | Text="{x:Bind VersionComboString, Mode=OneWay}" |
331 | 306 | ToolTipService.ToolTip="{x:Bind Package.VersionString}" /> |
332 | | - |
333 | 307 | </Grid> |
334 | 308 | </widgets:PackageItemContainer> |
335 | 309 | </DataTemplate> |
|
0 commit comments