I have the following command:
TakeOwnershipCommand = new Command(async () =>
{
ProcessSessionChanges(await TakeOwnership(LoadedProcedureMetadata.Id));
},
() => LoadedProcedureMetadata.owner_id != UserProfile.SessionId
);
And a button bound to it:
<Button Text="Own" Command="{Binding SessionState.TakeOwnershipCommand}"/>
When the owner_id changes:
if (e.PropertyName == "owner_id")
{
TakeOwnershipCommand.ChangeCanExecute();
}
What I observe is the Button only makes one transition from enabled to disables and then nothing. I can track the CanExecute running and producing the right result but the Button doesn't change state. If I recreate the page(modal), the state is correct until the next execution.
Any insight would be appreciated. Using v3.2.0.729530-pre2
John