将Feature/XP.Common和Feature/XP.Hardware分支合并至Develop/XP.forHardwareAndCommon,完善XPapp注册和相关硬件类库通用类库功能。
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<Window x:Class="XP.Common.GeneralForm.Views.InputDialog"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
||||
Title="{Binding Title}"
|
||||
WindowStartupLocation="CenterOwner"
|
||||
ResizeMode="NoResize"
|
||||
Width="400" Height="180"
|
||||
ShowInTaskbar="False"
|
||||
Topmost="True"
|
||||
WindowStyle="SingleBorderWindow">
|
||||
|
||||
<Window.Resources>
|
||||
<BooleanToVisibilityConverter x:Key="BoolToVisibilityConverter"/>
|
||||
</Window.Resources>
|
||||
|
||||
<Grid Margin="20,16,20,16">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- 提示文本 | Prompt text -->
|
||||
<TextBlock Grid.Row="0"
|
||||
Text="{Binding Prompt}"
|
||||
TextWrapping="Wrap"
|
||||
FontSize="13"
|
||||
Foreground="#FF333333"
|
||||
Margin="0,0,0,8"/>
|
||||
|
||||
<!-- 输入框 | Input text box -->
|
||||
<telerik:RadWatermarkTextBox Grid.Row="1"
|
||||
Text="{Binding InputText, UpdateSourceTrigger=PropertyChanged}"
|
||||
Height="28"
|
||||
FontSize="13"
|
||||
telerik:StyleManager.Theme="Crystal"
|
||||
Margin="0,0,0,2"/>
|
||||
|
||||
<!-- 验证错误提示 | Validation error message -->
|
||||
<TextBlock Grid.Row="2"
|
||||
Text="{Binding ValidationError}"
|
||||
Foreground="#FFD32F2F"
|
||||
FontSize="11"
|
||||
TextWrapping="Wrap"
|
||||
Margin="0,7,0,0"
|
||||
Visibility="{Binding HasValidationError, Converter={StaticResource BoolToVisibilityConverter}}"/>
|
||||
|
||||
<!-- 按钮区域 | Button area -->
|
||||
<StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Right">
|
||||
<telerik:RadButton Content="{Binding OkText}"
|
||||
Click="OnOkClick"
|
||||
Width="80" Height="28"
|
||||
Margin="0,0,8,0"
|
||||
IsDefault="True"
|
||||
telerik:StyleManager.Theme="Crystal"/>
|
||||
<telerik:RadButton Content="{Binding CancelText}"
|
||||
Click="OnCancelClick"
|
||||
Width="80" Height="28"
|
||||
IsCancel="True"
|
||||
telerik:StyleManager.Theme="Crystal"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user