wpf - Is it possible to change value from xaml? -
wpf - Is it possible to change value from xaml? -
is possible alter property value xaml?
imagine have usercontrol have property initialized already
public class myusercontrol : usercontrol { ... public someclass mainwindow { { homecoming _someclass ?? (_someclass = new someclass();) } } }
now possible alter property of someclass without initializing xaml, , without animation?
why xaml doesn't allow syntax write <usercontrol.mainwindow.property>
?
add setter property , allow xaml create own someclass according need - that's done.
xaml declarative language, doesn't seek turing finish or that, simply describes creation of objects.
of course, there 1 extreme solution. please, don't it. sake, , else's :)
edit:
another solution create new property in usercontrol, , synchronize property property of someclass ( set{ this._someclass.someproperty = value; }
). if set property in xaml declaration of usercontrol, alter propagated _someclass member.
of course of study wrapper property have dependency property, if want bind wrapped property.
wpf wpf-controls
Comments
Post a Comment