DXWindow Class
In This Article
Represents a window.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v14.2.dll
#Declaration
#Remarks
A window may consist of the following elements:
- A caption which can display an icon (the Icon property), text or custom content (the Title property), the close button, that when clicked, closes the window.
- A content area which allows different visual elements to be displayed.
To show a window, use the Show method. To hide it, use the Hide method. You can also use the DXWindow.ShowAnimation and DXWindow.HideAnimation properties to specify the corresponding animation effects.
After a window has been shown, the Opened event is raised. When the window is being closed, the Closing event is raised, allowing you to cancel the action. After the window has been closed, the Closed event is raised.
#Examples
This example shows how to create, customize and show a window.
public partial class MainPage : UserControl {
public MainPage() {
InitializeComponent();
window.Show();
}
private void Button_Click(object sender, RoutedEventArgs e) {
window.Hide();
}
}
#Inheritance
#Extension Methods
See Also