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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:05:31+00:00 2026-06-11T10:05:31+00:00

I am using C#, Silverlight. Some properties of some objects don’t seem to be

  • 0

I am using C#, Silverlight.

Some properties of some objects don’t seem to be available to me. For example, the TextBlock class is supposed to have a Background property, but my Visual Studio doesn’t seem to realize it.

My example code:

// myTextBlock is a TextBlock, myColor is a SolidColorBrush.Color
// these objects were both initiated elsewhere
myTextBlock.Foreground= myColor;

The Foreground property works just fine.

But if I try the Background property:

myTextBlock.Background = myColor;

This doesn’t work as Visual Studio doesn’t recognize that TextBlocks have a Background property.

Online documentation of the TextBlock class:
http://msdn.microsoft.com/en-us/library/system.windows.controls.textblock.aspx

Any idea what is going on?

  • 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-06-11T10:05:33+00:00Added an answer on June 11, 2026 at 10:05 am

    TextBlock.Background isn’t available in Silverlight.

    There’s framework version switch at the top of MSDN pages. Turn it into ‘Silverlight’ position, an you’ll see actual properties list.

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

Sidebar

Related Questions

Using Silverlight 3 and RIA Services I have the following class defined in my
I am using Silverlight 4, in Visual Studio 2010. I have some Domain Services
I'm using Silverlight to draw some shapes and text on top of an image.
I am using silverlight 4. I have a scenario where i need to compare
I'm using Silverlight 3 in Visual Studio 2008. Unfortunately I can't seem to get
Background: I've been using the November 2009 release of the Silverlight Toolkit Charting components
I'm using Silverlight and need to display some OTF fonts. Now Silverlight supports OTF
So I am using Silverlight 4.0 I have the following code but its giving
I'm building an application on Phone 7 using Silverlight and need to maintain some
Hello everyone. I'm using Silverlight webbrowser control, and I'm having some problems with that.

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.