|
106 | 106 | </Button> |
107 | 107 | </Grid> |
108 | 108 | </StackPanel> |
109 | | - <TextBlock Grid.Row="2" Style="{StaticResource HeaderTextBlock}" Text="{DynamicResource String_Header_Details}" /> |
110 | | - <ScrollViewer Grid.Row="3" Style="{StaticResource DefaulScrollViewer}"> |
| 109 | + <TextBlock Grid.Row="2" Text="{DynamicResource String_Header_Details}"> |
| 110 | + <TextBlock.Style> |
| 111 | + <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource HeaderTextBlock}"> |
| 112 | + <Setter Property="Visibility" Value="Visible" /> |
| 113 | + <Style.Triggers> |
| 114 | + <DataTrigger Binding="{Binding NetworkInterfaces.Count}" Value="0"> |
| 115 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 116 | + </DataTrigger> |
| 117 | + </Style.Triggers> |
| 118 | + </Style> |
| 119 | + </TextBlock.Style> |
| 120 | + </TextBlock> |
| 121 | + <ScrollViewer Grid.Row="3"> |
| 122 | + <ScrollViewer.Style> |
| 123 | + <Style TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource DefaulScrollViewer}"> |
| 124 | + <Setter Property="Visibility" Value="Visible" /> |
| 125 | + <Style.Triggers> |
| 126 | + <DataTrigger Binding="{Binding NetworkInterfaces.Count}" Value="0"> |
| 127 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 128 | + </DataTrigger> |
| 129 | + </Style.Triggers> |
| 130 | + </Style> |
| 131 | + </ScrollViewer.Style> |
111 | 132 | <Grid> |
112 | 133 | <Grid.Resources> |
113 | 134 | <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource DefaultTextBlock}" /> |
114 | 135 | <Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource TextBlockAsTextBox}"> |
115 | 136 | <Setter Property="ContextMenu" Value="{StaticResource CopyContextMenu}" /> |
116 | | - <Style.Triggers> |
117 | | - <DataTrigger Binding="{Binding SelectedNetworkInterface, Converter={StaticResource NullToFalseConverter}}" Value="False"> |
118 | | - <Setter Property="Visibility" Value="Collapsed" /> |
119 | | - </DataTrigger> |
120 | | - </Style.Triggers> |
121 | 137 | </Style> |
122 | 138 | </Grid.Resources> |
123 | 139 | <Grid.ColumnDefinitions> |
|
205 | 221 | <TextBox Grid.Column="2" Grid.Row="36" Text="{Binding DetailsDNSServer, Converter={StaticResource IPAddressArrayToStringConverter}}" /> |
206 | 222 | </Grid> |
207 | 223 | </ScrollViewer> |
| 224 | + <StackPanel Grid.Row="3" VerticalAlignment="Center"> |
| 225 | + <StackPanel.Style> |
| 226 | + <Style TargetType="{x:Type StackPanel}"> |
| 227 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 228 | + <Style.Triggers> |
| 229 | + <DataTrigger Binding="{Binding NetworkInterfaces.Count}" Value="0"> |
| 230 | + <Setter Property="Visibility" Value="Visible" /> |
| 231 | + </DataTrigger> |
| 232 | + </Style.Triggers> |
| 233 | + </Style> |
| 234 | + </StackPanel.Style> |
| 235 | + <TextBlock FontSize="18" Foreground="{DynamicResource GrayBrush3}" Text="{DynamicResource String_NoEnabledNetworkAdaptersFound}" TextWrapping="Wrap" TextAlignment="Center" Style="{StaticResource HeaderTextBlock}" Margin="0,0,0,10" /> |
| 236 | + <Button Content="{DynamicResource String_Button_NetworkConnections}" Command="{Binding OpenNetworkConnectionsCommand}" Style="{StaticResource DefaultButton}" HorizontalAlignment="Center"/> |
| 237 | + </StackPanel> |
208 | 238 | </Grid> |
209 | 239 | </TabItem> |
210 | 240 | <TabItem Header="{DynamicResource String_Header_Configure}"> |
|
0 commit comments