|
22 | 22 | Filter="PluginStoreCollectionView_OnFilter" |
23 | 23 | Source="{Binding ExternalPlugins}"> |
24 | 24 | <CollectionViewSource.GroupDescriptions> |
25 | | - <PropertyGroupDescription PropertyName="Category" /> |
| 25 | + <PropertyGroupDescription PropertyName="DefaultCategory" /> |
26 | 26 | </CollectionViewSource.GroupDescriptions> |
27 | 27 | </CollectionViewSource> |
28 | 28 | </ui:Page.Resources> |
|
32 | 32 | <ColumnDefinition Width="*" /> |
33 | 33 | </Grid.ColumnDefinitions> |
34 | 34 | <Grid.RowDefinitions> |
35 | | - <RowDefinition Height="72" /> |
| 35 | + <RowDefinition Height="Auto" /> |
36 | 36 | <RowDefinition Height="*" /> |
37 | 37 | </Grid.RowDefinitions> |
38 | 38 | <Border |
|
50 | 50 | <DockPanel |
51 | 51 | Grid.Row="0" |
52 | 52 | Grid.Column="1" |
53 | | - Margin="5 24 0 0"> |
54 | | - |
| 53 | + Margin="5 24 0 8"> |
55 | 54 | <ikw:SimpleStackPanel |
56 | 55 | HorizontalAlignment="Right" |
57 | 56 | VerticalAlignment="Center" |
58 | 57 | DockPanel.Dock="Right" |
59 | | - Orientation="Horizontal" |
| 58 | + Orientation="Vertical" |
60 | 59 | Spacing="8"> |
61 | | - <Button |
62 | | - Height="34" |
63 | | - Margin="0 5 0 5" |
64 | | - Padding="12 4" |
| 60 | + <ikw:SimpleStackPanel |
65 | 61 | HorizontalAlignment="Right" |
66 | | - VerticalAlignment="Center" |
67 | | - Command="{Binding RefreshExternalPluginsCommand}" |
68 | | - Content="{DynamicResource refresh}" |
69 | | - FontSize="13" /> |
70 | | - <Button Height="34"> |
71 | | - <ui:FontIcon FontSize="14" Glyph="" /> |
72 | | - <ui:FlyoutService.Flyout> |
73 | | - <ui:MenuFlyout x:Name="FilterFlyout" Placement="Bottom"> |
74 | | - <MenuItem |
75 | | - Header=".Net" |
76 | | - IsCheckable="True" |
77 | | - IsChecked="{Binding ShowDotNet, Mode=TwoWay}" |
78 | | - StaysOpenOnClick="True" /> |
79 | | - <MenuItem |
80 | | - Header="Python" |
81 | | - IsCheckable="True" |
82 | | - IsChecked="{Binding ShowPython, Mode=TwoWay}" |
83 | | - StaysOpenOnClick="True" /> |
84 | | - <MenuItem |
85 | | - Header="Node.js" |
86 | | - IsCheckable="True" |
87 | | - IsChecked="{Binding ShowNodeJs, Mode=TwoWay}" |
88 | | - StaysOpenOnClick="True" /> |
89 | | - <MenuItem |
90 | | - Header="Exe" |
91 | | - IsCheckable="True" |
92 | | - IsChecked="{Binding ShowExecutable, Mode=TwoWay}" |
93 | | - StaysOpenOnClick="True" /> |
94 | | - </ui:MenuFlyout> |
95 | | - </ui:FlyoutService.Flyout> |
96 | | - </Button> |
97 | | - <Button |
98 | | - Height="34" |
99 | | - Command="{Binding InstallPluginCommand}" |
100 | | - ToolTip="{DynamicResource installLocalPluginTooltip}"> |
101 | | - <ui:FontIcon FontSize="14" Glyph="" /> |
102 | | - </Button> |
103 | | - <Button |
104 | | - Height="34" |
105 | | - Command="{Binding CheckPluginUpdatesCommand}" |
106 | | - ToolTip="{DynamicResource checkPluginUpdatesTooltip}"> |
107 | | - <ui:FontIcon FontSize="14" Glyph="" /> |
108 | | - </Button> |
109 | | - <TextBox |
110 | | - Name="PluginStoreFilterTextbox" |
111 | | - Width="150" |
112 | | - Height="34" |
113 | | - Margin="0 0 26 0" |
| 62 | + Orientation="Horizontal" |
| 63 | + Spacing="8"> |
| 64 | + <Button |
| 65 | + Height="34" |
| 66 | + Padding="12 4" |
| 67 | + HorizontalAlignment="Right" |
| 68 | + VerticalAlignment="Center" |
| 69 | + Command="{Binding RefreshExternalPluginsCommand}" |
| 70 | + Content="{DynamicResource refresh}" |
| 71 | + FontSize="13" /> |
| 72 | + <Button Height="34"> |
| 73 | + <ui:FontIcon FontSize="14" Glyph="" /> |
| 74 | + <ui:FlyoutService.Flyout> |
| 75 | + <ui:MenuFlyout x:Name="FilterFlyout" Placement="Bottom"> |
| 76 | + <MenuItem |
| 77 | + Header=".Net" |
| 78 | + IsCheckable="True" |
| 79 | + IsChecked="{Binding ShowDotNet, Mode=TwoWay}" |
| 80 | + StaysOpenOnClick="True" /> |
| 81 | + <MenuItem |
| 82 | + Header="Python" |
| 83 | + IsCheckable="True" |
| 84 | + IsChecked="{Binding ShowPython, Mode=TwoWay}" |
| 85 | + StaysOpenOnClick="True" /> |
| 86 | + <MenuItem |
| 87 | + Header="Node.js" |
| 88 | + IsCheckable="True" |
| 89 | + IsChecked="{Binding ShowNodeJs, Mode=TwoWay}" |
| 90 | + StaysOpenOnClick="True" /> |
| 91 | + <MenuItem |
| 92 | + Header="Exe" |
| 93 | + IsCheckable="True" |
| 94 | + IsChecked="{Binding ShowExecutable, Mode=TwoWay}" |
| 95 | + StaysOpenOnClick="True" /> |
| 96 | + </ui:MenuFlyout> |
| 97 | + </ui:FlyoutService.Flyout> |
| 98 | + </Button> |
| 99 | + <Button |
| 100 | + Height="34" |
| 101 | + Command="{Binding InstallPluginCommand}" |
| 102 | + ToolTip="{DynamicResource installLocalPluginTooltip}"> |
| 103 | + <ui:FontIcon FontSize="14" Glyph="" /> |
| 104 | + </Button> |
| 105 | + <Button |
| 106 | + Height="34" |
| 107 | + Command="{Binding CheckPluginUpdatesCommand}" |
| 108 | + ToolTip="{DynamicResource checkPluginUpdatesTooltip}"> |
| 109 | + <ui:FontIcon FontSize="14" Glyph="" /> |
| 110 | + </Button> |
| 111 | + <TextBox |
| 112 | + Name="PluginStoreFilterTextbox" |
| 113 | + Width="150" |
| 114 | + Height="34" |
| 115 | + Margin="0 0 26 0" |
| 116 | + HorizontalAlignment="Right" |
| 117 | + VerticalContentAlignment="Center" |
| 118 | + ui:ControlHelper.PlaceholderText="{DynamicResource searchplugin}" |
| 119 | + ContextMenu="{StaticResource TextBoxContextMenu}" |
| 120 | + DockPanel.Dock="Right" |
| 121 | + FontSize="14" |
| 122 | + Text="{Binding FilterText, UpdateSourceTrigger=PropertyChanged}" |
| 123 | + ToolTip="{DynamicResource searchpluginToolTip}" |
| 124 | + ToolTipService.InitialShowDelay="200" |
| 125 | + ToolTipService.Placement="Top" /> |
| 126 | + </ikw:SimpleStackPanel> |
| 127 | + |
| 128 | + <ikw:SimpleStackPanel |
114 | 129 | HorizontalAlignment="Right" |
115 | | - VerticalContentAlignment="Center" |
116 | | - ui:ControlHelper.PlaceholderText="{DynamicResource searchplugin}" |
117 | | - ContextMenu="{StaticResource TextBoxContextMenu}" |
118 | | - DockPanel.Dock="Right" |
119 | | - FontSize="14" |
120 | | - Text="{Binding FilterText, UpdateSourceTrigger=PropertyChanged}" |
121 | | - ToolTip="{DynamicResource searchpluginToolTip}" |
122 | | - ToolTipService.InitialShowDelay="200" |
123 | | - ToolTipService.Placement="Top" /> |
| 130 | + Margin="0 0 26 0" |
| 131 | + Orientation="Horizontal" |
| 132 | + Spacing="8"> |
| 133 | + <TextBlock |
| 134 | + VerticalAlignment="Center" |
| 135 | + FontSize="14" |
| 136 | + Foreground="{DynamicResource Color15B}" |
| 137 | + Text="{DynamicResource PluginStoreSortingModeComboboxLabel}" /> |
| 138 | + <ComboBox |
| 139 | + x:Name="SortModeComboBox" |
| 140 | + Width="Auto" |
| 141 | + Height="34" |
| 142 | + MinWidth="150" |
| 143 | + MaxWidth="150" |
| 144 | + HorizontalContentAlignment="Left" |
| 145 | + Background="{DynamicResource Color00B}" |
| 146 | + ItemsSource="{Binding SortModes}" |
| 147 | + DisplayMemberPath="Display" |
| 148 | + SelectedValuePath="Value" |
| 149 | + SelectedValue="{Binding SelectedSortMode, Mode=TwoWay}"/> |
| 150 | + </ikw:SimpleStackPanel> |
124 | 151 | </ikw:SimpleStackPanel> |
125 | 152 | </DockPanel> |
126 | 153 |
|
|
0 commit comments