Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Is it possible to visually contain a XAML transform?

Posted on 2015-01-27
1
Medium Priority
?
73 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
1 Comment
 
LVL 23

Accepted Solution

by:
Snarf0001 earned 2000 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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

886 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