89 lines
3.6 KiB
XML
89 lines
3.6 KiB
XML
<Window
|
||
x:Class="DI_Electrical.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:local="clr-namespace:DI_Electrical.Views"
|
||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
||
Width="400"
|
||
Height="250"
|
||
AllowsTransparency="True"
|
||
Background="White"
|
||
ResizeMode="NoResize"
|
||
WindowStartupLocation="CenterScreen"
|
||
WindowStyle="None">
|
||
<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>
|