
I'm try to update DockSite from v14.2.610.0 to v16.1.0633.
1.We used custom switcher style.
There are build errors. Because there is no SwitcherListBox and SwitcherGridListBox.
Whrere it has gone? I could not find in the document.
How to replace these style?
<Style x:Key="{x:Type docking:SwitcherGridListBox}" TargetType="{x:Type docking:SwitcherGridListBox}"
BasedOn="{StaticResource {x:Type docking:SwitcherListBox}}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type docking:SwitcherGridListBox}">
<Grid>
<ItemsPresenter />
<RepeatButton Width="{TemplateBinding ItemWidth}" Height="{TemplateBinding ItemHeight}" Command="ScrollBar.LineUpCommand"
Style="{StaticResource SwitcherGridListBoxRepeaterButtonStyle}"
Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=CanScrollUp, Converter={StaticResource BooleanToVisibilityConverter}}"
VerticalAlignment="Top" HorizontalAlignment="Left">
<Path Width="9" Height="5" Data="M 0 5 L 4.5 0 L 9 5 Z" Fill="{TemplateBinding Foreground}" />
</RepeatButton>
<RepeatButton Width="{TemplateBinding ItemWidth}" Height="{TemplateBinding ItemHeight}" Command="ScrollBar.LineDownCommand"
Style="{StaticResource SwitcherGridListBoxRepeaterButtonStyle}"
Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=CanScrollDown, Converter={StaticResource BooleanToVisibilityConverter}}"
VerticalAlignment="Bottom" HorizontalAlignment="Right">
<Path Width="9" Height="5" Data="M 0 0 L 4.5 5 L 9 0 Z" Fill="{TemplateBinding Foreground}" />
</RepeatButton>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
2. TabbedMdiContainer.SelectedContent and RaftedDocumentWindowContainer also disappeared.
How should I replace following code?
private static FrameworkElement GetView(FrameworkElement element)
{
FrameworkElement view = null;
var tabContainer = GetVisualParent<TabbedMdiContainer>(element);
if (tabContainer != null)
{
view = tabContainer.SelectedWindow as FrameworkElement;
}
else
{
var raftedContainer = GetVisualParent<DockingWindowContainerBase>(element);
if (raftedContainer != null)
{
view = raftedContainer.SelectedWindow as FrameworkElement;
}
}
return view;
}
3.I binded ToolWindow Tile and ImageSource to CustomToolWindow which is derived from ToolWindow.
How to replace the binding?