Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Floating Pane Border color
posted

I am currently on NetAdvantage 11.2. I hav used the following XAML to change header properties of my floating panes:

<Application.Resources>

 

 

 

 

 

<ResourceDictionary>

 

 

 

 

<Style TargetType="igDock:PaneHeaderPresenter">

 

 

 

 

<Setter Property="Background" Value="Red" />

 

 

 

 

<Style.Triggers>

 

 

 

 

<DataTrigger Binding="{Binding Path=Pane.IsActivePane, RelativeSource={RelativeSource Self}}"Value="True">

 

 

 

 

<Setter Property="Background" Value="Red" />

 

 

 

 

</DataTrigger>

 

 

 

 

</Style.Triggers>

 

 

 

 

</Style>

 

 

 

 

<Style TargetType="igDock:PaneToolWindow">

 

 

 

 

 

<Setter Property="Background" Value="Gray" />

 

 

 

 

<Style.Triggers>

 

 

 

 

<DataTrigger Binding="{Binding Path=Pane.IsActivePane, RelativeSource={RelativeSource Self}}"Value="True">

 

 

 

 

<Setter Property="Background" Value="Gray" />

 

 

 

 

</DataTrigger>

 

 

 

 

</Style.Triggers>

 

 

 

 

</Style>

 

 

 

 

</ResourceDictionary>

 

 

 

 

</Application.Resources>

Also I am setting the FloatingWindowCaptionSource property. But this is leading to a blue colored border whenever I have a floating pane. This border is around 2-3 pixels in width. I don't want that border to be present in my floating panes. Please suggest me a solution to the same.

 

 

 

Parents
No Data
Reply
  • 54937
    Offline posted

    The border is provided by the PaneToolWindow. You can retemplate that element to change its look but be aware that if you remove that border then the window will not be resizable since it is the PaneToolWindow's border that provides the resizing functionality for the window.

Children
No Data