Is there a way to manipulate to order in which Dependency Properties receive their values :
XAML :
<Window local:MyHelper.SomeAttachedProp="{Binding Something , Mode=OneWay}">
<Grid>
<TextBlock Text="Let him go first"
local:MyHelper.AnotherAttachedBooleanProp="True" />
</Grid>
</Window>
CS :
public static class MyHelper
{
propa ....
OnSomeAttachedPropChanged( .... )
{
// I WANT TO GET HERE FIRST
}
propa .....
OnAnotherAttachedBooleanPropChanged( .... )
{
// I WANT TO GET HERE SECOND
}
}
Currently i'm reaching AnotherAttachedBooleanPropChanged before OnSomeAttachedPropChanged is there any way to control to order in which Dependency Properties are updated ?
Edit :
I just remembered/realized something , the DP with a direct assignment will get updated before the bound one .