I have a content pane on which i have a theme applied, the content pane can be docked anywhere on the screen and can make it as a floating window.
When i am making my content pane a floating windows, the theme gets lost.
I wanted my theme to remain when the content pane acts as a floating window or is there any alternative to set my personal theme only while content pane is floating
Regards,
Sachin Deoli
Hello Divya,
XamDockManagerCloseBtnCase.zip
Hello Sachin,
Than you for sharing the sample. It was supper easy to find the cause of the issue .
So you needed to include PrimitivesIGThemein the ResourceWasher Dictionary for the floating window.
So your complete code in the app.xaml would be:
<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="HideCloseBtnDictionary.xaml"/> <igWPF:ResourceWasher WashMode="HueSaturationReplacement" WashColor="Black"> <igWPF:ResourceWasher.SourceDictionary> <igThemes:DockManagerIGTheme /> </igWPF:ResourceWasher.SourceDictionary> </igWPF:ResourceWasher> <igWPF:ResourceWasher WashMode="HueSaturationReplacement" WashColor="Black"> <igWPF:ResourceWasher.SourceDictionary> <igThemes:PrimitivesIGTheme /> </igWPF:ResourceWasher.SourceDictionary> </igWPF:ResourceWasher> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources>
Let me know if you have any question.
Hello Divya
The code you have provided worked on the sample project but in our application we don't have App.Xaml file, we are applying style in a Default.Xaml file, can you help me providing the style for floating window title bar colour.
eg-:
<Style x:Key="{x:Static igDock:PaneHeaderPresenter.MaximizeButtonStyleKey}" TargetType="{x:Type Button}" BasedOn="{StaticResource paneCaptionButtonStyleBase}"> <Setter Property="ToolTip" Value="{StaticResource maximizeToolTip}" /> </Style>
Or do we have any alternate way to resource wash colour in the ToolWindowLoaded event.
Any update On this issue?
Kind Regards,
Hello,
As I explained floating window is seprate from the main window and its elements are not in the direct visual tree of dockmanager and that is why the style you apply has to be in the app.xaml.
In your real time application you should have app.xaml file . I don’t see any other way to apply style for floating window.