Saturday, June 29, 2013

Display textbox value and visibility according to selected value of combobox in Metro App

Hello Dewi,


It appears that "cbOperatingSystem.SelectionBoxItem" is of type "AdminPowershellExample.ServiceReference1.OperatingSystem". I guess you'll have to access it this way:



(cbOperatingSystem.SelectionBoxItem as OperatingSystem).operatingSystemType

This assumes that SelectionBoxItem is not null.

In any case, I recommend you debug you app and set a break point on the line that is failing and then inspect the actual value. That should be the fastest way to find out how you have to access the property you want.


Cheers.




Helge Mahrt - Microsoft Developer Support Escalation Engineer - If my reply answers your question, please mark this post as answered.





No comments:

Post a Comment