c# - Binding height, width, etc to a variable -
c# - Binding height, width, etc to a variable -
i don't know if i'm not understanding i've found far, or if complex apply such simple thought seems. i'm trying bind button's height , width variables stored in user settings. can't seem work, or rather don't how to, in commands use. issue lies in not knowing set in binding field of xaml. if point guide involves this, explain appreciative.
edit: i've solved problem of binding variable, saves user setting file when should. i'm having issue value stored in user setting beig overwritten every time programme loads default value. running through vs debug menu selection, suppose issue lie there, i've tried publishing , running , still getting same results. ideas?
assuming 'user settings' mean built-in settings not custom implementation:
see http://blogs.windowsclient.net/bragi/archive/2008/07/03/using-settings-in-wpf-or-how-to-store-retrieve-window-pos-and-loc.aspx illustration of - want set twoway
bindings properties.settings.default
: note have define settings in advance using settings ui, , have phone call properties.settings.default.save()
when app exits persist settings.
c# wpf variables binding
Comments
Post a Comment