Solved

Is it possible to visually contain a XAML transform?

Posted on 2015-01-27
1
60 Views
Last Modified: 2015-01-28
Example of an issue, consider a XAML user control 100 wide and high with a rectangle 100 wide and high within it.  When a RenderTransform is applied to rotate the rectangle 90 degrees the visual effect is for the rectangle to extend outside of the bounds of the user control as it rotates.
Is there a way to contain this behaviour so that the visual effect does not 'bleed' into surrounding controls? i.e. enforce the bounds of the user control.
For this example the desired effect of the rotation would be to crop the corners of the rectangle as they passed out side of the bounds of the user control.
0
Comment
Question by:Navigator101
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
Snarf0001 earned 500 total points
ID: 40572662
Just set .ClipToBounds="true" on the containing control.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to use Visual Studio's AddArgument method found in the PowerShell Namespace 2 44
C# XML Get Values 4 52
Import a excel sheet in a grid 2 44
Error in Visual Project 10 47
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question