Shows content in a window inside WPF.
Namespace:
C1.WPFAssembly: C1.WPF (in C1.WPF.dll)
Syntax
C# |
---|
[TemplatePartAttribute(Name = "Drag", Type = typeof(FrameworkElement))] [TemplateVisualStateAttribute(Name = "Closed", GroupName = "OpenStates")] [LicenseProviderAttribute] [TemplatePartAttribute(Name = "Root", Type = typeof(FrameworkElement))] [TemplatePartAttribute(Name = "Close", Type = typeof(Button))] [TemplatePartAttribute(Name = "Resize", Type = typeof(Border))] [TemplatePartAttribute(Name = "Content", Type = typeof(FrameworkElement))] [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 |
---|
<TemplatePartAttribute(Name := "Drag", Type := GetType(FrameworkElement))> _ <TemplateVisualStateAttribute(Name := "Closed", GroupName := "OpenStates")> _ <LicenseProviderAttribute> _ <TemplatePartAttribute(Name := "Root", Type := GetType(FrameworkElement))> _ <TemplatePartAttribute(Name := "Close", Type := GetType(Button))> _ <TemplatePartAttribute(Name := "Resize", Type := GetType(Border))> _ <TemplatePartAttribute(Name := "Content", Type := GetType(FrameworkElement))> _ <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 |
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
C1.WPF..::..C1HeaderedContentControl
C1.WPF..::..C1Window
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
C1.WPF..::..C1HeaderedContentControl
C1.WPF..::..C1Window