This is a migrated thread and some comments may be shown as answers.

Does a leading slash in front of a data binding field have any effect?

1 Answer 49 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Rod
Top achievements
Rank 1
Rod asked on 06 Feb 2014, 06:28 PM
What effect, if anything, does putting a slash in from of the field bound to the control, have? For example:

<telerik:RadMaskedNumericInput
    Grid.Column="1"
    HorizontalAlignment="Left"
    Grid.Row="2"
    Margin="5,0,0,0"
    VerticalAlignment="Bottom"
    Mask="####"
    FontFamily="Century Gothic"
    FontSize="16"
    Value="{Binding /ProbationStartYear}"
    IsClearButtonVisible="False"
    AutoFillNumberGroupSeparators="False" />

1 Answer, 1 is accepted

Sort by
0
Accepted
Boris
Telerik team
answered on 10 Feb 2014, 05:15 PM
Hello Rod,

The RadMaskedTextInput component doesn't have any specific logic for handling the leading slash. It handles the binding as would any other WPF input component do.

More information on the PropertyPath xaml syntax you can find here, where in the section "PropertyPath for Objects in Data Binding" under the titles "Current Record Pointer" and "Source Traversal (Binding to Hierarchies of collections)" the leading slash behavior is further described.

Regards,
Boris Penev
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Rod
Top achievements
Rank 1
Answers by
Boris
Telerik team
Share this question
or