I have a View and in this view I have a behaviour:
<Grid x:Name="main" Style="{StaticResource GridMain}"
behaviors:KeyboardFocusBehavior.On="{Binding ElementName=somecontrol}">
</Grid>
In my viewmodel I have a boolean property named SuccesfullyLoggedIn
.
I am trying to run the behaviour only at the moment SuccesfullyLoggedIn
is true.
How can achieve this? Currently when the view is loaded the behaviour is running. I want this to be ran only when the SuccesfullyLoggedIn
is true and not on the load