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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:58:18+00:00 2026-05-14T02:58:18+00:00

I am working on a C# Silverlight application that needs some text rotated 90

  • 0

I am working on a C# Silverlight application that needs some text rotated 90 degrees CCW and for it to be center within an image that is 100px x 221px. The rotation part was easy to do in the design view, but centering the text has been a nightmare. (I am using a 16px font that cant be changed or resized)

My text is dynamic and can be one or two lines. When it is two lines long I can center it fine…but if It is only one line long, I cannot center it. The only way to center it so far is to resize the box and move it to the right.

Is there an easy way of doing this?

alt text http://www.freeimagehosting.net/uploads/f0435a8c65.png

  • 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-14T02:58:18+00:00Added an answer on May 14, 2026 at 2:58 am

    The answer turned out to be simple:

    <Grid x:Name="LayoutRoot">
        <Image x:Name="Background" Source="Background.png" Stretch="Fill"/>
        <TextBlock x:Name="Title"
            Margin="-19.75,68.25,-21.25,67.806" Text="Here is some text to fill this up"
            Foreground="#FF00A33D"
            FontSize="22" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto"
            TextAlignment="Center" TextWrapping="Wrap"
        >
            <TextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="-90"/>
                    <TranslateTransform/>
                </TransformGroup>
            </TextBlock.RenderTransform>
        </TextBlock>
    </Grid>
    

    Then in the cs file set the alignment when you change the text

    Title.VerticalAlignment = VerticalAlignment.Bottom;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a small silverlight application that involves passing some data between javascript
I'm working on an in-browser Silverlight application that has some fairly compute-intensive operations, e.g.,
I'm working on a Silverlight application that works with WCF services. While loading the
I am currently working on an application that allows reverse geocoding using silverlight +
I am working on a Silverlight application that uses WCF. I need to have
I'm working on a silverlight application that allows users to fill out common forms.
I'm working on a Silverlight 4 application that seems to run fine in IE
I am fairly new to Silverlight. I have an application I'm working on that
I'm working on a Silverlight 3 application that has to communicate with a PHP
I'm working on a Silverlight 4 application that seems to run fine in IE,

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.