HandheldCompanion icon indicating copy to clipboard operation
HandheldCompanion copied to clipboard

Convert HC GUI to MVVM

Open CasperH2O opened this issue 1 year ago • 1 comments

Large scale refactor effort to get HCs GUI to MVVM implementation / design patter.

Checklist of pages.

Main GUI

  • [x] About
  • [ ] Controller
  • [ ] Device
  • [x] Hotkeys
  • [ ] Layout
  • [x] - Buttons
  • [x] - Dpad
  • [x] - Gyro
  • [x] - Joysticks
  • [x] - Trackpads
  • [x] - Triggers
  • [ ] Notifications
  • [ ] Overlay
  • [x] Performance
  • [ ] Profiles
  • [ ] - Mode0
  • [ ] - Mode1
  • [ ] Settings

Quick Tools

  • [ ] Device
  • [ ] Home
  • [x] Overlay
  • [x] Performance
  • [ ] Profiles
  • [x] Suspender

Do Windows (3D model, Main, trackpad QT) also need to be done?

CasperH2O avatar Feb 20 '24 07:02 CasperH2O

Issue found in MVVM rework, but not initial.

  • ~~Layout, gyro tab, joystick has left and right pad as options in the dropdown, these are not present in the main branch~~
  • ~~CPU Core count initially shows double values (16 for 8), after moving the slider it's OK again~~
  • Error: System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=Toggle_UniversalMotion'. BindingExpression:Path=IsOn; DataItem=null; target element is 'Grid' (Name=''); target property is 'IsEnabled' (type 'Boolean')

Minor notes, found during MVVM testing, not specifically MVVM related.

  • Suspender read only DPI and fullscreel optimization info, remove?
  • Profile, layout, buttons, disabled buttons still have a dropdown
  • Endless amount of button extra's, perhaps limit to 5?

CasperH2O avatar Feb 20 '24 13:02 CasperH2O