mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
* MinWidth/Height and DPI-aware launch dimensions * Making MainWindow DPI aware too * Moving toastwindow to WinUIEx too * Update MainWindow.xaml.cs * Reverting back to the working logic * Localizing settings window title * Xaml formatting * Update SettingsWindow.xaml.cs
24 lines
1000 B
XML
24 lines
1000 B
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<winuiex:WindowEx
|
|
x:Class="Microsoft.CmdPal.UI.ToastWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="using:Microsoft.CmdPal.UI"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:ui="using:CommunityToolkit.WinUI"
|
|
xmlns:winuiex="using:WinUIEx"
|
|
Title="Command Palette Toast"
|
|
mc:Ignorable="d">
|
|
<winuiex:WindowEx.SystemBackdrop>
|
|
<DesktopAcrylicBackdrop />
|
|
</winuiex:WindowEx.SystemBackdrop>
|
|
<Grid x:Name="ToastGrid">
|
|
<!-- This padding is used to calculate the dimensions of the ToastWindow -->
|
|
<TextBlock
|
|
x:Name="ToastText"
|
|
Padding="12,12,24,20"
|
|
Text="{x:Bind ViewModel.ToastMessage, Mode=OneWay}"
|
|
TextAlignment="Center" />
|
|
</Grid>
|
|
</winuiex:WindowEx> |