Solved

Is it possible to visually contain a XAML transform?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 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

9 Experts available now in Live!

Get 1:1 Help Now