123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <UserControl
- x:Class="PDF_Master.Views.Dialog.BOTA.AddAnnotationDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:convert="clr-namespace:PDF_Master.DataConvert"
- xmlns:customControl="clr-namespace:PDF_Master.CustomControl"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:dialogBOTA="clr-namespace:PDF_Master.ViewModels.Dialog.BOTA"
- xmlns:helper="clr-namespace:PDF_Master.Helper"
- xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:local="clr-namespace:PDF_Master.Views.Dialog.BOTA"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- Width="320"
- MinHeight="144"
- d:DataContext="{d:DesignInstance Type=dialogBOTA:AddAnnotationDialogViewModel}"
- prism:Dialog.WindowStyle="{StaticResource Caption16DialogWindowStyle}"
- prism:ViewModelLocator.AutoWireViewModel="True"
- Background="{StaticResource color.sys.layout.anti}"
- mc:Ignorable="d">
- <UserControl.Resources>
- <SolidColorBrush x:Key="path.fill" Color="#273C62" />
- <convert:ObjectConvert x:Key="ObjectConvert" />
-
- </UserControl.Resources>
- <StackPanel >
- <TextBox
- Name="TxtInput"
- Width="288"
- MinHeight="64"
- Margin="16,16,16,0"
- Padding="5"
- HorizontalContentAlignment="Left"
- VerticalContentAlignment="Center"
- GotFocus="TxtInput_GotFocus"
- Style="{StaticResource TextBoxStyleRadius}"
- Text="{Binding ContentText}"
- TextWrapping="Wrap">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="LostFocus">
- <helper:AdvancedInvokeCommandAction
- Command="{Binding LostFocusCommand}"
- CommandParameter="{Binding ElementName=TxtInput}"
- PassEventArgsToCommand="True" />
- </i:EventTrigger>
- <i:EventTrigger EventName="KeyDown">
- <helper:AdvancedInvokeCommandAction
- Command="{Binding KeyDownCommand}"
- CommandParameter="{Binding ElementName=TxtInput}"
- PassEventArgsToCommand="True" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </TextBox>
- <TextBlock
- Name="TxtTip"
- Width="90"
- Margin="30,-80,20,21"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Foreground="#666666"
- GotFocus="TxtTip_GotFocus" PreviewMouseLeftButtonDown="TxtTip_PreviewMouseDown"
- Text="请添加附注内容"
- Visibility="{Binding TipVisibility}" />
- <!--<customControl:TextBoxEx
- x:Name="TxtInput"
- Width="288"
- MinHeight="64"
- Margin="16,16,16,0"
- Padding="5"
- HorizontalContentAlignment="Left"
- VerticalContentAlignment="Center"
- FontSize="12"
- PlaceholderText="请添加附注内容"
- ShowClose="False"
- ShowTip="True"
- ShowTipText="Visible"
- TextWrapping="Wrap"
- TipText="请添加附注内容">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="LostFocus">
- <helper:AdvancedInvokeCommandAction
- Command="{Binding LostFocusCommand}"
- CommandParameter="{Binding ElementName=TxtInput}"
- PassEventArgsToCommand="True" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </customControl:TextBoxEx>-->
- <WrapPanel Margin="128,16,0,16">
- <Button
- Width="80"
- Height="32"
- Margin="0,0,0,0"
- HorizontalAlignment="Left"
- Command="{Binding CreateCommnad}"
- Content="确定"
- Style="{StaticResource Btn.cta}" />
- <Button
- Width="80"
- Height="32"
- Margin="16,0,0,0"
- HorizontalAlignment="Right"
- Command="{Binding CancelCommand}"
- Content="取消"
- Style="{StaticResource Btn.cta}" />
- </WrapPanel>
- </StackPanel>
- </UserControl>
|