Skip to content
Thomas PRUD'HOMME

Thomas PRUD'HOMME

What The Future

Tag: Get-ControlValue

Get a named item value in a XAML with PowerShell

Posted on 19/06/201513/04/2018 by Thomas
Get a named item value in a XAML with PowerShell

Hello, I came up with the same idear from my previous post??but to get informations back from the named item. Function Get-ControlValue { ?? ?? [CmdletBinding()] Param( [String]$Control, [Object]$Window = $Window ) switch ($Window.$Control.GetType().Name) { ‘TextBox’ { $Value = $Window.$Control.Text } ‘ComboBox’ { $Value = $Window.$Control.SelectedItem } ‘Button’ { $Value = $Window.$Control.Content } } Write-Output […]

Continue Reading
PowerShell WPF #Button #ComboBox #Get-ControlValue #PowerShell #TextBox #Value #XAML Leave a Comment on Get a named item value in a XAML with PowerShell
Archives
  • January 2018
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • February 2017
  • January 2017
  • November 2016
  • October 2016
  • March 2016
  • December 2015
  • June 2015
  • May 2015
  • August 2014
  • January 2014
  • July 2013
  • June 2013
  • May 2013
  • April 2013
Categories
  • Active Directory
  • Azure
  • Azure Active Directory
  • Azure AD
  • Azure App
  • Azure WebSites
  • AzureRM
  • BIOS
  • BIOS Characteristics
  • BIOS Information
  • CDROM
  • CDROM Information
  • Computer
  • Disk Info
  • Exchange
  • Exchange Online
  • Exchange server
  • FIM 2010 R2
  • Hardware
  • Hyper-V
  • Let's Encrypt
  • MessageBox
  • MS Online
  • Msol
  • Network
  • Office 365
  • Operating System
  • Operating System product
  • Operating System product
  • OSLanguage
  • PowerShell
  • PowerShell Function
  • PowerShell ISE
  • RDCMan
  • System Information
  • TCP
  • Uncategorized
  • Windows IoT
  • Windows Server 2012 R2
  • WMI
  • WPF
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
Bootstrap 4 WordPress Theme | Theme Name: WP Bootstrap 4.