We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Is there a way to hide a sidepanel?

My application has sidepanels left and right holding initially hidden, side tab items.  The hidden items are not relevant when the application starts and the user has not made an initial selection, so I would like to hide them - making them visible only after initial user input in the main window.  Is there a way?


<Window x:Class="Test_SF_Dockmanager.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Test_SF_Dockmanager"
        xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525"
        >

    <syncfusion:DockingManager x:Name="SyncDockingManager" DockFill="True" >

        <ContentControl x:Name="WirelessHotspot"
                        syncfusion:DockingManager.Header="Wireless Hotspot Setup"
                        syncfusion:DockingManager.DesiredWidthInDockedMode="240"
                        syncfusion:DockingManager.DesiredHeightInDockedMode="25"
                        syncfusion:DockingManager.SideInDockedMode="Top"
                        syncfusion:DockingManager.TargetNameInDockedMode="DetectedAGM"
                        syncfusion:DockingManager.State="AutoHidden"
                        />


        <ContentControl x:Name="DetectedAGM"
                        syncfusion:DockingManager.Header="Detected AGM"
                        syncfusion:DockingManager.DesiredWidthInDockedMode="222"
                        syncfusion:DockingManager.State="AutoHidden"
                        />


        <ContentControl x:Name="CommDebug"
                        syncfusion:DockingManager.Header="Debug Communication"
                        syncfusion:DockingManager.DesiredWidthInDockedMode="350"
                        syncfusion:DockingManager.State="AutoHidden"
                        />


        <ContentControl x:Name="Main"
                        syncfusion:DockingManager.NoHeader="True"
                        syncfusion:DockingManager.DesiredWidthInDockedMode="500"
                        />


        <ContentControl x:Name="Sidepanel"
                        syncfusion:DockingManager.Header="Sidepanel"
                        syncfusion:DockingManager.SideInDockedMode="Right"
                        syncfusion:DockingManager.DesiredWidthInDockedMode="222"
                        syncfusion:DockingManager.State="AutoHidden"
                        />

    </syncfusion:DockingManager>
</Window>


4 Replies

AL Alan L October 20, 2016 01:10 PM UTC

Bugger - Totally missed the DockingManager.SetState(item, DockState.Hidden)

I'm good now.


DR Durga Rajan Syncfusion Team October 21, 2016 04:45 AM UTC

Hi Alan Lamphier,

We are glad to know that your issue has been solved. Please let us know if you need any further assistance.

Regards,
Durga S.


AL Alan L October 21, 2016 02:47 PM UTC

Any clue why there are so many binding errors exercising the simple code below?


The thread 0x3c38 has exited with code 0 (0x0).
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Symbols loaded.
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syncfusion.Tools.Wpf\v4.0_14.3460.0.49__3d67ed1f87d44c89\Syncfusion.Tools.Wpf.dll'. Module was built without symbols.
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syncfusion.Shared.Wpf\v4.0_14.3460.0.49__3d67ed1f87d44c89\Syncfusion.Shared.Wpf.dll'. Module was built without symbols.
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.Aero\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.Aero.dll'. Symbols loaded.
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsFormsIntegration\v4.0_4.0.0.0__31bf3856ad364e35\WindowsFormsIntegration.dll'. Symbols loaded.
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXml\v4.0_4.0.0.0__b77a5c561934e089\PresentationFramework-SystemXml.dll'. Symbols loaded.
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll'. Symbols loaded.
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'C:\Users\ALLAMP~1\AppData\Local\Temp\VisualStudio.XamlDiagnostics.9324\WpfXamlDiagnosticsTap.dll'. Symbols loaded.
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'C:\Windows\assembly\GAC\Microsoft.VisualStudio.OLE.Interop\7.1.40304.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.OLE.Interop.dll'. Module was built without symbols.
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemData\v4.0_4.0.0.0__b77a5c561934e089\PresentationFramework-SystemData.dll'. Symbols loaded.
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll'. Symbols loaded.
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXmlLinq\v4.0_4.0.0.0__b77a5c561934e089\PresentationFramework-SystemXmlLinq.dll'. Symbols loaded.
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Syncfusion.Windows.Tools.Controls.DockingManager', AncestorLevel='1''. BindingExpression:Path=IsTouchEnabled; DataItem=null; target element is 'TabItem' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Syncfusion.Windows.Tools.Controls.DockedElementTabbedHost', AncestorLevel='1''. BindingExpression:Path=IsMouseOver; DataItem=null; target element is 'DockHeaderPresenter' (Name='PART_Header'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Syncfusion.Windows.Tools.Controls.DockedElementTabbedHost', AncestorLevel='1''. BindingExpression:Path=IsMouseOver; DataItem=null; target element is 'DockHeaderPresenter' (Name='PART_Header'); target property is 'NoTarget' (type 'Object')
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'Microsoft.GeneratedCode'.
'Test SF Dockmanager.vshost.exe' (CLR v4.0.30319: Test SF Dockmanager.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationProvider.dll'. Symbols loaded.
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'ContentPresenter' (Name='Content'); target property is 'HorizontalAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'ContentPresenter' (Name='Content'); target property is 'VerticalAlignment' (type 'VerticalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'ContentPresenter' (Name='Content'); target property is 'HorizontalAlignment' (type 'HorizontalAlignment')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'ContentPresenter' (Name='Content'); target property is 'VerticalAlignment' (type 'VerticalAlignment')
The program '[9324] Test SF Dockmanager.vshost.exe' has exited with code 0 (0x0).


Attachment: Test_SF_Dockmanager_963032dd.zip


DR Durga Rajan Syncfusion Team October 24, 2016 12:29 PM UTC

Hi Alan Lamphier,

We were able to reproduce the issue partially and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Regards,
Durga S.

Loader.
Live Chat Icon For mobile
Up arrow icon