-
Notifications
You must be signed in to change notification settings - Fork 8k
Expand file tree
/
Copy pathDangerousFeatureWarningDialog.xaml
More file actions
35 lines (34 loc) · 1.41 KB
/
DangerousFeatureWarningDialog.xaml
File metadata and controls
35 lines (34 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<ContentDialog
x:Class="Microsoft.PowerToys.Settings.UI.Views.DangerousFeatureWarningDialog"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
DefaultButton="Close"
Style="{StaticResource DefaultContentDialogStyle}"
mc:Ignorable="d">
<StackPanel Spacing="12">
<TextBlock
x:Name="WarningHeader"
FontWeight="Bold"
Foreground="{ThemeResource SystemFillColorCriticalBrush}"
TextWrapping="Wrap" />
<TextBlock x:Name="WarningDescription" TextWrapping="Wrap" />
<ItemsControl x:Name="WarningList" Margin="20,0,0,0">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Spacing="4" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate x:DataType="x:String">
<TextBlock Text="{x:Bind}" TextWrapping="Wrap" />
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<TextBlock
x:Name="WarningConfirm"
FontWeight="SemiBold"
TextWrapping="Wrap" />
</StackPanel>
</ContentDialog>