1
+ <Window
2
+ x : Class =" Flow.Launcher.ProgressBoxEx"
3
+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4
+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
5
+ xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
6
+ xmlns : local =" clr-namespace:Flow.Launcher"
7
+ xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
8
+ x : Name =" MessageBoxWindow"
9
+ Width =" 420"
10
+ Height =" Auto"
11
+ Background =" {DynamicResource PopuBGColor}"
12
+ Foreground =" {DynamicResource PopupTextColor}"
13
+ ResizeMode =" NoResize"
14
+ SizeToContent =" Height"
15
+ WindowStartupLocation =" CenterScreen"
16
+ mc : Ignorable =" d" >
17
+ <WindowChrome .WindowChrome>
18
+ <WindowChrome CaptionHeight =" 32" ResizeBorderThickness =" {x:Static SystemParameters.WindowResizeBorderThickness}" />
19
+ </WindowChrome .WindowChrome>
20
+ <Window .InputBindings>
21
+ <KeyBinding Key =" Escape" Command =" Close" />
22
+ </Window .InputBindings>
23
+ <Window .CommandBindings>
24
+ <CommandBinding Command =" Close" Executed =" KeyEsc_OnPress" />
25
+ </Window .CommandBindings>
26
+ <Grid >
27
+ <Grid .RowDefinitions>
28
+ <RowDefinition Height =" Auto" />
29
+ <RowDefinition />
30
+ <RowDefinition MinHeight =" 68" />
31
+ </Grid .RowDefinitions>
32
+ <StackPanel Grid.Row=" 0" >
33
+ <StackPanel >
34
+ <Grid >
35
+ <Grid .ColumnDefinitions>
36
+ <ColumnDefinition Width =" *" />
37
+ <ColumnDefinition Width =" Auto" />
38
+ </Grid .ColumnDefinitions>
39
+ <Button
40
+ Grid.Column=" 1"
41
+ Click =" Button_Cancel"
42
+ Style =" {StaticResource TitleBarCloseButtonStyle}" >
43
+ <Path
44
+ Width =" 46"
45
+ Height =" 32"
46
+ Data =" M 18,11 27,20 M 18,20 27,11"
47
+ Stroke =" {Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}"
48
+ StrokeThickness =" 1" >
49
+ <Path .Style>
50
+ <Style TargetType =" Path" >
51
+ <Style .Triggers>
52
+ <DataTrigger Binding =" {Binding Path=IsActive, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value =" False" >
53
+ <Setter Property =" Opacity" Value =" 0.5" />
54
+ </DataTrigger >
55
+ </Style .Triggers>
56
+ </Style >
57
+ </Path .Style>
58
+ </Path >
59
+ </Button >
60
+ </Grid >
61
+ </StackPanel >
62
+ </StackPanel >
63
+ <Grid Grid.Row=" 1" Margin =" 30 0 30 24" >
64
+ <Grid .RowDefinitions>
65
+ <RowDefinition Height =" Auto" />
66
+ <RowDefinition Height =" Auto" />
67
+ </Grid .RowDefinitions>
68
+ <TextBlock
69
+ x : Name =" TitleTextBlock"
70
+ Grid.Row=" 0"
71
+ MaxWidth =" 400"
72
+ Margin =" 0 0 26 12"
73
+ VerticalAlignment =" Center"
74
+ FontFamily =" Segoe UI"
75
+ FontSize =" 20"
76
+ FontWeight =" SemiBold"
77
+ TextAlignment =" Left"
78
+ TextWrapping =" Wrap" />
79
+ <ProgressBar
80
+ x : Name =" ProgressBar"
81
+ Grid.Row=" 1"
82
+ Margin =" 0 0 26 0"
83
+ Maximum =" 100"
84
+ Minimum =" 0"
85
+ Value =" 0" />
86
+ </Grid >
87
+ <Border
88
+ Grid.Row=" 2"
89
+ Margin =" 0 0 0 0"
90
+ Background =" {DynamicResource PopupButtonAreaBGColor}"
91
+ BorderBrush =" {DynamicResource PopupButtonAreaBorderColor}"
92
+ BorderThickness =" 0 1 0 0" >
93
+ <WrapPanel
94
+ HorizontalAlignment =" Center"
95
+ VerticalAlignment =" Center"
96
+ Orientation =" Horizontal" >
97
+ <Button
98
+ x : Name =" btnCancel"
99
+ MinWidth =" 120"
100
+ Margin =" 5 0 5 0"
101
+ Click =" Button_Click"
102
+ Content =" {DynamicResource commonCancel}" />
103
+ </WrapPanel >
104
+ </Border >
105
+ </Grid >
106
+ </Window >
0 commit comments