Articles in this section
Category / Section

How can I apply the border brush for the RightFloatWindow border?

1 min read

The border brush for the RightFloatWindow can be applied by using the RightFloatWindowBorderBrush property of the DockingManager. The same has been demonstrated by using the following code example.

XAML

// This code demonstrates how to set the RightFloatWindowBorderBrush for the DockingManager
<Window x:Class="DockingManager_floatwindowsample.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 x:Name="Grid1">                
       <syncfusion:DockingManager x:Name="Dock1"  UseDocumentContainer="True" RightFloatWindowBorderBrush="Brown">
         <ContentControl syncfusion:DockingManager.Header="Dock1"
                         syncfusion:DockingManager.State="Float">            
         </ContentControl>
         <ContentControl syncfusion:DockingManager.Header="Dock2"
                          syncfusion:DockingManager.State="Dock">
         </ContentControl>
       </syncfusion:DockingManager>
    </Grid>
</Window>

 

C#

// This code demonstrates how to set the RightFloatWindowBorderBrush for the DockingManager
using Syncfusion.Windows.Tools.Controls;
namespace DockingManager_floatwindowsample
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            DockingManager Docking = new DockingManager();
            Docking.RightFloatWindowBorderBrush = Brushes. Brown;
            Docking.UseDocumentContainer = true;
            ContentControl content1 = new ContentControl();
            DockingManager.SetHeader(content1, "Dock1");
            DockingManager.SetState(content1, DockState.Float);
            ContentControl content2 = new ContentControl();
            DockingManager.SetHeader(content2, "Dock2");
            DockingManager.SetState(content2, DockState.Dock);
            Docking.Children.Add(content1);
            Docking.Children.Add(content2);
            Grid1.Children.Add(Docking);                
        }
    }
}

 

Output

The following output shows how the brush color is applied for the RightFloatWindowBorder.

 

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