Redress.xaml 1.9 KB

1234567891011121314151617181920212223242526272829303132
  1. <UserControl x:Class="PDF_Master.Views.Scan.Redress"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PDF_Master.Views.Scan"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <Border Background="{StaticResource color.sys.layout.anti}" Width="320" Height="144" CornerRadius="8" >
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="16"/>
  13. <ColumnDefinition Width="*"/>
  14. <ColumnDefinition Width="16"/>
  15. </Grid.ColumnDefinitions>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="16"/>
  18. <RowDefinition Height="*"/>
  19. <RowDefinition Height="16"/>
  20. <RowDefinition Height="auto"/>
  21. <RowDefinition Height="16"/>
  22. </Grid.RowDefinitions>
  23. <TextBox x:Name="TxtInput"
  24. Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:Redress}, Path=TextBoxContext}"
  25. Grid.Row="1" Grid.Column="1" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"/>
  26. <StackPanel Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
  27. <Button x:Name="BtnApply" Content="Apply" Style="{StaticResource Btn.cta}" Width="80" Height="32" Click="BtnApply_Click" />
  28. <Button x:Name="BtnCancel" Content="Cancel" Style="{StaticResource btn.sec}" Width="80" Height="32" Margin="16,0,0,0" Click="BtnCancel_Click"/>
  29. </StackPanel>
  30. </Grid>
  31. </Border>
  32. </UserControl>