Back to Devexpress

ApplicationThemeHelper.SaveApplicationThemeName() Method

wpf-devexpress-dot-xpf-dot-core-dot-applicationthemehelper-4fb9dad6.md

latest4.5 KB
Original Source

ApplicationThemeHelper.SaveApplicationThemeName() Method

Saves the current theme name to the application configuration file.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public static void SaveApplicationThemeName()
vb
Public Shared Sub SaveApplicationThemeName

Remarks

Use the SaveApplicationThemeName method to save the current theme name (defined using the ApplicationThemeHelper.ApplicationThemeName property) to the application configuration file. To retrieve the theme name from the configuration file, call the ApplicationThemeHelper.UpdateApplicationThemeName method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SaveApplicationThemeName() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-mvvm-behaviors-currentwindowserializationbehavior/CS/DocumentManagerSerialization/App.xaml.cs#L11

csharp
base.OnExit(e);
    DevExpress.Xpf.Core.ApplicationThemeHelper.SaveApplicationThemeName();
}

wpf-mvvm-framework-openfiledialogservice-and-savefiledialogservice/CS/FileDialogServicesSample/App.xaml.cs#L11

csharp
base.OnExit(e);
    DevExpress.Xpf.Core.ApplicationThemeHelper.SaveApplicationThemeName();
}

how-to-use-wpf-folderbrowserdialogservice/CS/FolderBrowserDialogServiceSample/App.xaml.cs#L7

csharp
base.OnExit(e);
    DevExpress.Xpf.Core.ApplicationThemeHelper.SaveApplicationThemeName();
}

wpf-mvvm-behaviors-currentwindowserializationbehavior/VB/DocumentManagerSerialization/Application.xaml.vb#L13

vb
MyBase.OnExit(e)
    DevExpress.Xpf.Core.ApplicationThemeHelper.SaveApplicationThemeName()
End Sub

wpf-mvvm-framework-openfiledialogservice-and-savefiledialogservice/VB/FileDialogServicesSample/App.xaml.vb#L15

vb
MyBase.OnExit(e)
    DevExpress.Xpf.Core.ApplicationThemeHelper.SaveApplicationThemeName()
End Sub

how-to-use-wpf-folderbrowserdialogservice/VB/FolderBrowserDialogServiceSample/App.xaml.vb#L10

vb
MyBase.OnExit(e)
    DevExpress.Xpf.Core.ApplicationThemeHelper.SaveApplicationThemeName()
End Sub

See Also

ApplicationThemeName

UpdateApplicationThemeName()

ApplicationThemeHelper Class

ApplicationThemeHelper Members

DevExpress.Xpf.Core Namespace