1
- <Window x : Class =" Flow.Launcher.Plugin.Explorer.Views.QuickAccessLinkSettings"
2
- xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
- xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4
- xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
5
- xmlns : local =" clr-namespace:Flow.Launcher.Plugin.Explorer.Views"
6
- xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
7
- Title =" {DynamicResource plugin_explorer_manage_quick_access_links_header}"
8
- Width =" Auto"
9
- Height =" 255"
10
- Background =" {DynamicResource PopuBGColor}"
11
- DataContext =" {Binding RelativeSource={RelativeSource Self}}"
12
- Foreground =" {DynamicResource PopupTextColor}"
13
- ResizeMode =" NoResize"
14
- SizeToContent =" Width"
15
- WindowStartupLocation =" CenterScreen"
16
- mc : Ignorable =" d" >
17
- <WindowChrome .WindowChrome>
18
- <WindowChrome CaptionHeight =" 32" ResizeBorderThickness =" {x:Static SystemParameters.WindowResizeBorderThickness}" />
19
- </WindowChrome .WindowChrome>
1
+ <Window
2
+ x : Class =" Flow.Launcher.Plugin.Explorer.Views.QuickAccessLinkSettings"
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.Plugin.Explorer.Views"
7
+ xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
8
+ Title =" {DynamicResource plugin_explorer_manage_quick_access_links_header}"
9
+ Width =" Auto"
10
+ Height =" 300"
11
+ Background =" {DynamicResource PopuBGColor}"
12
+ DataContext =" {Binding RelativeSource={RelativeSource Self}}"
13
+ Foreground =" {DynamicResource PopupTextColor}"
14
+ ResizeMode =" NoResize"
15
+ SizeToContent =" Width"
16
+ WindowStartupLocation =" CenterScreen"
17
+ mc : Ignorable =" d" >
18
+ <WindowChrome .WindowChrome>
19
+ <WindowChrome CaptionHeight =" 32" ResizeBorderThickness =" {x:Static SystemParameters.WindowResizeBorderThickness}" />
20
+ </WindowChrome .WindowChrome>
20
21
<Grid >
21
22
<Grid .RowDefinitions>
22
23
<RowDefinition />
58
59
<StackPanel Margin =" 26 0 26 0" >
59
60
<StackPanel Margin =" 0 0 0 12" >
60
61
<TextBlock
61
- Margin =" 0 0 0 0"
62
62
FontSize =" 20"
63
63
FontWeight =" SemiBold"
64
64
Text =" {DynamicResource plugin_explorer_manage_quick_access_links_header}"
65
65
TextAlignment =" Left" />
66
66
</StackPanel >
67
- <StackPanel Margin =" 0 10 0 0" Orientation =" Horizontal" >
67
+
68
+ <Grid >
69
+ <Grid .ColumnDefinitions>
70
+ <ColumnDefinition Width =" Auto" MinWidth =" 100" />
71
+ <ColumnDefinition Width =" *" />
72
+ <ColumnDefinition Width =" Auto" />
73
+ </Grid .ColumnDefinitions>
74
+ <Grid .RowDefinitions>
75
+ <RowDefinition Height =" Auto" />
76
+ <RowDefinition Height =" Auto" />
77
+ <RowDefinition Height =" Auto" />
78
+ </Grid .RowDefinitions>
79
+
80
+ <!-- Name -->
68
81
<TextBlock
69
- MinWidth = " 150 "
70
- Margin =" 0 10 15 10 "
71
- HorizontalAlignment = " Left "
82
+ Grid.Row= " 0 "
83
+ Grid.Column =" 0"
84
+ Margin = " 0 10 0 0 "
72
85
VerticalAlignment =" Center"
73
86
FontSize =" 14"
74
87
Text =" {DynamicResource plugin_explorer_name}" />
75
88
<TextBox
76
- Margin =" 10 0 0 0"
89
+ Grid.Row=" 0"
90
+ Grid.Column=" 1"
91
+ Margin =" 10 10 0 0"
77
92
VerticalAlignment =" Center"
78
93
FontSize =" 12"
79
- Width =" 250"
80
94
Text =" {Binding SelectedName, Mode=TwoWay}" />
81
- </StackPanel >
82
-
83
- <StackPanel Margin =" 0 10 0 0" Orientation =" Horizontal" >
95
+
96
+ <!-- Type -->
84
97
<TextBlock
85
- MinWidth =" 150"
86
- Margin =" 0 10 15 10"
87
- HorizontalAlignment =" Left"
98
+ Grid.Row=" 1"
99
+ Grid.Column=" 0"
100
+ Margin =" 0 10 0 0"
101
+ VerticalAlignment =" Center"
102
+ FontSize =" 14"
103
+ Text =" {DynamicResource plugin_explorer_type}" />
104
+ <StackPanel
105
+ Grid.Row=" 1"
106
+ Grid.Column=" 1"
107
+ Orientation =" Horizontal" >
108
+ <RadioButton
109
+ Margin =" 10 10 0 0"
110
+ Content =" {DynamicResource plugin_explorer_file}"
111
+ GroupName =" PathType"
112
+ IsChecked =" {Binding IsFileSelected}" />
113
+ <RadioButton
114
+ Margin =" 10 10 0 0"
115
+ Content =" {DynamicResource plugin_explorer_folder}"
116
+ GroupName =" PathType"
117
+ IsChecked =" {Binding IsFolderSelected}" />
118
+ </StackPanel >
119
+ <!-- Path -->
120
+ <TextBlock
121
+ Grid.Row=" 2"
122
+ Grid.Column=" 0"
123
+ Margin =" 0 10 0 0"
88
124
VerticalAlignment =" Center"
89
125
FontSize =" 14"
90
126
Text =" {DynamicResource plugin_explorer_path}" />
91
-
92
-
93
127
<TextBox
94
- Margin =" 10 0 0 0"
128
+ Grid.Row=" 2"
129
+ Grid.Column=" 1"
130
+ Width =" 250"
131
+ Margin =" 10 10 0 0"
95
132
VerticalAlignment =" Center"
96
133
FontSize =" 12"
97
- Width =" 250"
98
- Text =" {Binding SelectedPath, Mode=TwoWay}"
99
- IsReadOnly =" True" />
134
+ IsReadOnly =" True"
135
+ Text =" {Binding SelectedPath, Mode=TwoWay}" />
100
136
<Button
101
- Width =" 80"
137
+ Grid.Row=" 2"
138
+ Grid.Column=" 2"
102
139
Height =" Auto"
103
- Margin =" 10 0 0 0"
140
+ MinWidth =" 80"
141
+ Margin =" 10 10 0 0"
104
142
HorizontalAlignment =" Left"
105
143
VerticalAlignment =" Center"
106
- Content =" {DynamicResource select}"
107
- Click =" SelectPath_OnClick" />
108
- </StackPanel >
109
-
144
+ Click =" SelectPath_OnClick"
145
+ Content =" {DynamicResource select}" />
146
+ </Grid >
110
147
</StackPanel >
111
148
</StackPanel >
112
149
<Border
118
155
<Button
119
156
x : Name =" btnCancel"
120
157
Width =" 145"
121
- Height =" 30 "
122
- Margin =" 0 0 5 0 "
158
+ Height =" 38 "
159
+ Margin =" 0 0 5 1 "
123
160
Click =" BtnCancel_OnClick"
124
161
Content =" {DynamicResource cancel}" />
125
162
<Button
126
163
Name =" DownButton"
127
164
Width =" 145"
128
- Height =" 30 "
129
- Margin =" 5 0 0 0 "
165
+ Height =" 38 "
166
+ Margin =" 5 0 0 1 "
130
167
Click =" OnDoneButtonClick"
131
168
Style =" {StaticResource AccentButtonStyle}" >
132
169
<TextBlock x : Name =" lblAdd" Text =" {DynamicResource done}" />
133
170
</Button >
134
171
</StackPanel >
135
172
</Border >
136
173
</Grid >
137
- </Window >
174
+ </Window >
0 commit comments