devhome icon indicating copy to clipboard operation
devhome copied to clipboard

Changed AppDetailsPage IsXXX to a collection of readonly checkboxes

Open andreww-msft opened this issue 1 year ago • 1 comments

As part of this, created a new FrameworkTypes model, and AppRuntimeInfo now has an ObservableCollection of these. This should make it easier to add new framework types later (I added Python). In the UI, each item is represented by a readonly CheckBox in a WrapPanel, so that they flow when the window is sized. Standard CheckBox doesn't support readonly, so I added a custom ReadOnlyCheckBox control.

Also simplified the visibility of the problem fields in the AppDetailsPage - these are all now within a grid, so we only have to set visibility on the grid instead of on each field (should also improve perf very slightly).

Sorted the module list by name. Added a GridSplitter to the Modules page, so that the user can size the width of the list.

Also, when the user closes the Bar window, we save the expanded size to user settings (if not maximized).

Deleted some redundant fields and strings.

andreww-msft avatar May 15 '24 16:05 andreww-msft

support readonly Checkboxes have IsEnabled. That does make the control read-only. Did you need other behavior besides this?

Can you please put a video of the changes in the PR?

dhoehna avatar May 15 '24 17:05 dhoehna

AppDetails-checkboxes

andreww-msft avatar May 16 '24 15:05 andreww-msft