Shows content in a window inside WPF.

Namespace:  C1.WPF
Assembly:  C1.WPF (in C1.WPF.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

C#
[TemplateVisualStateAttribute(Name = "Closed", GroupName = "OpenStates")]
[LicenseProviderAttribute]
[TemplatePartAttribute(Name = "Close", Type = typeof(Button))]
[TemplatePartAttribute(Name = "Resize", Type = typeof(Border))]
[TemplatePartAttribute(Name = "Maximize", Type = typeof(Button))]
[TemplatePartAttribute(Name = "Minimize", Type = typeof(Button))]
[TemplateVisualStateAttribute(Name = "Active", GroupName = "ActiveStates")]
[TemplateVisualStateAttribute(Name = "Inactive", GroupName = "ActiveStates")]
[TemplateVisualStateAttribute(Name = "Floating", GroupName = "WindowStateStates")]
[TemplateVisualStateAttribute(Name = "Maximized", GroupName = "WindowStateStates")]
[TemplateVisualStateAttribute(Name = "Minimized", GroupName = "WindowStateStates")]
[TemplateVisualStateAttribute(Name = "Dragged", GroupName = "DragStates")]
[TemplateVisualStateAttribute(Name = "Still", GroupName = "DragStates")]
[TemplateVisualStateAttribute(Name = "Open", GroupName = "OpenStates")]
public class C1Window : C1HeaderedContentControl
Visual Basic
<TemplateVisualStateAttribute(Name := "Closed", GroupName := "OpenStates")> _
<LicenseProviderAttribute> _
<TemplatePartAttribute(Name := "Close", Type := GetType(Button))> _
<TemplatePartAttribute(Name := "Resize", Type := GetType(Border))> _
<TemplatePartAttribute(Name := "Maximize", Type := GetType(Button))> _
<TemplatePartAttribute(Name := "Minimize", Type := GetType(Button))> _
<TemplateVisualStateAttribute(Name := "Active", GroupName := "ActiveStates")> _
<TemplateVisualStateAttribute(Name := "Inactive", GroupName := "ActiveStates")> _
<TemplateVisualStateAttribute(Name := "Floating", GroupName := "WindowStateStates")> _
<TemplateVisualStateAttribute(Name := "Maximized", GroupName := "WindowStateStates")> _
<TemplateVisualStateAttribute(Name := "Minimized", GroupName := "WindowStateStates")> _
<TemplateVisualStateAttribute(Name := "Dragged", GroupName := "DragStates")> _
<TemplateVisualStateAttribute(Name := "Still", GroupName := "DragStates")> _
<TemplateVisualStateAttribute(Name := "Open", GroupName := "OpenStates")> _
Public Class C1Window _
	Inherits C1HeaderedContentControl
XAML Object Element Usage
<C1Window .../>

Remarks

This control should not be added as the child of another control. It can either be opened as a Popup by calling the Show()()()() method or displayed inside a Canvas by using the Canvas property.

Inheritance Hierarchy

System..::..Object
  System.Windows.Threading..::..DispatcherObject
    System.Windows..::..DependencyObject
      System.Windows.Media..::..Visual
        System.Windows..::..UIElement
          System.Windows..::..FrameworkElement
            System.Windows.Controls..::..Control
              System.Windows.Controls..::..ContentControl
                C1HeaderedContentControl
                  C1.WPF..::..C1Window

See Also