Class SfChromelessWindow
Follow steps 1a or 1b and then 2 to use this custom control in a XAML file.
Step 1a) Using this custom control in a XAML file that exists in the current project. Add this XmlNamespace attribute to the root element of the markup file where it is to be used:
xmlns:MyNamespace="clr-namespace:Syncfusion.SfChromelessWindow.WPF"
Step 1b) Using this custom control in a XAML file that exists in a different project. Add this XmlNamespace attribute to the root element of the markup file where it is to be used:
xmlns:MyNamespace="clr-namespace:Syncfusion.SfChromelessWindow.WPF;assembly=Syncfusion.SfChromelessWindow.WPF"
You will also need to add a project reference from the project where the XAML file lives to this project and Rebuild to avoid compilation errors:
Right click on the target project in the Solution Explorer and "Add Reference"->"Projects"->[Select this project]
Step 2) Go ahead and use your control in the XAML file.
Inheritance
Namespace: Syncfusion.Windows.Controls
Assembly: Syncfusion.SfChromelessWindow.Wpf.dll
Syntax
public class SfChromelessWindow : Window
Constructors
SfChromelessWindow()
Initializes a new instance of the SfChromelessWindow class.
Declaration
public SfChromelessWindow()
Fields
CaptionAlignmentProperty
Identifies the CaptionAlignment dependency property.
Declaration
public static readonly DependencyProperty CaptionAlignmentProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CaptionBackgroundProperty
Identifies the CaptionBackground dependency property.
Declaration
public static readonly DependencyProperty CaptionBackgroundProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CaptionFontSizeProperty
Identifies the CaptionFontSize dependency property.
Declaration
public static readonly DependencyProperty CaptionFontSizeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CaptionForegroundProperty
Identifies the CaptionForeground dependency property.
Declaration
public static readonly DependencyProperty CaptionForegroundProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CaptionHeightProperty
Identifies the CaptionHeight dependency property.
Declaration
public static readonly DependencyProperty CaptionHeightProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Close
Gets a routed command that closes the window.
Declaration
public static readonly RoutedUICommand Close
Field Value
| Type |
|---|
| System.Windows.Input.RoutedUICommand |
EnableTitleProperty
Identifies the EnableTitle dependency property.
Declaration
public static readonly DependencyProperty EnableTitleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
GlassFrameThicknessProperty
Identifies the GlassFrameThickness dependency property.
Declaration
public static readonly DependencyProperty GlassFrameThicknessProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Maximize
Gets a routed command that maximizes the window.
Declaration
public static readonly RoutedUICommand Maximize
Field Value
| Type |
|---|
| System.Windows.Input.RoutedUICommand |
Minimize
Gets a routed command that minimizes the window.
Declaration
public static readonly RoutedUICommand Minimize
Field Value
| Type |
|---|
| System.Windows.Input.RoutedUICommand |
ResizeBorderThicknessProperty
Identifies the ResizeBorderThickness dependency property.
Declaration
public static readonly DependencyProperty ResizeBorderThicknessProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Restore
Gets a routed command that restores the window to normal state.
Declaration
public static readonly RoutedUICommand Restore
Field Value
| Type |
|---|
| System.Windows.Input.RoutedUICommand |
WindowTypeProperty
Identifies the WindowType dependency property.
Declaration
public static readonly DependencyProperty WindowTypeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
CaptionAlignment
Gets or sets the horizontal alignment of the caption text within the caption area.
Declaration
public HorizontalAlignment CaptionAlignment { get; set; }
Property Value
| Type |
|---|
| System.Windows.HorizontalAlignment |
CaptionBackground
Gets or sets the background brush for the window caption area.
Declaration
public Brush CaptionBackground { get; set; }
Property Value
| Type |
|---|
| System.Windows.Media.Brush |
CaptionFontSize
Gets or sets the font size for the window caption text.
Declaration
public double CaptionFontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
CaptionForeground
Gets or sets the foreground brush (text color) for the window caption.
Declaration
public Brush CaptionForeground { get; set; }
Property Value
| Type |
|---|
| System.Windows.Media.Brush |
CaptionHeight
Gets or sets the height of the window caption area.
Declaration
public double CaptionHeight { get; set; }
Property Value
| Type |
|---|
| System.Double |
EnableTitle
Gets or sets a value indicating whether to enable the window title display in the caption.
Declaration
public bool EnableTitle { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
GlassFrameThickness
Gets or sets the thickness of the glass frame around the window.
Declaration
public Thickness GlassFrameThickness { get; set; }
Property Value
| Type |
|---|
| System.Windows.Thickness |
ResizeBorderThickness
Gets or sets the thickness of the resize border that allows users to resize the window.
Declaration
public Thickness ResizeBorderThickness { get; set; }
Property Value
| Type |
|---|
| System.Windows.Thickness |
WindowType
Gets or sets the type of window (Normal or Tabbed).
Declaration
public WindowType WindowType { get; set; }
Property Value
| Type |
|---|
| WindowType |
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnClosed(EventArgs)
Raises the Closed event and removes the window hook.
Declaration
protected override void OnClosed(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e | The event data. |
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e | The System.Windows.RoutedEventArgs that contains the event data. |
OnSourceInitialized(EventArgs)
Raises the SourceInitialized event and initializes the window hook for message processing.
Declaration
protected override void OnSourceInitialized(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e | The event data. |