locked
property changed event - entities RRS feed

  • Question

  • I have read some great post on using the property changed event, and had success implementing a couple of solutions.

    Has there been a solution on how to use the property changed event on data from entities? My goal is to be able to change the visibility of controls based on a value from the entity. 

     

    Thanks,

    Jason


    jason
    Tuesday, December 13, 2011 12:30 AM

Answers

  • Couple other ideas

    1) Make them readonly instead !visible

            partial void Email_IsReadOnly(ref bool result)
            {
                if (this.PhoneNumber != null)
                    result = true;
            }

    2) Use SelectedChanged event on the screen query on the left. Then run your logic on the current selected entity.

    Tuesday, December 13, 2011 2:00 AM