You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

VirtualTextBox.xaml 1.3 KiB

8 月之前
1234567891011121314151617181920212223
  1. <local:VirtualControlBase x:Class="DamnOverSharp.WPF.UiLibrary.VirtualTextBox"
  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:DamnOverSharp.WPF.UiLibrary"
  7. mc:Ignorable="d" UseLayoutRounding="True" SnapsToDevicePixels="True">
  8. <Border x:Name="border" Background="Green" BorderBrush="#FFABADB3" BorderThickness="1" Width="10">
  9. <Grid x:Name="contentArea" Margin="2" ClipToBounds="True">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="3*"/>
  12. <RowDefinition/>
  13. </Grid.RowDefinitions>
  14. <Grid x:Name="content" Grid.RowSpan="2">
  15. <StackPanel x:Name="characters" HorizontalAlignment="Left" Orientation="Horizontal">
  16. </StackPanel>
  17. <Rectangle x:Name="caret" Width="1" Visibility="Hidden" Fill="Black" HorizontalAlignment="Left"></Rectangle>
  18. </Grid>
  19. <TextBlock Visibility="Hidden" Grid.RowSpan="2"/>
  20. </Grid>
  21. </Border>
  22. </local:VirtualControlBase>