EscapeCommand="{Binding CancelEditCommand}" />
</Grid>
</source>
</tab>
<tab name="DateTime Control UWP">
The DateTime Control has an additional Event called "DateTimeChanged" that is called when confirming a value on the flyoutpickers.
<source lang = "xml">
<controls:UBIKCalendarControl DateString="{Binding ValueItem.PropertyValue.Date, Mode=TwoWay}">
<Interactivity:Interaction.Behaviors>
<Core:EventTriggerBehavior EventName="DateTimeChanged">
<Core:InvokeCommandAction Command="{Binding PropertyViewModel.SaveAndCommitCommand}" />
</Core:EventTriggerBehavior>
<behaviours:KeyEventTriggerBehavior KeyName="Enter">
<Core:InvokeCommandAction Command="{Binding PropertyViewModel.ConfirmEditCommand}" />
</behaviours:KeyEventTriggerBehavior>
</Interactivity:Interaction.Behaviors>
</controls:UBIKCalendarControl>
<controls:UBIKTimeControl TimeString="{Binding ValueItem.PropertyValue.Time, Mode=TwoWay}">
<Interactivity:Interaction.Behaviors>
<Core:EventTriggerBehavior EventName="DateTimeChanged">
<Core:InvokeCommandAction Command="{Binding PropertyViewModel.SaveAndCommitCommand}" />
</Core:EventTriggerBehavior>
<behaviours:KeyEventTriggerBehavior KeyName="Enter">
<Core:InvokeCommandAction Command="{Binding PropertyViewModel.ConfirmEditCommand}" />
</behaviours:KeyEventTriggerBehavior>
</Interactivity:Interaction.Behaviors>
</controls:UBIKTimeControl>
</source>
</tab>
<tab name="DateTimeControl Xamarin">
The CalendarControl has an additional Event called "DateSelected" that is called when confirming a value on the flyoutpickers. The TimeControl doesn't have this feature yet.
<source lang = "xml">
<DatePicker Date="{Binding PropertyViewModel.ValueItem.PropertyValue.Date, Converter={StaticResource StringToDateTimeTypesConverter}>
<DatePicker.Behaviors>
<behaviors:EventToCommandBehavior EventName="DateSelected" Command="{Binding PropertyViewModel.ConfirmEditCommand}"/>
</DatePicker.Behaviors>
</DatePicker>
</source>
</tab>