<Window x:Class="BPASmartClient.Academy.View.ParameterSetView" 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:BPASmartClient.Academy.View" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vm="clr-namespace:BPASmartClient.Academy.ViewModel" Title="ParameterSetView" Width="350" Height="400" AllowsTransparency="True" Background="{x:Null}" WindowStartupLocation="CenterScreen" WindowStyle="None" mc:Ignorable="d"> <Window.DataContext> <vm:ParameterSetViewModel /> </Window.DataContext> <Window.Resources> <Style x:Key="btnStyle" TargetType="Button"> <Setter Property="Foreground" Value="White" /> <Setter Property="Background" Value="#4135cb" /> <Setter Property="Height" Value="35" /> <Setter Property="Width" Value="100" /> <Setter Property="BorderThickness" Value="0" /> <Setter Property="FontSize" Value="16" /> <Setter Property="Opacity" Value="0.85" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Border x:Name="br" Background="{TemplateBinding Background}" CornerRadius="5"> <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" /> </Border> <ControlTemplate.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Opacity" Value="1" /> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> </Window.Resources> <Border Background="#1e293b" BorderThickness="5" CornerRadius="20"> <Border.Effect> <DropShadowEffect BlurRadius="15" Direction="0" ShadowDepth="0" Color="DeepSkyBlue" /> </Border.Effect> <Grid Name="gr" Margin="20" Background="Transparent"> <Grid.ColumnDefinitions> <ColumnDefinition Width="0.8*" /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="50" /> <RowDefinition Height="50" /> <RowDefinition /> <RowDefinition Height="50" /> </Grid.RowDefinitions> <TextBlock Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="16" Foreground="#8e9db2" Text="请选择项目类型:" /> <ComboBox Grid.Row="0" Grid.Column="1" MinHeight="30" BorderThickness="2" FontSize="16" Foreground="#ddd" IsEditable="False" ItemsSource="{Binding projectNames}" SelectedValue="{Binding Par.ProjectTypeName}" /> <TextBlock Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="16" Foreground="#8e9db2" Text="请输入设备IP:" /> <TextBox Grid.Row="1" Grid.Column="1" Height="30" VerticalContentAlignment="Center" Background="Transparent" BorderBrush="#074b92" BorderThickness="2" CaretBrush="DeepSkyBlue" FontSize="16" Foreground="#ddd" Style="{x:Null}" Text="{Binding Par.IpAddress}" /> <Grid Grid.Row="3" Grid.ColumnSpan="2"> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Button Name="btn_save" Grid.Row="3" Grid.Column="1" Content="保 存" Style="{StaticResource btnStyle}" /> <Button Name="btn_cancel" Grid.Row="3" Grid.Column="0" Background="#ff106e" Content="取 消" Style="{StaticResource btnStyle}" /> </Grid> </Grid> </Border> </Window>