Dec 4, 2012 at 1:05 PM
Edited Dec 11, 2012 at 2:01 PM
|
I've managed to create a stackpanel with combobox displaying input text file. When an item is choosen I want to update a textbox with part of selected item of combobox. I've created a shared datacontext but are a little bit stuck..could you please have a
look what I'm doing wrong?
New-StackPanel -Background green -DataContext {
$range = (Get-Content -Path "$home\Documents\ipranges.txt").Replace(";"," ") | Sort-Object } -Children {
New-ComboBox -DataBinding @{ ItemsSource = new-binding -Path "." } -IsSynchronizedWithCurrentItem:$true -Margin 15
New-TextBox -FontSize 15 -MaxWidth 400 -DataBinding @{ ItemsSource = new-binding -Path CurrentItem.substring(5) }
}
|