I am trying to completely restyle the DockGuideCross. I have created an implicit style for it in my App.xaml in order to override the default one.
What i want to have is an invisible DockGuide with subtle transparent HitMarks on the edges of the current dockable control.
When HorizontalAlignment and VerticalAlignement are set to center (the default) on the DockGuideCross then the guides are correctly centered to the current dock target. BUT when i set them to Stretch then the DockGuide's Grid area extends well beyond the current dock target's visible area (even covering parts of sibling ToolWindowContainers). This means that i cannot position my new HitMarks correctly on the left and right edges of the current docktarget.
Unfortunately this editor does not support screenshots which would make my explanation a lot easier.
<Style TargetType="{x:Type dockingPreview:DockGuideCross}">
<Setter Property="Control.Background"
Value="{DynamicResource {x:Static themes:AssetResourceKeys.ContainerMediumEndBackgroundNormalBrushKey}}" />
<Setter Property="Control.BorderBrush"
Value="{DynamicResource {x:Static themes:AssetResourceKeys.ContainerBorderNormalBrushKey}}" />
<Setter Property="Control.BorderThickness"
Value="1" />
<Setter Property="FrameworkElement.HorizontalAlignment"
Value="Stretch" />
<Setter Property="FrameworkElement.VerticalAlignment"
Value="Stretch" />
<Setter Property="UIElement.SnapsToDevicePixels"
Value="true" />
<Setter Property="Control.Template">
[Modified 10 years ago]