Our users use - when sending letters - envelopes with a window where you can read name and address.
To help them to write the name and address on the right place I can show a rectangle in the background of the RadTextBox.
The question is: what is the best way to skrew this feature/style on and off?
Or... do you know a better way to show/hide such a rectangle?
<telerik:RadRichTextBox x:Name="editor" AllowDrop="True" Drop="EditorDrop" ShowComments="False" FontFamily="Calibri" FontSize="11">
<telerik:RadDocument LayoutMode="Paged" />
<telerik:RadRichTextBox.Resources>
<Style TargetType="telerik:Page">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="telerik:Page">
<Grid Background="White">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50"></ColumnDefinition>
<ColumnDefinition Width="370"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="120"></RowDefinition>
<RowDefinition Height="120"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Canvas x:Name="PageContentPresenter" Background="White" />
<Border Grid.Column="1" Grid.Row="1" BorderBrush="Blue" BorderThickness="1" CornerRadius="5" Background="Aqua">
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="VerticalAlignment" Value="Top" />
</Style>
</telerik:RadRichTextBox.Resources>
</telerik:RadRichTextBox>
To help them to write the name and address on the right place I can show a rectangle in the background of the RadTextBox.
The question is: what is the best way to skrew this feature/style on and off?
Or... do you know a better way to show/hide such a rectangle?
<telerik:RadRichTextBox x:Name="editor" AllowDrop="True" Drop="EditorDrop" ShowComments="False" FontFamily="Calibri" FontSize="11">
<telerik:RadDocument LayoutMode="Paged" />
<telerik:RadRichTextBox.Resources>
<Style TargetType="telerik:Page">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="telerik:Page">
<Grid Background="White">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50"></ColumnDefinition>
<ColumnDefinition Width="370"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="120"></RowDefinition>
<RowDefinition Height="120"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Canvas x:Name="PageContentPresenter" Background="White" />
<Border Grid.Column="1" Grid.Row="1" BorderBrush="Blue" BorderThickness="1" CornerRadius="5" Background="Aqua">
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="VerticalAlignment" Value="Top" />
</Style>
</telerik:RadRichTextBox.Resources>
</telerik:RadRichTextBox>