123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <UserControl x:Class="DefaultEdit.Views.SettingView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:DefaultEdit.Views"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- d:DesignHeight="700"
- d:DesignWidth="1000">
- <UserControl.Resources>
- <Style x:Key="textborder"
- TargetType="Border">
- <Setter Property="BorderThickness"
- Value="2" />
- <Setter Property="Background"
- Value="#548CC5" />
- <Setter Property="VerticalAlignment"
- Value="Center" />
- <Setter Property="BorderBrush"
- Value="#7DB1EC" />
- <Setter Property="CornerRadius"
- Value="5" />
- <Setter Property="Effect">
- <Setter.Value>
- <DropShadowEffect BlurRadius="10"
- Direction="0"
- ShadowDepth="0"
- Color="White" />
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="buttonborder"
- TargetType="Border">
- <Setter Property="BorderThickness"
- Value="2" />
- <Setter Property="Background"
- Value="Transparent" />
- <Setter Property="VerticalAlignment"
- Value="Center" />
- <Setter Property="BorderBrush"
- Value="White" />
- <Setter Property="CornerRadius"
- Value="5" />
- <Setter Property="Effect">
- <Setter.Value>
- <DropShadowEffect BlurRadius="10"
- Direction="0"
- ShadowDepth="0"
- Color="#D4D8DD" />
- </Setter.Value>
- </Setter>
- </Style>
- </UserControl.Resources>
- <Grid Margin="20">
- <Grid>
- <StackPanel>
- <StackPanel Margin="30"
- Orientation="Horizontal"
- HorizontalAlignment="Left"
- VerticalAlignment="Center">
- <TextBlock Text="PlcIP:"
- Margin="5,5,58,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding Management.CurentApplicationSettings.PlcIP}"
- Width="280"
- FontSize="20"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- </StackPanel>
- <StackPanel Margin="30"
- Orientation="Horizontal"
- HorizontalAlignment="Left"
- VerticalAlignment="Center">
- <TextBlock Text="打印机:"
- Margin="5,5,45,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding Management.CurentApplicationSettings.PrinterName}"
- FontSize="20"
- Width="280"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- </StackPanel>
- <StackPanel Margin="30"
- Orientation="Horizontal"
- HorizontalAlignment="Left"
- VerticalAlignment="Center">
- <TextBlock Text="MES地址:"
- Margin="5,5,25,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding Management.CurentApplicationSettings.Url}"
- FontSize="20"
- Width="280"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- </StackPanel>
- <StackPanel Margin="30"
- Orientation="Horizontal"
- HorizontalAlignment="Left"
- VerticalAlignment="Center">
- <TextBlock Text="设备编号:"
- Margin="5,5,25,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding Management.CurentApplicationSettings.DeviceId}"
- FontSize="20"
- Width="300"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- </StackPanel>
- <StackPanel Margin="30"
- Orientation="Horizontal"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Border Style="{StaticResource buttonborder}">
- <Button Content="保存"
- VerticalAlignment="Top"
- Padding="30,5,30,5"
- BorderBrush="Black"
- FontSize="20"
- Command="{Binding SaveSettingsCommand}"
- WindowChrome.IsHitTestVisibleInChrome="True"
- Background="Transparent" />
- </Border>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Grid>
- </UserControl>
|