/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/Workspaces/WorkspacesEditor/SnapshotWindow.xaml
52 строки
2 KB
Niels Laute
[Workspaces] Move to WPF Fluent and tweak overall UX (#46172)
21 май 2026, 08:54
Не верифицирован
21 май 2026, 08:54
52bf042
Код
Авторство
О чём код?
<Window x:Class="WorkspacesEditor.SnapshotWindow" 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="clr-namespace:WorkspacesEditor" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:props="clr-namespace:WorkspacesEditor.Properties" Title="{x:Static props:Resources.SnapshotWindowTitle}" Width="420" Closing="Window_Closing" ResizeMode="NoResize" ShowInTaskbar="False" SizeToContent="Height" WindowStartupLocation="CenterScreen" mc:Ignorable="d"> <Grid Margin="4"> <Grid.RowDefinitions> <RowDefinition Height="1*" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*" /> <ColumnDefinition Width="1*" /> </Grid.ColumnDefinitions> <TextBlock Grid.ColumnSpan="2" Margin="8,16,8,16" Text="{x:Static props:Resources.SnapshotDescription}" TextAlignment="Center" TextWrapping="Wrap" /> <Button x:Name="SnapshotButton" Grid.Row="1" Margin="8,8,4,8" HorizontalAlignment="Stretch" AutomationProperties.Name="{x:Static props:Resources.Take_Snapshot}" Click="SnapshotButtonClicked" Content="{x:Static props:Resources.Take_Snapshot}" Style="{DynamicResource AccentButtonStyle}" /> <Button x:Name="CancelButton" Grid.Row="1" Grid.Column="1" Margin="4,8,8,8" HorizontalAlignment="Stretch" AutomationProperties.Name="{x:Static props:Resources.Cancel}" Click="CancelButtonClicked" Content="{x:Static props:Resources.Cancel}" /> </Grid> </Window>