The C1Window type exposes the following members.

Constructors

  Name Description
Public method C1Window
Initializes a new instance of a C1Window.

Methods

  Name Description
Protected method AddChild
Adds a specified object as the child of a ContentControl.
(Inherited from ContentControl.)
Protected method AddText
Adds a specified text string to a ContentControl.
(Inherited from ContentControl.)
Public method BringToFront
Puts the window in front of all windows.
Public method CenterOnScreen
Centers the window in its container.
Public method Close
Closes the window.
Public method Hide
Hides the window without closing it.
Public method OnApplyTemplate
Builds the visual tree for the C1Window control when a new template is applied.
(Overrides C1HeaderedContentControlOnApplyTemplate()()()().)
Protected method OnContentChanged
Called when the Content property changes.
(Inherited from ContentControl.)
Protected method OnContentStringFormatChanged
Occurs when the ContentStringFormat property changes.
(Inherited from ContentControl.)
Protected method OnContentTemplateChanged
Called when the ContentTemplate property changes.
(Inherited from ContentControl.)
Protected method OnContentTemplateSelectorChanged
Called when the ContentTemplateSelector property changes.
(Inherited from ContentControl.)
Public method Show
Opens the window.
Public method ShowModal
Opens the window as modal.

Fields

  Name Description
Public field Static member ButtonBackgroundProperty
Identifies the ButtonBackground dependency property.
Public field Static member ButtonForegroundProperty
Identifies the ButtonForeground dependency property.
Public field Static member DialogResultProperty
Identifies the DialogResult dependency property.
Public field Static member IsActiveProperty
Identifies the IsActive dependency property.
Public field Static member IsDraggableProperty
Identifies the IsDraggable dependency property.
Public field Static member IsResizableProperty
Identifies the IsResizable dependency property.
Public field Static member LeftProperty
Identifies the Left dependency property.
Public field Static member ModalBackgroundProperty
Identifies the ModalBackground dependency property.
Public field Static member MouseOverBrushProperty
Identifies the MouseOverBrush dependency property.
Public field Static member PressedBrushProperty
Identifies the PressedBrush dependency property.
Public field Static member ShowCloseButtonProperty
Identifies the ShowCloseButton dependency property.
Public field Static member ShowMaximizeButtonProperty
Identifies the ShowMaximizeButton dependency property.
Public field Static member ShowMinimizeButtonProperty
Identifies the ShowMinimizeButton dependency property.
Public field Static member TopProperty
Identifies the Top dependency property.
Public field Static member WindowStateProperty
Identifies the WindowState dependency property.

Properties

  Name Description
Public property ButtonBackground
Gets or sets the Brush that will be assigned to the Background of the buttons inside the control.
Public property ButtonForeground
Gets or sets the Brush that will be assigned to the Foreground of the buttons inside the control.
Public property Canvas
Gets or sets the Canvas used to display the window.
Public property Content
Gets or sets the content of a ContentControl. This is a dependency property.
(Inherited from ContentControl.)
Public property ContentStringFormat
Gets or sets a composite string that specifies how to format the Content property if it is displayed as a string.
(Inherited from ContentControl.)
Public property ContentTemplate
Gets or sets the data template used to display the content of the ContentControl. This is a dependency property.
(Inherited from ContentControl.)
Public property ContentTemplateSelector
Gets or sets a template selector that enables an application writer to provide custom template-selection logic. This is a dependency property.
(Inherited from ContentControl.)
Public property DialogResult
Gets or sets the dialog result for the window.
Public property Dispatcher
Gets the Dispatcher this DispatcherObject is associated with.
(Inherited from DispatcherObject.)
Public property HasContent
Gets a value that indicates whether the ContentControl contains content. This is a dependency property.
(Inherited from ContentControl.)
Public property IsActive
Gets or sets whether the window is the active window.
Public property IsDraggable
Gets or set whether the window can be dragged.
Public property IsResizable
Gets or sets whether the window can be resized and maximized.
Public property Left
Gets or sets the distance from the left side of the window to the left side of its container.
Protected property LogicalChildren
Gets an enumerator to the content control's logical child elements.
(Inherited from ContentControl.)
Public property ModalBackground
Gets or sets the brushed used on the background when showing a modal window.
Public property MouseOverBrush
Gets or sets the Brush used to highlight the control when it has the mouse over.
Public property PressedBrush
Gets or sets the Brush used to paint a button when it is pressed.
Public property ShowCloseButton
Gets or sets whether the maximize button of this window is shown.
Public property ShowMaximizeButton
Gets or sets whether the maximize button of this window is shown.
Public property ShowMinimizeButton
Gets or sets whether the minimize button of this window is shown.
Public property Static member ThemeResources
ResourceDictionary that is applied to the C1Window. Typically used with a copy of a C1Theme used somewhere in the app because in Silverlight, themes are not propagated automatically through un-parented Popup .
Public property Top
Gets or sets the distance from the top side of the window to the top side of its container.
Public property WindowState
Gets or sets a value that indicates whether a window is restored, minimized, or maximized.

Events

  Name Description
Public event Closed
Event fired when the window is closed by the user or the Close()()()() method.
Public event Closing
Event fired when the window is about to close, allows the handler to stop the window from being closed.
Public event IsActiveChanged
Event raised when the [P:IsActive] property has changed.
Public event PositionChanged
Fires when the window position changes.
Public event WindowStateChanged
Event raised when the [P:WindowState] property has changed.

See Also