WPF trigger when data is changing

Posted by 0xDEAD BEEF on Stack Overflow See other posts from Stack Overflow or by 0xDEAD BEEF
Published on 2010-04-08T08:38:07Z Indexed on 2010/04/08 8:43 UTC
Read the original article Hit count: 283

Filed under:
|
|

How do i create trigger, which fires, when binding changes value?

<ContentControl Content="{Binding Path=ActiveView}" Margin="0,95,0,0">
    <ContentControl.Triggers>
        <--some triger to fire, when ActiveView is changing or has changed ?!?!? -->
    </ContentControl.Triggers>

public Object ActiveView
{
    get { return m_ActiveView; }
    set {
        if (PropertyChanging != null)
            PropertyChanging(this, new PropertyChangingEventArgs("ActiveView"));
        m_ActiveView = value;
        if (PropertyChanged != null)
            PropertyChanged(this, new PropertyChangedEventArgs("ActiveView"));
    } 
}

© Stack Overflow or respective owner

Related posts about wpf

Related posts about trigger