I want my program to hide and float a DockPanel. Initially, I create a dock panel in the designer and set the DockState to Hidden.
To show the panel, I just set DockState to Floating. This works fine.
However, I cannot hide the panel. I tried the following:
- Set the DockState to Hidden
- DockPanel.Hide()
However, the panel continues to float. The only way I figure to get it work is to DockTo another panel, then set the DockState to Hidden. This seems to be cumbersome so I wonder if there is a way to hide it better.
To show the panel, I just set DockState to Floating. This works fine.
However, I cannot hide the panel. I tried the following:
- Set the DockState to Hidden
- DockPanel.Hide()
However, the panel continues to float. The only way I figure to get it work is to DockTo another panel, then set the DockState to Hidden. This seems to be cumbersome so I wonder if there is a way to hide it better.