<Window x:Class="XHandler.View.MethodProperty.SetVariablePopwin"
|
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:XHandler.View.MethodProperty"
|
xmlns:str="clr-namespace:XHandler.Properties"
|
mc:Ignorable="d"
|
d:DesignHeight="550" d:DesignWidth="800"
|
Height="auto" Width="auto" WindowStyle="None" AllowsTransparency="True" ResizeMode="NoResize" Background="#00FFFFFF">
|
<Grid>
|
<Grid.RowDefinitions>
|
<RowDefinition Height="*"/>
|
<RowDefinition Height="auto"/>
|
<RowDefinition Height="*"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="auto"/>
|
<ColumnDefinition Width="*"/>
|
</Grid.ColumnDefinitions>
|
<Grid Grid.Row="1" Grid.Column="1" x:Name="grid" HorizontalAlignment="Center" VerticalAlignment="Center" Width="400" Height="300">
|
<Grid.RowDefinitions>
|
<RowDefinition Height="50"/>
|
<RowDefinition Height="*"/>
|
</Grid.RowDefinitions>
|
<Border Grid.Row="0" Background="{DynamicResource blueBrush}" CornerRadius="10 10 0 0" BorderThickness="0">
|
<Grid>
|
<TextBlock Text="{x:Static str:Resources.strTips}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 0" FontSize="20"
|
Foreground="White" FontWeight="Bold"/>
|
<Button Content="×" HorizontalAlignment="Right" VerticalAlignment="Center" VerticalContentAlignment="Center" Margin="10 0" FontSize="28" Width="40" Height="40"
|
FontWeight="Bold" Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Click="Button_Click"/>
|
</Grid>
|
</Border>
|
<Border Grid.Row="1" Background="White" CornerRadius="0 0 10 10" BorderThickness="2" BorderBrush="{DynamicResource blueBrush}">
|
<Grid>
|
<Grid.RowDefinitions>
|
<RowDefinition Height="*"/>
|
<RowDefinition Height="*"/>
|
<RowDefinition Height="*"/>
|
<RowDefinition Height="60"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="120"></ColumnDefinition>
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
</Grid.ColumnDefinitions>
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{x:Static str:Resources.strSetVariable}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="{x:Static str:Resources.strVariable}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<TextBox Grid.Row="1" Grid.Column="1" x:Name="tbxVariableName" Height="30" FontSize="16" IsEnabled="False" VerticalContentAlignment="Center" />
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Text="{x:Static str:Resources.strValue}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<TextBox Grid.Row="2" Grid.Column="1" x:Name="tbxVariableValue" Height="30" FontSize="16" VerticalContentAlignment="Center" TextChanged="tbxVariableValue_TextChanged" PreviewTextInput="tbxVariableValue_PreviewTextInput"/>
|
|
<TextBlock x:Name="textblockMsg" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0 0 0 0" FontSize="16" />
|
|
<Button x:Name="btnOK" Grid.Row="3" Grid.Column="1" Content="{x:Static str:Resources.btnOK}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="20 0" FontSize="16" Width="80" Height="40"
|
Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Click="Button_Click"/>
|
|
</Grid>
|
</Border>
|
</Grid>
|
</Grid>
|
</Window>
|