WindowTitleBarBehavior ClassDW.WPFToolkit Documentation
Brings the feature to the Window to disable or hide elements in the title bar.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      DW.WPFToolkit.InteractivityWindowTitleBarBehavior

Namespace: DW.WPFToolkit.Interactivity
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public class WindowTitleBarBehavior : DependencyObject

The WindowTitleBarBehavior type exposes the following members.

Constructors

  NameDescription
Public methodWindowTitleBarBehavior
Initializes a new instance of the WindowTitleBarBehavior class
Top
Methods

  NameDescription
Public methodStatic memberGetDisableCloseButton
Gets a value that indicates if the window has an enabled close button or not.
Public methodStatic memberGetDisableMaximizeButton
Gets a value the indicates if the window has an enabled maximize button or not.
Public methodStatic memberGetDisableMinimizeButton
Gets a value the indicates if the window has an enabled minimize button or not.
Public methodStatic memberGetDisableSystemMenu
Gets a value that indicates if the window has a system menu or not.
Public methodStatic memberGetRemoveTitleItems
Gets a value the indicates if the window has to show title bar items or not.
Public methodStatic memberSetDisableCloseButton
Attaches a value the indicates if the window has an enabled close button or not.
Public methodStatic memberSetDisableMaximizeButton
Attaches a value the indicates if the window has an enabled maximize button or not.
Public methodStatic memberSetDisableMinimizeButton
Attaches a value the indicates if the window has an enabled minimize button or not.
Public methodStatic memberSetDisableSystemMenu
Attaches a value the indicates if the window has a system menu or not.
Public methodStatic memberSetRemoveTitleItems
Attaches a value the indicates if the window has to show title bar items or not.
Top
Fields

  NameDescription
Public fieldStatic memberDisableCloseButtonProperty
Public fieldStatic memberDisableMaximizeButtonProperty
Public fieldStatic memberDisableMinimizeButtonProperty
Public fieldStatic memberDisableSystemMenuProperty
Public fieldStatic memberRemoveTitleItemsProperty
Top
Attached Properties

  NameDescription
Public attached propertyDisableCloseButton
Public attached propertyDisableMaximizeButton
Public attached propertyDisableMinimizeButton
Public attached propertyDisableSystemMenu
Public attached propertyRemoveTitleItems
Top
Examples

XAML
<Window Interactivity:WindowTitleBarBehavior.DisableMinimizeButton="True"
        Interactivity:WindowTitleBarBehavior.DisableMaximizeButton="True"
        Interactivity:WindowTitleBarBehavior.DisableSystemMenu="True">
</Window>
See Also

Reference