Shows content in a window inside Silverlight.
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
C# |
---|
[TemplateVisualStateAttribute(Name = "Minimized", GroupName = "WindowStateStates")] [TemplateVisualStateAttribute(Name = "Closed", GroupName = "OpenStates")] [TemplatePartAttribute(Name = "Drag", Type = typeof(FrameworkElement))] [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 = "Dragged", GroupName = "DragStates")] [TemplateVisualStateAttribute(Name = "Still", GroupName = "DragStates")] [TemplateVisualStateAttribute(Name = "Open", GroupName = "OpenStates")] public class C1Window : C1HeaderedContentControl |
Visual Basic |
---|
<TemplateVisualStateAttribute(Name := "Minimized", GroupName := "WindowStateStates")> _ <TemplateVisualStateAttribute(Name := "Closed", GroupName := "OpenStates")> _ <TemplatePartAttribute(Name := "Drag", Type := GetType(FrameworkElement))> _ <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 := "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..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
System.Windows.Controls..::..ContentControl
C1.Silverlight..::..C1HeaderedContentControl
C1.Silverlight..::..C1Window
C1.Silverlight..::..C1NagScreen
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
System.Windows.Controls..::..ContentControl
C1.Silverlight..::..C1HeaderedContentControl
C1.Silverlight..::..C1Window
C1.Silverlight..::..C1NagScreen