Jump to: navigation, search

Changes


Property Direct Edit (Client)

420 bytes added, 11:44, 28 January 2022
/* Behaviors and controls */
<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 has a similar "TimeSelected" Event (Note that this feature yet.event may have wrong behaviour on iOS)
<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>
<ctrls:TimePickerExt Time="{Binding PropertyViewModel.ValueItem.PropertyValue.Time, Converter={StaticResource StringToDateTimeTypesConverter}">
<ctrls:TimePickerExt.Behaviors>
<behaviors:EventToCommandBehavior EventName="TimeSelected" Command="{Binding PropertyViewModel.ConfirmEditCommand}"/>
</ctrls:TimePickerExt.Behaviors>
</ctrls:TimePickerExt>
</source>
</tab>
33
edits