Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6971749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:52:47+00:00 2026-05-27T16:52:47+00:00

I was trying to customize the textbox control in the windows phone application. I

  • 0

I was trying to customize the textbox control in the windows phone application. I have done with the customization of the textbox using controltemplate and when i run the application I can’t view the data that is being entered on to the textbox. the following is my xaml code:

<TextBox IsEnabled="True" Name="txtemailVal" Height="46"
        BorderThickness="2" BorderBrush="Black" HorizontalAlignment="Left"
        Margin="170,203,0,338" Width="258">
    <TextBox.Template>
        <ControlTemplate TargetType="TextBox">
            <Border Background="{TemplateBinding Background}"
                BorderBrush="LightSeaGreen"
                BorderThickness="{TemplateBinding BorderThickness}"
                CornerRadius="5">
            </Border>
        </ControlTemplate>
    </TextBox.Template>
    <TextBox.InputScope>
        <InputScope>
            <InputScopeName NameValue="EmailUserName"/>
        </InputScope>
    </TextBox.InputScope>
</TextBox>

could anyone help me to reslove this issue? Thanks in advance..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:52:47+00:00Added an answer on May 27, 2026 at 4:52 pm

    You are missing a control to actually “host” your text, by default this is a ScrollViewer, so something like this should do the trick:

    <TextBox IsEnabled="True" Name="txtemailVal" Height="46" BorderThickness="2" BorderBrush="Black" HorizontalAlignment="Left" Margin="170,203,0,338" Width="258">
        <TextBox.Template>
            <ControlTemplate TargetType="TextBox">
                <Border Background="{TemplateBinding Background}"
                        BorderBrush="LightSeaGreen" 
                        BorderThickness="{TemplateBinding BorderThickness}" 
                        CornerRadius="5">
                    <ScrollViewer Margin="0" x:Name="ContentElement" />
                </Border>
            </ControlTemplate>
        </TextBox.Template>
        <TextBox.InputScope>
            <InputScope>
                <InputScopeName NameValue="EmailUserName"/>
            </InputScope>
        </TextBox.InputScope>
    </TextBox>
    

    Notice that the ScrollViewer is called ContentElement. This is a “named part” and is documented in the MSDN article on TextBox stlyes and templates for Silverlight as being the element where the text is displayed. Other controls have named parts, too, so if you’re customizing several controls, I suggest you take a look at the other articles too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to make a make generic select control that I can dynamically add elements
I'm trying to customize the autocomplete combobox with the intent of using it for
I'm trying to customize my admin panel. I have copied change_list.html to the proper
I am trying to customize the font of a UITableViewCell using the following code
I am trying to customize the installation of JasperServer. I have downloaded the source.
I'm using BCTabBarController in my app, and I'm trying to customize it so that
I'm trying to customize the Galleria jQuery plugin to allow for rich captions using
I am trying to customize the moreNavigationController in a UITabBarController. I have been reading
I have a problem with my combobox I'm trying to customize. It is in
I'm trying to customize the icon that shows in Windows Explorer and in Desktop

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.