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

  • Home
  • SEARCH
  • 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 521009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:12:18+00:00 2026-05-13T08:12:18+00:00

I have a Rectangle Shape in Silverlight that is rotated 15 degrees. It is

  • 0

I have a Rectangle Shape in Silverlight that is rotated 15 degrees. It is filled with an image. The normal behavior of SL is to rotate the Fill object with it’s parent (the rectangle, in this case).

Is there any way to ignore the transform effect for the Fill object? I’d like the image to continue to point north on the screen.

Here’s the XAML I have below. I’d like to see if there is a property or another way to not rotate the ImageBrush (image2.png).

  <Rectangle x:Name="Rectangle_5_ID6" RenderTransformOrigin="0.5 0.5" Height="24" Width="78" Stroke="#000000" StrokeThickness="1" Canvas.Top="25" Canvas.Left="25">
    <Rectangle.RenderTransform>
      <TransformGroup>
        <RotateTransform Angle="15" />
      </TransformGroup>
    </Rectangle.RenderTransform>
    <Rectangle.Fill>
      <ImageBrush ImageSource="image2.png"  />
    </Rectangle.Fill>
  </Rectangle>
  • 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-13T08:12:19+00:00Added an answer on May 13, 2026 at 8:12 am

    There are a number of different approaches but I suspect the one that fits your needs the best would be to use a Path instead.

    <Path x:Name="Rectangle_5_ID6" Stroke="Black" StrokeThickness="1" >
        <Path.Data>
            <RectangleGeometry Rect="0, 0, 78, 24" >
                <RectangleGeometry.Transform>
                    <RotateTransform Angle="15" CenterX="39" CenterY="12" />
                </RectangleGeometry.Transform>
            </RectangleGeometry>
        </Path.Data>
        <Path.Fill>
            <ImageBrush ImageSource="image2.png" />
        </Path.Fill>
    </Path>
    

    The path ends up having a rectangular area that can accommodate all the geometries contain in its data and the fill drawn into this area. The Rectangle geometry is drawn with the rotate transform applied and only the part of the fill that appears inside the geometry is actually visibile the rest is clipped. Hence you get the desired output.

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

Sidebar

Ask A Question

Stats

  • Questions 350k
  • Answers 350k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Using Ajax to check if a user exists in your… May 14, 2026 at 7:06 am
  • Editorial Team
    Editorial Team added an answer The simplest way is probably to wrap the byte array… May 14, 2026 at 7:06 am
  • Editorial Team
    Editorial Team added an answer When you are drawing the cell set the tag on… May 14, 2026 at 7:06 am

Related Questions

I saw a silverlight animation at work. It was a server rack animation. This
I am developing a simple platform game in Java using BlueJ. Over the next
I'm working on a homework question and I've got the answer, but I'm not
I have a project that in those i draw some shape from some layer.
I have a list of two-dimensional points and I want to obtain which of

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.