In the following XAML I have two issues, the first is that despite disabling the horizontal scrollbar on the main scrollviewer it still shows, the second is that I have set a style on the textbox (notes) to display a vertical scrollbar but it does not display
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:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:views="clr-namespace:VTUK.Gemini.Contacts"
mc:Ignorable="d"
d:DesignHeight="1200" d:DesignWidth="1200">
VerticalAlignment="Center"
Margin="0"
Content="{Binding Text, ElementName=URLContainer}"
Grid.Column="2" Grid.Row="15"
Style="{StaticResource HyperlinkStyleButton14}"
Command="{Binding NavigateToUrlCommand}" CommandParameter="{Binding Text, ElementName=URLContainer}"
DataContext="{Binding DataContext, RelativeSource={RelativeSource AncestorType=views:ContactsContent, AncestorLevel=1}}" />
Text="{Binding ContactNotes}"
Style="{DynamicResource CustomTextBoxStyle}" />
ItemsSource="{Binding Contacts}"
CommandButtonsVisibility="Cancel,Commit"
AutoGenerateFields="False"
ValidationSummaryVisibility="Visible"
LabelPosition="Above"
ReadOnlyTemplate="{StaticResource ContactsReadOnlyTemplate}"
VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" />
Command="telerik:RadDataFormCommands.AddNew" CommandTarget="{Binding ElementName=DataForm}">
SnapsToDevicePixels="True" />
Height="16" Width="16"
SnapsToDevicePixels="True" />
IsBusy="{Binding IsBusy}" DisplayAfter="0:0:0.2"
telerik:AnimationManager.IsAnimationEnabled="True"/>
Here is the textblock style
Padding="{TemplateBinding Padding}"
Foreground="{TemplateBinding Foreground}"
Background="{x:Null}"
BorderBrush="{x:Null}"
BorderThickness="0"
Margin="0"
VerticalScrollBarVisibility="Visible" />
Replies
Know the answer? Post it — somebody with the same question will find it here.