Back to Devexpress

ApplicationThemeHelper.UpdateApplicationThemeName() Method

wpf-devexpress-dot-xpf-dot-core-dot-applicationthemehelper-f07afd49.md

latest6.0 KB
Original Source

ApplicationThemeHelper.UpdateApplicationThemeName() Method

Loads the theme name from 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 UpdateApplicationThemeName()
vb
Public Shared Sub UpdateApplicationThemeName

Remarks

Use the ApplicationThemeHelper.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 UpdateApplicationThemeName method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the UpdateApplicationThemeName() 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-data-editors-create-registration-form/CS/RegistrationForm.BaseProject/App.xaml.cs#L8

csharp
base.OnStartup(e);
    ApplicationThemeHelper.UpdateApplicationThemeName();
}

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

csharp
base.OnStartup(e);
    DevExpress.Xpf.Core.ApplicationThemeHelper.UpdateApplicationThemeName();
}

wpf-diagram-register-and-use-svg-shapes/CS/DiagramSVGItemsWpf/App.xaml.cs#L18

csharp
{
    DevExpress.Xpf.Core.ApplicationThemeHelper.UpdateApplicationThemeName();
}

wpfscheduler-provide-icalendar-data-exchange-functionality/CS/App.xaml.cs#L16

csharp
DevExpress.Xpf.Core.ApplicationThemeHelper.UpdateApplicationThemeName();
}

wpf-spreadsheet-assign-custom-in-place-editors/CS/WpfSpreadsheet_CustomCellEditors/App.xaml.cs#L18

csharp
DevExpress.Xpf.Core.ApplicationThemeHelper.UpdateApplicationThemeName();
}

wpf-data-editors-create-registration-form/VB/RegistrationForm.Lesson1/App.xaml.vb#L11

vb
MyBase.OnStartup(e)
    Call ApplicationThemeHelper.UpdateApplicationThemeName()
End Sub

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

vb
MyBase.OnStartup(e)
    DevExpress.Xpf.Core.ApplicationThemeHelper.UpdateApplicationThemeName()
End Sub

wpf-diagram-register-and-use-svg-shapes/VB/DiagramSVGItemsWpf/Application.xaml.vb#L17

vb
Private Sub OnAppStartup_UpdateThemeName(ByVal sender As Object, ByVal e As StartupEventArgs)
    DevExpress.Xpf.Core.ApplicationThemeHelper.UpdateApplicationThemeName()
End Sub

wpfscheduler-provide-icalendar-data-exchange-functionality/VB/App.xaml.vb#L12

vb
Private Sub OnAppStartup_UpdateThemeName(ByVal sender As Object, ByVal e As StartupEventArgs)
    DevExpress.Xpf.Core.ApplicationThemeHelper.UpdateApplicationThemeName()
End Sub

wpf-spreadsheet-assign-custom-in-place-editors/VB/WpfSpreadsheet_CustomCellEditors/App.xaml.vb#L12

vb
Private Sub OnAppStartup_UpdateThemeName(ByVal sender As Object, ByVal e As StartupEventArgs)
    DevExpress.Xpf.Core.ApplicationThemeHelper.UpdateApplicationThemeName()
End Sub

See Also

SaveApplicationThemeName()

ApplicationThemeName

ApplicationThemeHelper Class

ApplicationThemeHelper Members

DevExpress.Xpf.Core Namespace