|
6 | 6 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
7 | 7 | xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
8 | 8 | xmlns:ui="http://schemas.modernwpf.com/2019"
|
9 |
| - xmlns:wpftk="clr-namespace:WpfToolkit.Controls;assembly=VirtualizingWrapPanel" |
10 | 9 | xmlns:viewModels="clr-namespace:Flow.Launcher.SettingPages.ViewModels"
|
| 10 | + xmlns:wpftk="clr-namespace:WpfToolkit.Controls;assembly=VirtualizingWrapPanel" |
11 | 11 | Title="PluginStore"
|
12 |
| - FocusManager.FocusedElement="{Binding ElementName=PluginStoreFilterTextbox}" |
13 |
| - KeyDown="SettingsPanePlugins_OnKeyDown" |
14 | 12 | d:DataContext="{d:DesignInstance viewModels:SettingsPanePluginStoreViewModel}"
|
15 | 13 | d:DesignHeight="450"
|
16 | 14 | d:DesignWidth="800"
|
| 15 | + FocusManager.FocusedElement="{Binding ElementName=PluginStoreFilterTextbox}" |
| 16 | + KeyDown="SettingsPanePlugins_OnKeyDown" |
17 | 17 | mc:Ignorable="d">
|
18 | 18 | <ui:Page.Resources>
|
19 |
| - <CollectionViewSource x:Key="PluginStoreCollectionView" Source="{Binding ExternalPlugins}" Filter="PluginStoreCollectionView_OnFilter"> |
| 19 | + <CollectionViewSource |
| 20 | + x:Key="PluginStoreCollectionView" |
| 21 | + Filter="PluginStoreCollectionView_OnFilter" |
| 22 | + Source="{Binding ExternalPlugins}"> |
20 | 23 | <CollectionViewSource.GroupDescriptions>
|
21 | 24 | <PropertyGroupDescription PropertyName="Category" />
|
22 | 25 | </CollectionViewSource.GroupDescriptions>
|
|
34 | 37 | <Border
|
35 | 38 | Grid.Row="0"
|
36 | 39 | Grid.Column="0"
|
37 |
| - Padding="5 18 0 0"> |
| 40 | + Padding="5,18,0,0"> |
38 | 41 | <TextBlock
|
39 |
| - Margin="0 5" |
| 42 | + Margin="0,5" |
40 | 43 | FontSize="30"
|
41 | 44 | Style="{StaticResource PageTitle}"
|
42 | 45 | Text="{DynamicResource pluginStore}"
|
|
46 | 49 | <DockPanel
|
47 | 50 | Grid.Row="0"
|
48 | 51 | Grid.Column="1"
|
49 |
| - Margin="5 24 0 0"> |
| 52 | + Margin="5,24,0,0"> |
50 | 53 |
|
51 | 54 | <TextBox
|
52 | 55 | Name="PluginStoreFilterTextbox"
|
53 | 56 | Width="150"
|
54 | 57 | Height="34"
|
55 |
| - Margin="0 0 26 0" |
| 58 | + Margin="0,0,26,0" |
56 | 59 | HorizontalAlignment="Right"
|
57 | 60 | ContextMenu="{StaticResource TextBoxContextMenu}"
|
58 | 61 | DockPanel.Dock="Right"
|
|
72 | 75 | Stretch="None">
|
73 | 76 | <VisualBrush.Visual>
|
74 | 77 | <Label
|
75 |
| - Padding="10 0 0 0" |
| 78 | + Padding="10,0,0,0" |
76 | 79 | Content="{DynamicResource searchplugin}"
|
77 | 80 | Foreground="{DynamicResource CustomContextDisabled}" />
|
78 | 81 | </VisualBrush.Visual>
|
|
94 | 97 | </TextBox>
|
95 | 98 | <Button
|
96 | 99 | Height="34"
|
97 |
| - Margin="0 5 10 5" |
98 |
| - Padding="12 4" |
| 100 | + Margin="0,5,10,5" |
| 101 | + Padding="12,4" |
99 | 102 | HorizontalAlignment="Right"
|
100 | 103 | VerticalAlignment="Center"
|
101 | 104 | Command="{Binding RefreshExternalPluginsCommand}"
|
|
108 | 111 | Grid.Row="1"
|
109 | 112 | Grid.Column="0"
|
110 | 113 | Grid.ColumnSpan="2"
|
111 |
| - Margin="4 0 0 0" |
112 |
| - Padding="0 0 18 0" |
| 114 | + Margin="4,0,0,0" |
| 115 | + Padding="0,0,18,0" |
113 | 116 | FontSize="14"
|
114 | 117 | ItemContainerStyle="{StaticResource StoreList}"
|
115 | 118 | ItemsSource="{Binding Source={StaticResource PluginStoreCollectionView}}"
|
|
124 | 127 | <ItemsPanelTemplate>
|
125 | 128 | <wpftk:VirtualizingWrapPanel
|
126 | 129 | x:Name="ItemWrapPanel"
|
127 |
| - Margin="0 0 0 10" |
| 130 | + Margin="0,0,0,10" |
128 | 131 | ItemSize="216,184"
|
129 | 132 | MouseWheelDelta="48"
|
130 | 133 | Orientation="Vertical"
|
|
143 | 146 | <Grid>
|
144 | 147 | <StackPanel Orientation="Vertical">
|
145 | 148 | <TextBlock
|
146 |
| - Margin="2 0 0 10" |
| 149 | + Margin="2,0,0,10" |
147 | 150 | VerticalAlignment="Top"
|
148 | 151 | FontSize="16"
|
149 | 152 | FontWeight="Bold"
|
|
159 | 162 | </GroupStyle.ContainerStyle>
|
160 | 163 | <GroupStyle.Panel>
|
161 | 164 | <ItemsPanelTemplate>
|
162 |
| - <VirtualizingStackPanel Orientation="{Binding Orientation, Mode=OneWay}" /> |
| 165 | + <VirtualizingStackPanel /> |
163 | 166 | </ItemsPanelTemplate>
|
164 | 167 | </GroupStyle.Panel>
|
165 | 168 | </GroupStyle>
|
|
231 | 234 | <VirtualizingStackPanel
|
232 | 235 | Grid.Row="0"
|
233 | 236 | Grid.Column="0"
|
234 |
| - Margin="5 0 0 0" |
| 237 | + Margin="5,0,0,0" |
235 | 238 | Orientation="Horizontal">
|
236 | 239 | <TextBlock
|
237 |
| - Margin="0 0 5 0" |
| 240 | + Margin="0,0,5,0" |
238 | 241 | VerticalAlignment="Center"
|
239 | 242 | FontSize="14"
|
240 | 243 | FontWeight="Bold"
|
|
253 | 256 | <TextBlock
|
254 | 257 | Grid.Row="1"
|
255 | 258 | Grid.Column="0"
|
256 |
| - Margin="5 4 0 0" |
| 259 | + Margin="5,4,0,0" |
257 | 260 | TextWrapping="Wrap">
|
258 |
| - <Hyperlink Foreground="{DynamicResource Color04B}" NavigateUri="{Binding Website}" RequestNavigate="Hyperlink_OnRequestNavigate"> |
| 261 | + <Hyperlink |
| 262 | + Foreground="{DynamicResource Color04B}" |
| 263 | + NavigateUri="{Binding Website}" |
| 264 | + RequestNavigate="Hyperlink_OnRequestNavigate"> |
259 | 265 | <Run FontSize="12" Text="{Binding Author, Mode=OneWay}" />
|
260 | 266 | </Hyperlink>
|
261 | 267 | </TextBlock>
|
|
264 | 270 | Grid.Row="0"
|
265 | 271 | Grid.RowSpan="2"
|
266 | 272 | Grid.Column="1"
|
267 |
| - Margin="20 0 0 0" |
| 273 | + Margin="20,0,0,0" |
268 | 274 | HorizontalAlignment="Right"
|
269 | 275 | Orientation="Horizontal">
|
270 | 276 | <Button
|
271 | 277 | MinHeight="42"
|
272 |
| - Margin="5 0" |
273 |
| - Padding="15 5" |
| 278 | + Margin="5,0" |
| 279 | + Padding="15,5" |
274 | 280 | HorizontalAlignment="Stretch"
|
275 | 281 | VerticalAlignment="Center"
|
276 |
| - Content="{DynamicResource installbtn}" |
277 |
| - Visibility="{Binding LabelInstalled, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter='!'}" |
278 | 282 | Command="{Binding ShowCommandQueryCommand}"
|
279 |
| - CommandParameter="install" /> |
| 283 | + CommandParameter="install" |
| 284 | + Content="{DynamicResource installbtn}" |
| 285 | + Visibility="{Binding LabelInstalled, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter='!'}" /> |
280 | 286 | <Button
|
281 | 287 | MinHeight="42"
|
282 |
| - Margin="5 0" |
283 |
| - Padding="15 5" |
| 288 | + Margin="5,0" |
| 289 | + Padding="15,5" |
284 | 290 | HorizontalAlignment="Right"
|
285 | 291 | VerticalAlignment="Center"
|
286 |
| - Content="{DynamicResource uninstallbtn}" |
287 |
| - Visibility="{Binding LabelInstalled, Converter={StaticResource BoolToVisibilityConverter}}" |
288 | 292 | Command="{Binding ShowCommandQueryCommand}"
|
289 |
| - CommandParameter="uninstall" /> |
| 293 | + CommandParameter="uninstall" |
| 294 | + Content="{DynamicResource uninstallbtn}" |
| 295 | + Visibility="{Binding LabelInstalled, Converter={StaticResource BoolToVisibilityConverter}}" /> |
290 | 296 | <Button
|
291 | 297 | MinHeight="42"
|
292 |
| - Margin="5 0" |
293 |
| - Padding="15 5" |
| 298 | + Margin="5,0" |
| 299 | + Padding="15,5" |
294 | 300 | HorizontalAlignment="Right"
|
295 | 301 | VerticalAlignment="Center"
|
| 302 | + Command="{Binding ShowCommandQueryCommand}" |
| 303 | + CommandParameter="update" |
296 | 304 | Content="{DynamicResource updatebtn}"
|
297 | 305 | Style="{DynamicResource AccentButtonStyle}"
|
298 |
| - Visibility="{Binding LabelUpdate, Converter={StaticResource BoolToVisibilityConverter}}" |
299 |
| - Command="{Binding ShowCommandQueryCommand}" |
300 |
| - CommandParameter="update" /> |
| 306 | + Visibility="{Binding LabelUpdate, Converter={StaticResource BoolToVisibilityConverter}}" /> |
301 | 307 | </VirtualizingStackPanel>
|
302 | 308 | </Grid>
|
303 | 309 | </ui:Flyout>
|
|
308 | 314 | <Image
|
309 | 315 | Width="32"
|
310 | 316 | Height="32"
|
311 |
| - Margin="18 24 0 0" |
| 317 | + Margin="18,24,0,0" |
312 | 318 | HorizontalAlignment="Left"
|
313 | 319 | RenderOptions.BitmapScalingMode="Fant"
|
314 | 320 | Source="{Binding IcoPath, IsAsync=True}" />
|
315 | 321 | <Border
|
316 | 322 | x:Name="LabelUpdate"
|
317 | 323 | Height="12"
|
318 |
| - Margin="10 24 0 0" |
319 |
| - Padding="6 2" |
| 324 | + Margin="10,24,0,0" |
| 325 | + Padding="6,2" |
320 | 326 | HorizontalAlignment="Left"
|
321 | 327 | VerticalAlignment="Top"
|
322 | 328 | Background="#45BD59"
|
|
325 | 331 | Visibility="{Binding LabelUpdate, Converter={StaticResource BoolToVisibilityConverter}}" />
|
326 | 332 | </StackPanel>
|
327 | 333 | <TextBlock
|
328 |
| - Margin="18 10 18 0" |
| 334 | + Margin="18,10,18,0" |
329 | 335 | FontWeight="SemiBold"
|
330 | 336 | Foreground="{DynamicResource Color05B}"
|
331 | 337 | Text="{Binding Name}"
|
332 | 338 | TextWrapping="Wrap"
|
333 | 339 | ToolTip="{Binding Version}" />
|
334 | 340 | <TextBlock
|
335 | 341 | Height="60"
|
336 |
| - Margin="18 6 18 0" |
337 |
| - Padding="0 0 0 10" |
| 342 | + Margin="18,6,18,0" |
| 343 | + Padding="0,0,0,10" |
338 | 344 | FontSize="12"
|
339 | 345 | Foreground="{DynamicResource Color04B}"
|
340 | 346 | Text="{Binding Description, Mode=OneWay}"
|
|
0 commit comments