Is there any way to instantiate a 'Type' in Silverlight XAML? -
it's known silverlight lacks compelling x:type markupextension (markupextension is not supported in silverlight @ all). there dynamic workaround it?
what enums (x:static)?
my need have commandparameter set type or enum value, neither of these supported in silverlight!
this has done in code-behind. if build custom object exposes property of type type, not "converted" when set via xaml.
this limitation prevents creating things custom enumvalueprovider, exposes type property , updates values properties enum values specified enumeration type. having class allow bind combobox or listbox list of enumeration values in xaml.
you can create custom typeconverter above type property, work around issue. don't xmlns resolution you'd expect. depending on situation, may enough.
here another example, exposes "known" types via properties, can bind to.
Comments
Post a Comment