9
9
xmlns : localization =" clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"
10
10
xmlns : local =" clr-namespace:NETworkManager.Controls"
11
11
xmlns : settings =" clr-namespace:NETworkManager.Settings;assembly=NETworkManager.Settings"
12
- mc : Ignorable =" d" Loaded =" UserControl_Loaded"
12
+ mc : Ignorable =" d" Loaded =" UserControl_Loaded"
13
13
d : DataContext =" {d:DesignInstance local:RemoteDesktopControl}" >
14
14
<local : UserControlBase .Resources>
15
15
<converters : BooleanReverseConverter x : Key =" BooleanReverseConverter" />
16
16
<converters : BooleanReverseToVisibilityCollapsedConverter x : Key =" BooleanReverseToVisibilityCollapsedConverter" />
17
17
<converters : BooleanReverseToVisibilityHiddenConverter x : Key =" BooleanReverseToVisibilityHiddenConverter" />
18
18
<converters : BooleanToVisibilityCollapsedConverter x : Key =" BooleanToVisibilityCollapsedConverter" />
19
19
</local : UserControlBase .Resources>
20
- <Grid x : Name =" RdpGrid" SizeChanged =" RdpGrid_SizeChanged" >
21
- <WindowsFormsHost MaxWidth =" {Binding RdpClientWidth, Mode=OneWay}"
22
- MaxHeight =" {Binding RdpClientHeight, Mode=OneWay}"
23
- Background =" {DynamicResource ResourceKey=MahApps.Brushes.Window.Background}" >
20
+ <Grid x : Name =" RdpGrid" >
21
+ <WindowsFormsHost MaxWidth =" {Binding WindowsFormsHostMaxWidth, Mode=OneWay}"
22
+ MaxHeight =" {Binding WindowsFormsHostMaxHeight, Mode=OneWay}"
23
+ Background =" {DynamicResource ResourceKey=MahApps.Brushes.Window.Background}"
24
+ DpiChanged =" WindowsFormsHost_DpiChanged" >
24
25
<WindowsFormsHost .Style>
25
26
<Style TargetType =" {x:Type WindowsFormsHost}" >
26
27
<Style .Triggers>
31
32
</DataTrigger >
32
33
<DataTrigger Binding =" {Binding IsConnected}" Value =" False" >
33
34
<Setter Property =" Visibility" Value =" Hidden" />
34
- </DataTrigger >
35
- <DataTrigger Binding =" {Binding IsReconnecting}" Value =" True" >
36
- <Setter Property =" Visibility" Value =" Hidden" />
37
- </DataTrigger >
35
+ </DataTrigger >
38
36
</Style .Triggers>
39
37
</Style >
40
38
</WindowsFormsHost .Style>
41
- <mstsc : AxMsRdpClient9NotSafeForScripting x : Name =" RdpClient" />
39
+ <mstsc : AxMsRdpClient10NotSafeForScripting x : Name =" RdpClient" />
42
40
</WindowsFormsHost >
43
41
<Grid VerticalAlignment =" Center" HorizontalAlignment =" Center" TextBlock.TextAlignment=" Center"
44
42
Visibility =" {Binding IsConnected, Converter={StaticResource BooleanReverseToVisibilityCollapsedConverter}}" >
65
63
<TextBlock Grid.Row=" 3" Text =" {x:Static localization:Strings.ConnectingDots}"
66
64
Style =" {StaticResource MessageTextBlock}"
67
65
Visibility =" {Binding IsConnecting, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" />
68
- </Grid >
69
- <Grid VerticalAlignment =" Center" HorizontalAlignment =" Center" TextBlock.TextAlignment=" Center"
70
- Visibility =" {Binding IsReconnecting, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}" >
71
- <Grid .RowDefinitions>
72
- <RowDefinition Height =" Auto" />
73
- <RowDefinition Height =" Auto" />
74
- <RowDefinition Height =" 20" />
75
- <RowDefinition Height =" Auto" />
76
- </Grid .RowDefinitions>
77
- <mah : ProgressRing Grid.Row=" 0" Grid.RowSpan=" 2" Height =" 50" Width =" 50" />
78
- <TextBlock Grid.Row=" 3" Text =" {x:Static localization:Strings.ConnectingDots}"
79
- Style =" {StaticResource MessageTextBlock}" />
80
- </Grid >
66
+ </Grid >
81
67
</Grid >
82
68
</local : UserControlBase >
0 commit comments