mirror of
https://github.com/Micke-K/IntuneManagement.git
synced 2026-09-28 19:05:38 +02:00
IntuneManagement 4.0.0-beta1
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ImportOrder 6
|
||||
|
||||
# CLR-typed shape for items inside the Settings dialog's ComboBox controls
|
||||
# (Type="List" settings). Existing setting registrations pass PSCustomObject
|
||||
# arrays in -ItemsSource with .Name / .Value properties — those won't bind in
|
||||
# Avalonia (see [[avalonia-binding-needs-clr-types]]). Add-SettingComboBox
|
||||
# converts each PSCustomObject into one of these before assigning ItemsSource.
|
||||
|
||||
class SettingsListItem
|
||||
{
|
||||
[string]$Name
|
||||
[object]$Value
|
||||
|
||||
SettingsListItem() {}
|
||||
|
||||
[string] ToString()
|
||||
{
|
||||
return [string]$this.Name
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user