wpf - Binding doesn't get updated -
I have a text box to a class in which I attach the dependency property of a point to the point and its set segment. Canvas.Top and canvas. To clarify property assets, whenever the source property changes, then the set section of property is called correct? Because when my source updates the canvas and canvas properties of the text box, the update is not found. Any help would be appreciated. Where CreateConnectorBinding gives the mid-point of the oval based on the Canvas.Top and Canvas.Left properties. But when the canvas of Llips. The desktop and canvas left property are updated, the textbox status is not updated yet. When the validation value changes through the binding, then not Does setter You need to add Property Change Callback for Framework Property MetaTate on your Dependency Property Registration: Public static read-only dependency property status property = dependency property Registration ("Status", Type (Point), Typef (Text Box), New FrameworkPromatematetta (New Point (0, 0))); Public Point Status {Get Return Point (Gateville) (StateProperty); } Set {Set Value (Progress, Value); Canvas SetLeft (this, value.X - this .with / 2); Canvas SetTop (this, value.Wi - it.FontSize); }}
this.TextBoxShape.SetBinding (TextboxShape.PositionProperty, CreateConnectorBinding (this));
Dependency property for public static readabilityError = Dependency Property Registration ("Status", Type (Point), Typef (Text Box), New Framework Property Metadata (new point (0, 0), Status change)); Private static zero status changed (Dependency Object D, Dependency Property Entrepreneur E) {YourControl control = (YourControl) D; Canvas SetLeft (D, D. Composition X-D with With / 2); Canvas SAT Topp (D, D. Padan Y - D. Fontsis); }
Comments
Post a Comment