c# - WPF MultiBinding -
I have two text boxes, one for billing address fields and one for shipping address fields. When the user types something in the billing address text box, the shipping address text box receives the same value due to the following binding scenario:
& lt; Text box name = "txtBillingAddress" text = "{binding billing account, update resource trigger = property changes, mode = two}" /> & Lt; Text box name = "txtShippingAddress" & gt; & Lt; TextBox.Text & gt; & Lt; Multibind converter = "{static resource address converter}" & gt; & Lt; Binding element name = "txtBillingAddress" path = "text" mode = "oneway" /> & Lt; Binding path = "shipping address" update source resource = "asset changed" mode = "dove" /> & Lt; / MultiBinding & gt; & Lt; /TextBox.Text> & Lt; / Text box & gt;
It works fine up to a point billing address, I also want the shipping address to be bound to my database unit My problem is that when the shipping address text box is in the billing address If ConvertBack is typed, then this is happening when
"Text">
Maybe it will be easy to implement in your viewloads?
Public String BillingAdder {Set {billingAddress = value; FirePropertyChanged ("BillingAddress"); If (use the property to ensure the use of the property) {string.isNullOrEmpty (shipping address) {ShippingAddress = value; //} return billingAddress;}}
Comments
Post a Comment