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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:53:13+00:00 2026-06-06T07:53:13+00:00

I have a textblock inside a vertical stackpanel inside a horizontal stackpanel (think Facebook

  • 0

I have a textblock inside a vertical stackpanel inside a horizontal stackpanel (think Facebook – the Horz stackpanel has a picture on the left and a vertical stackpanel on the right with a name and a message).

The textblock for the message won’t wrap unless I put a width on it (otherwise I guess it doesn’t realize that it’s at the edge of the page and the text just keeps going off to the right of the page). If I set a static width on the textblock, then the text wraps correctly.

My problem is that I don’t want a static width, because I believe different phones will have different widths in pixels, and because I want to later add support for landscape and portrait orientation.

How can I tell my textblock to just fit the page, but not give it a static width, since width=Auto isn’t working?

thanks!

  • 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-06T07:53:14+00:00Added an answer on June 6, 2026 at 7:53 am

    Your concern (and need for your question) are unfounded.

    Windows Phone 7 devices ALL have the same screen width (480 pixels) and no WP7 devices will be released with a different screen resolution.

    If your page supports rotation (landscape & horizontal orientations) then you can use the orientation changed events to adjust between 480 & 800 pixels as appropriate.

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

Sidebar

Related Questions

I have a custom textblock that has various text properties for left, right and
I have a user control that inside has a TextBlock (textmsg), the following is
In my XAML I have the code <Grid x:Name=ContentPanel Grid.Row=1 Margin=12,0,12,0> <StackPanel> <TextBlock Height=30
I have item template with image and textblock. And textblock binded to Name property.
I have TextBlock inside HierarchicalDataTemplate. I need to set foreground color to Red when
I have a TextBlock inside a limited-size control. If the text is too long
I have a custom control with a TextBlock inside it: <Style TargetType={x:Type local:CustControl}> <Setter
I have two Grids inside a Stackpanel. The first grid is named as GridX.
I have a textblock inside a list view that I need to hide or
I have a style for a textblock that is set inside my app.xaml this

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.