The requested page is not available for the requested platform. You are viewing the content for Default platform.

DXFrame Class

Represents a frame with extended functionality.

Namespace: DevExpress.UI.Xaml.Layout

Assembly: DevExpress.UI.Xaml.Layout.v19.1.dll

Declaration

[TemplatePart(Name = "PART_TitleText", Type = typeof(ContentControl))]
[TemplatePart(Name = "PART_TitlePanel", Type = typeof(StackPanel))]
[TemplatePart(Name = "PART_WindowBackButton", Type = typeof(WindowTitleBackButton))]
[TemplatePart(Name = "PART_SplashScreen", Type = typeof(ContentPresenter))]
[TemplatePart(Name = "PART_TitleBar", Type = typeof(Border))]
public class DXFrame :
    Frame,
    IDXFrame,
    ISupportSplashScreen,
    IWindowTitleCustomizer,
    ISupportNavigationState
<TemplatePart(Name:="PART_TitleText", Type:=GetType(ContentControl))>
<TemplatePart(Name:="PART_TitlePanel", Type:=GetType(StackPanel))>
<TemplatePart(Name:="PART_WindowBackButton", Type:=GetType(WindowTitleBackButton))>
<TemplatePart(Name:="PART_SplashScreen", Type:=GetType(ContentPresenter))>
<TemplatePart(Name:="PART_TitleBar", Type:=GetType(Border))>
Public Class DXFrame
    Inherits Frame
    Implements IDXFrame,
               ISupportSplashScreen,
               IWindowTitleCustomizer,
               ISupportNavigationState

Remarks

In addition to the common frame functionality, DXFrame provides the following features:

Customizable Title

The DXFrame allows you to customize the window title (DXFrame.WindowTitle). This functionality is managed by the DXFrame.AllowCustomizingWindowTitle property.

Splash Screen Support

The DXFrame class implements a special interface that allows you to show splash screens. To learn more about splash screens, refer to SplashScreenService.

Interaction with ViewModels

The DXFrame supports several interfaces that allow you implement interaction between pages and ViewModels.

  • ISupportNavigationEvents - provides methods that are called during navigation to a View.
  • ISupportGoBack - provides methods to control backward navigation.
  • ISupportBackButton - provides a method that is called when the Back button is pressed.
  • ISupportParameter - provides a member that allows data to be passed between ViewModels.

Suspend/Resume the Embedded Controls

The DXFrame automatically saves\loads the state of the controls implementing ISupportSaveLoadControlState interface on application suspending\resuming and provides a local data storage to save\load view models state.

Inheritance

Object
DependencyObject
Windows.UI.Xaml.UIElement
FrameworkElement
Control
Windows.UI.Xaml.Controls.ContentControl
Windows.UI.Xaml.Controls.Frame
DXFrame
See Also