or
/// <summary>/// Numeric specific <c>DataFormDataField</c>./// </summary>public class DataFormNumericField : DataFormDataField{ /// <summary> /// Returns a control to display and edit the underlying data. /// </summary> /// <returns><c>Control</c></returns> protected override Control GetControl() { RadMaskedNumericInput ctrl = new RadMaskedNumericInput(); return ctrl; }}<amUI:DataFormNumericField x:Name="BatchNumberField" DataMemberBinding="{Binding SelectedBatch.JournalEntryBatchNumber, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged}" Label="{x:Static localProperties:Resources.Batch_Number}" Width="163" amUI:DataFormColumn.LabelColumnWidth="80" IsReadOnly="True"> <amUI:DataFormNumericField.Resources> <Style TargetType="telerik:RadMaskedNumericInput"> <Setter Property="Placeholder" Value=" " /> <Setter Property="SelectionOnFocus" Value="SelectAll"/> <Setter Property="IsClearButtonVisible" Value="False" /> <Setter Property="AllowSkipPlaceholders" Value="False" /> <Setter Property="AutoFillNumberGroupSeparators" Value="False" /> <Setter Property="AutoFillZeros" Value="False" /> <Setter Property="Mask" Value="#10" /> </Style> </amUI:DataFormNumericField.Resources></amUI:DataFormNumericField><telerik:DateTimeContinuousAxis x:Name="horizontalAxis" LabelFormat="dd.MM hh:mm" LabelFitMode="MultiLine"> <i:Interaction.Triggers> <i:EventTrigger EventName="LayoutUpdated"> <i:InvokeCommandAction Command="{Binding LayoutUpdatedCommand}" CommandParameter="{Binding ElementName=horizontalAxis}"/> </i:EventTrigger> </i:Interaction.Triggers></telerik:DateTimeContinuousAxis><telerik:ChartTrackBallBehavior x:Name="trackBallBehavior" ShowTrackInfo="True"> <i:Interaction.Triggers> <i:EventTrigger EventName="TrackInfoUpdated"> <i:InvokeCommandAction Command="{Binding TrackInfoUpdatedCommand}" CommandParameter="{Binding ElementName=trackBallBehavior}"/> </i:EventTrigger> </i:Interaction.Triggers></telerik:ChartTrackBallBehavior>