locked
DependencyProperty and AffectsRender RRS feed

  • Question

  • I'm trying to build a custom control, and have implemented a few dependency properties.

    Under WPF it was possible to set a flag that indicated a change of the property affected render of the control (via AffectsRender)

    Unfortunately, that doesn't appear to exist in Windows Store Apps, so I've had to do it like this:

    private async void OnPropertyChanged(int oldValue, int newValue)
    {
       // do the work... then
       some_ui_element.InvalidateArrange();
    }

    Is this really the best way, as I don't really need the layout pass, as the only thing that's changed is the rendering?


    Anthony Wieser | Wieser Software Ltd | www.wieser-software.com

    Wednesday, January 1, 2014 9:05 AM

Answers