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 940323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:56:14+00:00 2026-05-15T21:56:14+00:00

In Windows Phone 7, a textbox with IsReadOnly property is set to true, when

  • 0

In Windows Phone 7, a textbox with IsReadOnly property is set to true, when it runs (at least in the Beta emulator), even with Background color set to Black and Foreground color set to White, the background remains gray with the foreground chars a lighter gray. I need to change this so it is readable!

So is there a way to override this?

I’ve tried setting it to something else in the textbox load event, but it hasn’t worked. Apparently setting ReadOnly to true sets the fore/background colors in stone.

Here would be some code to change the colors, if they could be changed:

SolidColorBrush ForeBrush = new SolidColorBrush();
SolidColorBrush BackBrush = new SolidColorBrush();
ForeBrush.Color = Colors.White;
BackBrush.Color = Colors.Black;
txtFrom.Foreground = ForeBrush;
txtFrom.Background = BackBrush;
  • 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-15T21:56:15+00:00Added an answer on May 15, 2026 at 9:56 pm

    I think that template of textbox contains visual style for read-only textbox. Therefore you can’t set other style.
    But you can try to change template for textbox also as any other silverlight control:

    <TextBox ..>
      <TextBox.Template>
        ...
      </TextBox.Template>
    </TextBox>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my windows phone 7 App I have a single line textbox. When the
I'm using Microsoft Windows Phone 7 Tools Beta. I have a custom control that
I want add to my Windows phone app masked textbox, are there ready-made control
I have a Windows Form with data bound textBox which displays a phone number
The TextBox control in Windows Phone 7 Silverlight inserts a period if you press
Is there a way to get a TextBox in Windows Phone 7 to update
I'm trying to create a transparent textbox control for a windows phone 7 application...
I was trying to customize the textbox control in the windows phone application. I
I like the windows phone 7 designer but the copy and paste of textbox
I have a simple textbox on my Windows Phone 7 application. I want to

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.