Solved

Is it possible to visually contain a XAML transform?

Posted on 2015-01-27
1
50 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 22

Accepted Solution

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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now