Ticket Q343195
Visible to All Users

Floating Dock

created 14 years ago

Hi there,
I am using your DockHintsVisualizer I was wonder if I can load userControl Window or most probably Window.xaml file programmatically.
Thanks.
Regards,
SAJ
here's the Xaml code:
 <dxb:BarManager Name="barClientArea" dxlc:DockLayoutControl.Dock="Client" Margin="0.5">
            <dxd:DockLayoutManager x:Name="DemoDockContainer" Background="Transparent" >
                <dxd:DockLayoutManager.FloatGroups>
                    <dxd:FloatGroup>
                        <dxd:LayoutPanel Caption="Panel 002" Background="#FFE2E9EF">
                            <TextBlock FontStyle="Italic" Text="Try to drag this panel over layout"/>
                        </dxd:LayoutPanel>
                    </dxd:FloatGroup>
                </dxd:DockLayoutManager.FloatGroups>
                <dxd:LayoutGroup Orientation="Vertical" >
                    <dxd:LayoutGroup Height="3*">
                        <dxd:LayoutPanel x:Name="Panel1" Caption="Panel1" Width="*" Background="#FFE2E9EF">
                            <TextBlock FontStyle="Italic" Text="All hints will be hidden here"/>
                        </dxd:LayoutPanel>
                        <dxd:LayoutPanel x:Name="Panel2" Caption="Panel2" Width="*" Background="#FFE2E9EF">
                            <TextBlock FontStyle="Italic" Text="All hints will be visible here"/>
                        </dxd:LayoutPanel>
                        <dxd:LayoutPanel x:Name="Panel3" Caption="Panel3" Width="*" Background="#FFE2E9EF">
                            <TextBlock FontStyle="Italic" Text="All hints will be disabled here"/>
                        </dxd:LayoutPanel>
                    </dxd:LayoutGroup>
                    <dxd:LayoutPanel x:Name="Panel4" Caption="Panel4" Width="*" Height="2*" Background="#FFE2E9EF">
                        <TextBlock FontStyle="Italic" Text="Some hints will be disabled and some hints will be hidden here"/>
                    </dxd:LayoutPanel>
                </dxd:LayoutGroup>
            </dxd:DockLayoutManager>
        </dxb:BarManager>

Show previous comments (9)
?
Unknown 14 years ago

    hi mate,
    many thanks for your prompt replies n very helpful as well, I havent been able to figure out the close property as when the panels are opened, they got two properties/actions either you can pane it or hide it by pressing 'x' button or 'pin' icon, and then they appears in the ClosedPanelsBarVisibility.
    - is there possibility to have another CLOSE button or something which could just remove the panel from the Dock rather than hiding it in a bar, i know there is a way to find the panel from DockLayoutManager and then remove it, but where Do I specify that action as I need a button or something in that ClosedPanelsBarVisibility
    - Can we add extra button like Minimize in the Panel just like that close n pane button.
    - and also when you right click that ClosedPanelsBarVisibility bar (which appears within dockLayoutManager (carrying all the windows which has been closed n moved there) the right context menu shows CUSTOMIZE action, is it possible to remove that Customize option from that context menu (on right click) so user doesn't get confused.
    Thanks.
    Regards,
    SAJ

    DevExpress Support Team 13 years ago

      Hi Sharjeel,
      Thank you for your questions. I'll research the possibility of implementing the required features and get back to you once I have any results. Your patience is appreciated.
      Thanks,
      Dmitry

      DevExpress Support Team 13 years ago

        Hi Saj,
        Thank you for your patience!
        I've created a sample project to demonstrate how to add a custom button to the LayoutPanel header. You can find it in the attachment.
        You will find the 'Remove panel' button within the PanelControlBoxControl's template. Its appearance is defined in the CustomButtonTemplate style and is similar to the appearance of standard buttons for Office 2007 Black theme. You can add a custom minimize button in a similar manner.
        Please review the sample project and provide us with your feedback on whether it suits your needs.
        >>is it possible to remove that Customize option from that context menu (on right click) so user doesn't get confused.
        This is a BarManager feature. Please set its AllowCustomization property to "False" to get rid of this menu element.
        Thanks,
        Dmitry

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.