Skip to content

Port WPF desktop UI from MahApps to WPF UI#742

Draft
Copilot wants to merge 4 commits into
developmentfrom
copilot/port-redesign-wpf-app-to-lepo
Draft

Port WPF desktop UI from MahApps to WPF UI#742
Copilot wants to merge 4 commits into
developmentfrom
copilot/port-redesign-wpf-app-to-lepo

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 29, 2026

Ports the desktop app and shared WPF UI controls from MahApps/ControlzEx to Lepo WPF UI for Fluent styling. Preserves existing layout, bindings, window controls, and user actions while removing MahApps-specific resource and control usage.

  • Dependencies and app resources

    • Replaced MahApps.Metro and ControlzEx package references with WPF-UI.
    • Swapped MahApps resource dictionaries for WPF UI ThemesDictionary and ControlsDictionary resources.
    • Updated third-party license references to WPF UI.
  • Theme handling

    • Replaced ControlzEx theme switching with Wpf.Ui.Appearance.ApplicationThemeManager.
    • Preserved persisted light/dark theme behavior using WPF UI theme dictionaries.
  • Window and control migration

    • Migrated MetroWindow usages to ui:FluentWindow.
    • Added WPF UI TitleBar support to migrated windows/dialogs so close/window controls remain available.
    • Preserved dialog content layout so existing Save/Cancel/OK/action buttons remain visible and functional.
    • Replaced MahApps controls/helpers with WPF UI/native equivalents:
      • NumericUpDownui:NumberBox
      • ToggleSwitchui:ToggleSwitch
      • TextBoxHelper.Watermarkui:TextBox.PlaceholderText
      • MahApps tab/header helpers → default WPF/WPF UI styling
    • Reworked the main flyout/test progress surface using WPF UI Flyout.
  • Fluent resource cleanup

    • Replaced MahApps brush/style keys with WPF UI theme resources.
    • Removed obsolete MahApps-only attached properties and styles.
    • Retained existing UI scale, command, selection, and validation behavior.

Example of the migrated app theme/resource pattern:

<ResourceDictionary.MergedDictionaries>
  <ui:ThemesDictionary Theme="Light" />
  <ui:ControlsDictionary />
</ResourceDictionary.MergedDictionaries>

Copilot AI and others added 3 commits April 29, 2026 11:23
Agent-Logs-Url: https://github.com/webprofusion/certify/sessions/dafcf54e-4cad-4b9a-906f-711eb53fe398

Co-authored-by: webprofusion-chrisc <2445502+webprofusion-chrisc@users.noreply.github.com>
Agent-Logs-Url: https://github.com/webprofusion/certify/sessions/dafcf54e-4cad-4b9a-906f-711eb53fe398

Co-authored-by: webprofusion-chrisc <2445502+webprofusion-chrisc@users.noreply.github.com>
Agent-Logs-Url: https://github.com/webprofusion/certify/sessions/dafcf54e-4cad-4b9a-906f-711eb53fe398

Co-authored-by: webprofusion-chrisc <2445502+webprofusion-chrisc@users.noreply.github.com>
@webprofusion-chrisc
Copy link
Copy Markdown
Contributor

@copilot none of the windows or dialogs have close options or save buttons etc, dark theme and light theme are not implemented

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Agent-Logs-Url: https://github.com/webprofusion/certify/sessions/c080f9ef-83aa-4383-b6e0-689ab3262642

Co-authored-by: webprofusion-chrisc <2445502+webprofusion-chrisc@users.noreply.github.com>
Copy link
Copy Markdown
Author

Copilot AI commented Apr 29, 2026

@copilot none of the windows or dialogs have close options or save buttons etc, dark theme and light theme are not implemented

Fixed in 9d6e8a2: all migrated FluentWindow windows/dialogs now include a WPF UI TitleBar with close/window controls, content is stretched below the title bar so existing Save/Cancel/OK actions remain visible, and app resources now use WPF UI ThemesDictionary/ControlsDictionary so light/dark theme switching applies correctly. Screenshot: I can’t capture a live WPF desktop screenshot from this Linux sandbox, but the WPF desktop project build passes with 0 errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants