|
Perfect, thank you very much! I found the solution yesterday too, by myself.
One thing to say is, if you want to show the Views in a HeaderedContentControl like:
<HeaderedContentControl Header="Test">
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
<ContentControl x:Name="ActiveItem"/>
</ScrollViewer>
</HeaderedContentControl>
You have to add a Style in the Resources like:
<Style TargetType="{x:Type HeaderedContentControl}">
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type HeaderedContentControl}">
<DockPanel>
<ContentPresenter DockPanel.Dock="Top" ContentSource="Header" />
<ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
</DockPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Otherwise the Scrollbars are not shown!
|