|
109 | 109 | Orientation="Horizontal" |
110 | 110 | Spacing="8"> |
111 | 111 |
|
112 | | - <DropDownButton> |
113 | | - <TextBlock Text="启动" /> |
| 112 | + <Button Style="{StaticResource MyEllipsisButtonStyle}"> |
| 113 | + <SymbolIcon Symbol="More" /> |
114 | 114 |
|
115 | | - <DropDownButton.Flyout> |
| 115 | + <Button.Flyout> |
116 | 116 | <MenuFlyout Placement="Bottom"> |
117 | | - <MenuFlyoutItem |
118 | | - Click="Launch_Click" |
119 | | - DataContext="{x:Bind viewModel.ProgramListItem}" |
120 | | - Text="启动"> |
| 117 | + <MenuFlyoutItem Click="CopyFilePath_Click" Text="复制程序所在路径"> |
121 | 118 | <MenuFlyoutItem.Icon> |
122 | | - <SymbolIcon Symbol="Go" /> |
| 119 | + <SymbolIcon Symbol="Copy" /> |
123 | 120 | </MenuFlyoutItem.Icon> |
124 | 121 | </MenuFlyoutItem> |
125 | 122 |
|
126 | 123 | <MenuFlyoutItem |
127 | | - Click="LaunchAsAdmin_Click" |
128 | | - DataContext="{x:Bind viewModel.ProgramListItem}" |
129 | | - Text="以管理员身份启动"> |
| 124 | + Click="GoToFilePath_Click" |
| 125 | + DataContext="{x:Bind}" |
| 126 | + Text="打开程序所在位置"> |
130 | 127 | <MenuFlyoutItem.Icon> |
131 | | - <SymbolIcon Symbol="Admin" /> |
| 128 | + <SymbolIcon Symbol="Go" /> |
132 | 129 | </MenuFlyoutItem.Icon> |
133 | 130 | </MenuFlyoutItem> |
134 | 131 |
|
135 | | - <MenuFlyoutItem IsEnabled="False" Text="是否按配置启动与此应用的开关有关"> |
136 | | - <MenuFlyoutItem.Icon> |
137 | | - <!-- Info --> |
138 | | - <FontIcon Glyph="" /> |
139 | | - </MenuFlyoutItem.Icon> |
140 | | - </MenuFlyoutItem> |
| 132 | + <MenuFlyoutSubItem Text="启动"> |
| 133 | + <MenuFlyoutSubItem.Icon> |
| 134 | + <SymbolIcon Symbol="Play" /> |
| 135 | + </MenuFlyoutSubItem.Icon> |
| 136 | + |
| 137 | + <MenuFlyoutItem |
| 138 | + Click="Launch_Click" |
| 139 | + DataContext="{x:Bind viewModel.ProgramListItem}" |
| 140 | + Text="启动"> |
| 141 | + <MenuFlyoutItem.Icon> |
| 142 | + <SymbolIcon Symbol="Play" /> |
| 143 | + </MenuFlyoutItem.Icon> |
| 144 | + </MenuFlyoutItem> |
| 145 | + |
| 146 | + <MenuFlyoutItem |
| 147 | + Click="LaunchAsAdmin_Click" |
| 148 | + DataContext="{x:Bind viewModel.ProgramListItem}" |
| 149 | + Text="以管理员身份启动"> |
| 150 | + <MenuFlyoutItem.Icon> |
| 151 | + <SymbolIcon Symbol="Admin" /> |
| 152 | + </MenuFlyoutItem.Icon> |
| 153 | + </MenuFlyoutItem> |
| 154 | + |
| 155 | + <MenuFlyoutItem IsEnabled="False" Text="是否按配置启动与此应用的开关有关"> |
| 156 | + <MenuFlyoutItem.Icon> |
| 157 | + <!-- Info --> |
| 158 | + <FontIcon Glyph="" /> |
| 159 | + </MenuFlyoutItem.Icon> |
| 160 | + </MenuFlyoutItem> |
| 161 | + </MenuFlyoutSubItem> |
| 162 | + |
| 163 | + <!--<MenuFlyoutSubItem Text="移除" Foreground="Red"> |
| 164 | + <MenuFlyoutSubItem.Icon> |
| 165 | + <SymbolIcon Symbol="Delete" /> |
| 166 | + </MenuFlyoutSubItem.Icon> |
| 167 | +
|
| 168 | + <MenuFlyoutItem Text="确认移除" Foreground="Red" Click="MenuFlyoutItem_Click"> |
| 169 | + <MenuFlyoutItem.Icon> |
| 170 | + <SymbolIcon Symbol="Delete" /> |
| 171 | + </MenuFlyoutItem.Icon> |
| 172 | + </MenuFlyoutItem> |
| 173 | + </MenuFlyoutSubItem>--> |
141 | 174 | </MenuFlyout> |
142 | | - </DropDownButton.Flyout> |
143 | | - </DropDownButton> |
| 175 | + </Button.Flyout> |
| 176 | + </Button> |
144 | 177 |
|
145 | 178 | <Button |
146 | 179 | Click="{x:Bind viewModel.SaveChanges}" |
147 | | - Content="立即应用设置" |
| 180 | + Content="应用设置" |
148 | 181 | Style="{ThemeResource AccentButtonStyle}" /> |
149 | 182 | </StackPanel> |
150 | 183 | </my:MyGrid> |
|
0 commit comments