< Back

New-WpfWindow

Sat Jan 18, 2020 6:23 pm

NAME New-WpfWindow



SYNOPSIS

Creates a new GUI window.





SYNTAX

New-WpfWindow [[-XamlString] <System.String>] [[-Content] <System.Windows.UIElement>] [[-Options]

<System.Collections.Hashtable>] [[-PassThru]] [<CommonParameters>]





DESCRIPTION

Creates a new GUI window. The newly created window will be visible immediately.



The content of the window can be specified as the XAML string by the `-XamlString` parameter or a `UIElement`

object by the `-Content` parameter.



The windows this cmdlet creates run in a different thread from that of the current PowerShell session. Thus, Their

properties should be accessed through the `Invoke-WpfWindowAction` cmdlet.





PARAMETERS

-Content <System.Windows.UIElement>

The content of the window.



This content should be bound to the same thread as the window.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Options <System.Collections.Hashtable>

Specifies the set of the pairs of the property name and the value.



These properties are assigned to the window object.



Required? false

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PassThru <System.Management.Automation.SwitchParameter>

Indicates to return a created window object.



Required? false

Position? 3

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-XamlString <System.String>

Specifies the XAML string that compiled to the content of the window.



Required? false

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

System.Object







NOTES











RELATED LINKS

Online Version: https://github.com/horker/oxyplotcli2/b ... fWindow.md