c# - Dependency Property on a usercontrol that is bound to another VM -


I have participated in the following problem: I am currently creating a screen keyboard which is a user control that has its own See MODEL. & lt; UserControl.DataContext & gt; & Lt; Binding source = "{static resource locator}" path = "alpha numeric keyboard" /> & Lt; /UserControl.DataContext>

I am trying to add a dependency property named KeyboardAlphaMode which can be toggled by other consumer models which are using this user's control.

  Dependency for public static readingProperty keyboard alfamodippropy = dependency property Registration ("Keyboard alfalfa mode", typef (UIKeyboardAlphaMode), typef (alphaumeric codebirdview), new frameworkpromartymatata (UIKeyboardAlphaMode.LowerCase, new property changelogblockback (keyboard alfamidecrollback)); Private static zero keyboard alpha modalback (dependent object D, dependency property conflict event ARG E) {...}   

But, when I try to bind this property to another view , The callback was never left.

  & lt; K: alpha pneumatic keyboardboard x: name = "alpha numeric keyboard" keyboard alfamamod = "{binding keyboard alfa maid, update shortcut = property symbolized}" & gt; & Lt; / K: AlphaNumericKeyboardView & gt;   

What am I missing here? A setter? Provide speed?

Or is it just a thought, is there a user control on which dependency is bound to a view modal? Or does it have to be bound itself?


Edit - 10/10/2014 @ 1:31 pm After the reconsideration of the entire solution, I came up with the following scenario for my problem.

The code for this is ...

  
  Binding alpha modbing = new binding ("keyboard alpha mid") {mode = bidding mode. Dove, GoalNullValues ​​= UIboard Alfamamode. Lower case, fallback value = uikeboard alfalfaad.lower casi}; This .Setbending (Keyboard alphaphodaporty, alpha-modbing);   

I also have the dependency property secure so that no one can access it. There is no better way to track property changes, as long as I'm sticking with it now.

Again, it is not sure that this is the best solution, but this work is completed.

Try mode = dua on binding.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -