text: I hope that title wasn't too confusing. I'm going to try my hardest to explain what I am trying to do.
  I have a child UserControl and parent UserControl. The child UserControl has a Dependency Property that I want to set in my parent UserControl. I want to see the set operation change the child UserControl visually while I change the xaml in the
  parent UserControl. This setter needs to require that it's value is selected from a specific subset of a set of objects.
  How do I accomplish this?
  The only thing I can think to do is to specify the name of the object being selected and handle the actual selection of that object in the callback of the dependency property setter.
  View Complete Post
  My class has a property ObservableCollection<MyType>. When any value of MyType changes, I want the setter for my property to be hit. It seems the setter is only hit when the CollectionChanged event is thrown, but in this case the Collection isn't changing,
  just a value of one of the properties in my Collection.
  Any pointers?
  Hy everybody,I am struggling with a problem.I basically want to provide a data template for my data model and when a trigger on the view happens,I want to change a property in my data model.I cannot figure out how to tell the Setter that it needs to change
  a property of the templated parent. Here is how it looks now:
  My data model for a "Line" looks like this:
  public class LineModel : DependencyObject
  {
  public ushort Value
  {
  get
  {
  return (ushort)base.GetValue(ValueProperty);
  }
  set
  {
  base.SetValue(ValueProperty, value);
  }
  }
  public static DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(ushort), typeof(LineModel));
  public?
  <
  Hello,:
  hello ?
  Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend