InputScope

5 posts, 0 answers
  1. Marcin
    Marcin avatar
    4 posts
    Member since:
    May 2013

    Posted 12 Aug 2016 Link to this post

    Has anybody an idea how to provide Inputscope functionality to AutoCompleteBox (to show for example only numeric keybord on mobile device)?
  2. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    177 posts

    Posted 12 Aug 2016 Link to this post

    Hi Marcin,

    You can set the InputScope using the following approach (I've set it to your requested scope, but any of the InputScopeNameValues will work):

    <input:RadAutoCompleteBox x:Name="MyAutoCompleteBox">
        <input:RadAutoCompleteBox.Resources>
            <Style TargetType="autoCompleteBox:AutoCompleteTextBox">
                <Setter Property="InputScope"  Value="Number" />
            </Style>
        </input:RadAutoCompleteBox.Resources>
    </input:RadAutoCompleteBox>


    Let me know if you have any additional questions or concerns. Thank you for contacting Support and for choosing Telerik by Progress!

    Regards,
    Lance | Tech Support Engineer, Sr.
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Marcin
    Marcin avatar
    4 posts
    Member since:
    May 2013

    Posted 13 Aug 2016 in reply to Lance | Tech Support Engineer, Sr. Link to this post

    Thanks for answer but what is the autoCompleteBox:AutoCompleteTextBox object, and what is autoCompleteBox namespace? Is it your own implementation of object derived from RadAutoCompleteTextBox? RadAutoCompleteBox doesn`t provide InputScope property directly.
  4. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    662 posts

    Posted 17 Aug 2016 Link to this post

    Hello,

    the AutoCompleteTextBox is the textbox which the RadAutoCompleteBox control is internally using. 
    It is placed in the Telerik.UI.Xaml.Controls.Input.AutoCompleteBox namespace, so if you add the following line the code should work as expected:
    xmlns:autoCompleteBox="using:Telerik.UI.Xaml.Controls.Input.AutoCompleteBox"

    I hope this helps.

    Regards,
    Ivaylo Gergov
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Gratel
    Gratel avatar
    5 posts
    Member since:
    Dec 2016

    Posted 13 Dec 2016 Link to this post

    When you use controls such as text boxes in your Windows Phone application, the user enters data by using the on-screen keyboard. Depending on the type of data the user is entering, the input scope of default keyboard may not be the best choice. You can change the input scope of the on-screen keyboard to one of many built-in options. When you change the input scope of the keyboard, you can make it much faster and easier for users to enter data in your application.
Back to Top