Cosmos/Demos/zMachine/Frotz.Net/source/Desktop/WPFMachine/Screen/ZTextControl.xaml

18 lines
891 B
XML

<UserControl x:Class="WPFMachine.Screen.ZTextControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WPFMachine.Screen"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<Grid.Resources>
<Style TargetType="{x:Type local:ZParagraph}">
<Setter Property="Margin" Value="0"/>
</Style>
</Grid.Resources>
<RichTextBox x:Name="rtb" TextOptions.TextFormattingMode="Display" IsReadOnly="True" Padding="-5,0,-5,0" Background="Transparent" Grid.RowSpan="2" />
</Grid>
</UserControl>