Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6796999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:33:18+00:00 2026-05-26T18:33:18+00:00

I am using AvalonDock in a project to take advantage of the tool windows.

  • 0

I am using AvalonDock in a project to take advantage of the tool windows.

I don’t have any need for Tabbed Documents and would like to disable the “Dock as Tabbed Document” context menu item when I right click on a tool window title bar. Is this possible?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:33:19+00:00Added an answer on May 26, 2026 at 6:33 pm

    i think this is a simple property setting.
    i use the latest source from codeplex 76560.

    you can change the DockableStyle property to the style that you want:

    <ad:SampleDockableContent DockableStyle="DockableToBorders"
                        x:Name="DockingManagerPropertiesHost"
                        Title="Only dock to borders">
    </ad:SampleDockableContent>
    

    and can override this method to disable the contect menu:

    public partial class SampleDockableContent : DockableContent
    {
      public SampleDockableContent() {
        this.InitializeComponent();
        this.DataContext = this;
      }
    
      protected override bool CanExecuteCommand(ICommand command) {
        if (command == DockableContentCommands.ShowAsDocument) {
          if (this.DockableStyle == DockableStyle.DockableToBorders) {
            return false;
          }
          if (this.State == DockableContentState.Document) {
            return false;
          }
        }
        return base.CanExecuteCommand(command);
      }
    }
    

    here is the flag enum:

    /// <summary>
    /// Defines how a dockable content can be dragged over a docking manager
    /// </summary>
    /// <remarks>This style can be composed with the 'or' operator.</remarks>
    public enum DockableStyle : uint
    { 
        /// <summary>
        /// Content is not dockable at all
        /// </summary>
        None = 0x0000,
    
        /// <summary>
        /// Dockable as document
        /// </summary>
        Document    = 0x0001,
    
        /// <summary>
        /// Dockable to the left border of <see cref="DockingManager"/>
        /// </summary>
        LeftBorder  = 0x0002,
    
        /// <summary>
        /// Dockable to the right border of <see cref="DockingManager"/>
        /// </summary>
        RightBorder = 0x0004,
    
        /// <summary>
        /// Dockable to the top border of <see cref="DockingManager"/>
        /// </summary>
        TopBorder   = 0x0008,
    
        /// <summary>
        /// Dockable to the bottom border of <see cref="DockingManager"/>
        /// </summary>
        BottomBorder= 0x0010,
    
        /// <summary>
        /// A <see cref="DockableContent"/> with this style can be hosted in a <see cref="FloatingWindow"/>
        /// </summary>
        Floating = 0x0020,
    
        /// <summary>
        /// A <see cref="DockableContent"/> with this style can be the only one content in a <see cref="DockablePane"/> pane (NOT YET SUPPORTED)
        /// </summary>
        /// <remarks>This style is not compatible with <see cref="DockableStyle.Document"/> style</remarks>
        Single = 0x0040,
    
        /// <summary>
        /// A <see cref="DockableContet"/> with this style can be autohidden.
        /// </summary>
        AutoHide = 0x0080,
    
        /// <summary>
        /// Dockable only to a border of a <see cref="DockingManager"/>
        /// </summary>
        DockableToBorders = LeftBorder | RightBorder | TopBorder | BottomBorder | AutoHide,
    
        /// <summary>
        /// Dockable to a border of a <see cref="DockingManager"/> and into a <see cref="DocumentPane"/>
        /// </summary>
        Dockable = DockableToBorders | Document | Floating,
    
        /// <summary>
        /// Dockable to a border of a <see cref="DockingManager"/> and into a <see cref="DocumentPane"/> but not in autohidden mode (WinForms controls)
        /// </summary>
        DockableButNotAutoHidden = Dockable & ~AutoHide
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using AvalonDock (V2) with a DocumentsSource: <a:DockingManager DocumentsSource={Binding Items}/> I would like
Using sql server 2000, I would like to take my production data and put
I'm using AvalonDock in a project. For the sake of this example, it is
My application does not have multiple documents. So I do not need the tab
Using foreach loops in PHP I would like to add ids to the following
I'm using AvalonDock in a WPF application, and need to persist the layout of
Using JQuery,Is there any possible to capture images/scanned documents from digital Camera/Scanner Connected to
Using MATLAB, you have to start with a uniform distribution between (0,1). You need
I am using Avalon Dock in a project that's similar to notepad++ i have
I'm using AvalonDock to develop a tool for internal use by our developers and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.