|
105 | 105 | <ui:AppBarButton x:Name="vmAdd" Icon="Add" ToolTip="Create VM" Click="OnAddCommand" IsTabStop="False" IsCompact="True"/> |
106 | 106 | <ui:AppBarButton x:Name="vmDelete" Icon="Delete" ToolTip="Delete VM" Click="OnDeleteCommand" IsTabStop="False" IsCompact="True"/> |
107 | 107 | <ui:AppBarSeparator IsCompact="True"/> |
108 | | - <ui:AppBarButton x:Name="rdpConnect" ToolTip="Remote Desktop Connection" Click="OnRdpConnect" IsTabStop="False" IsCompact="True"> |
109 | | - <ui:AppBarButton.Icon> |
110 | | - <ui:FontIcon FontFamily="Segoe MDL2 Assets" Glyph=""/> |
111 | | - </ui:AppBarButton.Icon> |
112 | | - </ui:AppBarButton> |
| 108 | + <ui:DropDownButton Name="rdpDropDown" ToolTip="Remote Desktop Connection" IsTabStop="False" CornerRadius="0" Padding="15,11,15,10" FocusVisualMargin="0,0,0,0"> |
| 109 | + <ui:DropDownButton.Style> |
| 110 | + <Style TargetType="ui:DropDownButton"> |
| 111 | + <Setter Property="Background" Value="Transparent"/> |
| 112 | + <Setter Property="BorderThickness" Value="0"/> |
| 113 | + </Style> |
| 114 | + </ui:DropDownButton.Style> |
| 115 | + <ui:FontIcon FontFamily="Segoe MDL2 Assets" Glyph=""/> |
| 116 | + <ui:DropDownButton.Flyout> |
| 117 | + <ui:Flyout Placement="BottomEdgeAlignedRight"> |
| 118 | + <ui:Flyout.FlyoutPresenterStyle> |
| 119 | + <Style TargetType="ui:FlyoutPresenter"> |
| 120 | + <Setter Property="Padding" Value="2"/> |
| 121 | + <Setter Property="BorderThickness" Value="0"/> |
| 122 | + </Style> |
| 123 | + </ui:Flyout.FlyoutPresenterStyle> |
| 124 | + <ui:SimpleStackPanel Orientation="Horizontal" Margin="12 10 12 10" Spacing="20"> |
| 125 | + <ComboBox Name="rdpConnectionBox" IsEditable="True" StaysOpenOnEdit="True" Width="250" |
| 126 | + ItemsSource="{Binding Source={x:Static root:UserSettings.Instance}, Path=Settings.RdpConnections, UpdateSourceTrigger=PropertyChanged}" |
| 127 | + DisplayMemberPath="DisplayText" |
| 128 | + /> |
| 129 | + <Button Name="rdpConnectButton" Content="Connect" Click="RdpConnectButton_Click"/> |
| 130 | + </ui:SimpleStackPanel> |
| 131 | + </ui:Flyout> |
| 132 | + </ui:DropDownButton.Flyout> |
| 133 | + </ui:DropDownButton> |
113 | 134 | </DockPanel> |
114 | 135 | </Grid> |
115 | 136 | <Grid Grid.Row="1"> |
|
0 commit comments