2025-08-15 16:34:31 +08:00

93 lines
3.8 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<Window
x:Class="SWS.CAD.Views.Config"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:global="clr-namespace:System.Globalization;assembly=mscorlib"
xmlns:local="clr-namespace:SWS.CAD.Views.CustomControl"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Width="400"
Height="250"
AllowsTransparency="True"
Background="White"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
WindowStyle="None">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/SWS.CAD;component/Views/Style/CustomStyles.xaml" />
</Window.Resources>
<telerik:RadBusyIndicator BusyContent="{Binding BusyContent}" IsBusy="{Binding IsBusy}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<local:customWindowTitleBar />
<Grid Grid.Row="1" Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition Height="30" />
<RowDefinition Height="30" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<TextBlock Style="{StaticResource sysLabel}" Text="服务器的域名或IP" />
<TextBox
Grid.Column="1"
Grid.ColumnSpan="2"
Style="{StaticResource sysTextBox}"
Text="{Binding Address}" />
<TextBlock
Grid.Row="1"
VerticalAlignment="Center"
Style="{StaticResource sysLabel}"
Text="端口号:" />
<TextBox
Grid.Row="1"
Grid.Column="1"
Grid.ColumnSpan="2"
Style="{StaticResource sysTextBox}"
Text="{Binding Port}" />
<TextBlock
Grid.Row="2"
VerticalAlignment="Center"
Text="本地文件目录:" />
<telerik:RadFilePathPicker
x:Name="filepath"
Grid.Row="2"
Grid.Column="1"
Grid.ColumnSpan="2"
DialogType="OpenFolder"
FilePath="{Binding Directory}"
FilePathChanged="RadFilePathPicker_FilePathChanged"
Style="{StaticResource sysFilePathPicker}" />
</Grid>
<Border
Grid.Row="2"
Height="30"
Background="{StaticResource ColorPrimary}">
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
<telerik:RadButton
Margin="5"
Command="{Binding CloseCommand}"
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
Content="取消"
Style="{StaticResource sysBtn2}" />
<telerik:RadButton
Margin="5"
Command="{Binding OKCommand}"
Content="保存"
Style="{StaticResource sysBtn}" />
</StackPanel>
</Border>
</Grid>
</telerik:RadBusyIndicator>
</Window>