Articles in this section
Category / Section

How to change mouse over background of the WPF SplitterPage?

2 mins read

Mouse over background color for the SplitterPage of WPF TabSplitter can be changed using the property “MouseOverBackground”. The same has been demonstrated in the following code example:

XAML:

<Window x:Class="KB_Application.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
Title="MainWindow" Height="350" Width="525">
<Grid>
<syncfusion:TabSplitter x:Name="_tabsplitter" MouseOverBackground="Magenta" >
<syncfusion:TabSplitterItem Header="Tab1" Orientation="Horizontal">
<syncfusion:TabSplitterItem.BottomPanelItems>
<syncfusion:SplitterPage Name="splitterPage1" Header="XAML">
</syncfusion:SplitterPage>
<syncfusion:SplitterPage Name="splitterPage2" Header="XAML1">
</syncfusion:SplitterPage>
</syncfusion:TabSplitterItem.BottomPanelItems>
<syncfusion:TabSplitterItem.TopPanelItems>
<syncfusion:SplitterPage Name="splitterPage3" Header="Item1">
</syncfusion:SplitterPage>
<syncfusion:SplitterPage Name="splitterPage4" Header="Item2">
</syncfusion:SplitterPage>
</syncfusion:TabSplitterItem.TopPanelItems>
</syncfusion:TabSplitterItem>
<syncfusion:TabSplitterItem Header="Tab2">
</syncfusion:TabSplitterItem>
</syncfusion:TabSplitter>
</Grid>
</Window>
 

 

C#:

using Syncfusion.Windows.Tools.Controls;
 
namespace KB_Application
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
_tabsplitter.MouseOverBackground = Brushes.Magenta;
}
}
}

 

 

 

Output:

 

                 WPF TabSplitter output


Conclusion

I hope you enjoyed learning about how to change the mouse over background of the WPF SplitterPage.

You can refer to our WPF Tab Splitter feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our WPF Tab Splitter example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied