mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06:00
23 lines
729 B
PowerShell
23 lines
729 B
PowerShell
function Invoke-WPFUIApps {
|
|
[OutputType([void])]
|
|
param(
|
|
[Parameter(Mandatory, Position = 0)]
|
|
[PSCustomObject[]]$Apps,
|
|
[Parameter(Mandatory, Position = 1)]
|
|
[string]$TargetGridName
|
|
)
|
|
|
|
switch ($TargetGridName) {
|
|
"appspanel" {
|
|
$dockPanel = Initialize-InstallAppsMainElement -TargetGridName $TargetGridName
|
|
$null = Initialize-InstallHeader -TargetElement $dockPanel
|
|
$sync.ItemsControl = Initialize-InstallAppArea -TargetElement $dockPanel
|
|
Initialize-InstallCategoryAppList -TargetElement $sync.ItemsControl -Apps $Apps
|
|
}
|
|
default {
|
|
Write-Output "$TargetGridName not yet implemented"
|
|
}
|
|
}
|
|
}
|
|
|