2024-10-13 12:25:02 -05:00
|
|
|
function Invoke-WPFUIApps {
|
|
|
|
[OutputType([void])]
|
|
|
|
param(
|
|
|
|
[Parameter(Mandatory, Position = 0)]
|
|
|
|
[PSCustomObject[]]$Apps,
|
|
|
|
[Parameter(Mandatory, Position = 1)]
|
2024-10-14 12:17:12 -05:00
|
|
|
[string]$TargetGridName
|
2024-10-13 12:25:02 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
switch ($TargetGridName) {
|
|
|
|
"appspanel" {
|
2024-10-28 16:53:03 -05:00
|
|
|
$mainStackPanel = Initialize-AppStackPanel -TargetGridName $TargetGridName
|
|
|
|
$null = Initialize-InstallHeader -TargetElement $mainStackPanel
|
|
|
|
$sync.ItemsControl = Initialize-InstallAppArea -TargetElement $mainStackPanel
|
|
|
|
Initialize-InstallCategoryAppList -TargetElement $sync.ItemsControl -Apps $Apps
|
2024-10-13 12:25:02 -05:00
|
|
|
}
|
|
|
|
default {
|
|
|
|
Write-Output "$TargetGridName not yet implemented"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-10-21 15:35:00 -05:00
|
|
|
|