123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <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="432"
- Height="222"
- 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 Margin="16,0">
- <TextBlock
- Margin="0,13"
- FontFamily="Segoe UI"
- FontSize="16"
- FontWeight="SemiBold"
- Text="Add Note" />
- <customControl:TextBoxEx
- x:Name="TxtInput"
- Width="400"
- Height="108"
- HorizontalContentAlignment="Left"
- VerticalContentAlignment="Center"
- AcceptsReturn="True"
- FontSize="14"
- PlaceholderText="{Binding PlaceHolderText}"
- ShowClose="False"
- Text="{Binding ContentText}"
- TextWrapping="Wrap"
- VerticalScrollBarVisibility="Auto">
- <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>
- </customControl:TextBoxEx>
- <!--<TextBlock
- Name="TxtTip"
- Width="90"
- Margin="0,-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="0,13,0,0" HorizontalAlignment="Right">
- <Button
- Width="80"
- Height="32"
- Margin="0,0,0,0"
- HorizontalAlignment="Left"
- Command="{Binding CreateCommnad}"
- Content="{Binding BtnOKContent}"
- Style="{StaticResource Btn.cta}" />
- <Button
- Width="80"
- Height="32"
- Margin="16,0,0,0"
- HorizontalAlignment="Right"
- Command="{Binding CancelCommand}"
- Content="{Binding BtnCancelContent}"
- Style="{StaticResource btn.sec}" />
- </WrapPanel>
- </StackPanel>
- </UserControl>
|