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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:09:36+00:00 2026-06-01T04:09:36+00:00

I have a button (25×25) with a background brush applied to it. If I

  • 0

I have a button (25×25) with a background brush applied to it. If I rotate the button, WPF treats the button like a square rather than a circle. How do I get the button bounding box to be treated like the content, or background of the button?

Here’s the markup for the background brush

<DrawingBrush x:Key="MetroArrowBrush"
                  Stretch="Uniform">
        <DrawingBrush.Drawing>
            <DrawingGroup>
                <GeometryDrawing Brush="#ffffff"
                                 Geometry="F1M724.371,610.402C724.402,610.356 724.431,610.312 724.459,610.263 724.488,610.211 724.511,610.159 724.595,609.975 724.619,609.919 724.634,609.862 724.652,609.803 724.666,609.756 724.68,609.71 724.691,609.662 724.704,609.606 724.712,609.548 724.72,609.492 724.728,609.443 724.732,609.395 724.738,609.347 724.743,609.288 724.743,609.23 724.74,609.171 724.74,609.124 724.743,609.078 724.738,609.031 724.735,608.97 724.726,608.91 724.718,608.85 724.71,608.804 724.704,608.76 724.694,608.714 724.68,608.655 724.663,608.596 724.644,608.539 724.631,608.492 724.619,608.448 724.53,608.24 724.507,608.196 724.486,608.152 724.462,608.108 724.434,608.056 724.399,608.006 724.286,607.842 724.246,607.792 724.204,607.746 724.103,607.632L713.832,597.36C712.972,596.502 711.584,596.502 710.728,597.36 709.871,598.215 709.871,599.606 710.728,600.462L717.256,606.988 696.934,606.988C696.176,606.988 695.507,607.372 695.114,607.956 694.876,608.307 694.738,608.728 694.738,609.184 694.738,609.79 694.983,610.338 695.382,610.735 695.778,611.134 696.327,611.378 696.934,611.378L717.256,611.378 710.728,617.904C709.871,618.762 709.871,620.151 710.728,621.007 711.158,621.436 711.718,621.652 712.28,621.652 712.843,621.652 713.402,621.438 713.832,621.01L724.166,610.666C724.204,610.622 724.246,610.576 724.283,610.528 724.314,610.487 724.343,610.444 724.371,610.402z" />
                <GeometryDrawing Brush="#ffffff"
                                 Geometry="F1M711.074,631.265C698.899,631.265 688.993,621.358 688.993,609.185 688.993,597.012 698.899,587.106 711.074,587.106 723.246,587.106 733.153,597.012 733.153,609.185 733.153,621.358 723.246,631.265 711.074,631.265z M711.072,583.325C696.79,583.325 685.213,594.901 685.213,609.184 685.213,623.465 696.79,635.044 711.072,635.044 725.353,635.044 736.932,623.465 736.932,609.184 736.932,594.901 725.353,583.325 711.072,583.325z" />
            </DrawingGroup>
        </DrawingBrush.Drawing>
    </DrawingBrush>

And here’s my button markup

<ToggleButton Name="btnToggleTaskBar"
                          Style="{StaticResource MetroArrow1RightStyle}"
                          FocusVisualStyle="{x:Null}"
                          VerticalAlignment="Top">
</ToggleButton>

<Style x:Key="MetroArrow1RightStyle"
           TargetType="{x:Type Control}">
        <Setter Property="Background"
                Value="{DynamicResource MetroArrowBrush}" />
        <Setter Property="BorderBrush"
                Value="{x:Null}" />
        <Setter Property="Foreground"
                Value="{x:Null}" />
        <Setter Property="BorderThickness"
                Value="0" />

    </Style>
  • 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-01T04:09:37+00:00Added an answer on June 1, 2026 at 4:09 am

    I’m not sure what the problem is, but should you be animating RenderTransform instead of LayoutTransform?

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

Sidebar

Related Questions

I have button, which i rotated 45 degrees using rotate animation and applied on
I have a button that I would like to disable when the form submits
I have button styles that look like this: .submit-button { display: block; color: red;
i have asp button like this: <asp:Button ID=ImportToDB runat=server OnClick=ImportToDB_Click /> And i need
I woud like to have button btn at the bottom of a JFrame .
I have button and onClick I perform opening of a new activity like this:
I have Button and set background resource to it: button1.setBackgroundResource(R.layout.color00); color00: <?xml version=1.0 encoding=utf-8?>
I have button, which fires an event, that deletes a record from the database.
I have one issue with Datetime Picker In my firstview i have button.If i
I have one issue with UInavigationcontroller In my firstview i have button.If i click

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.