Click here to Skip to main content
15,908,775 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So, i have next problem (see images)
I have a window that contains a user control. in my user control i have an ellipse that is shown in user control and also outside of it (image 1). i need to show only that part, that is located inside of user control (image 2)
Image 1[^]
Image 2[^]
Posted
Comments
Sergey Alexandrovich Kryukov 9-Nov-14 15:56pm    
Is it Canvas, or rendering?
—SA
Arlert 9-Nov-14 16:25pm    
UserControl
Grid
Ellipse /
/Grid
/UserControl
Sergey Alexandrovich Kryukov 9-Nov-14 16:45pm    
I see, thank you. Please see my answer.
—SA

1 solution

From your question, it's not clear how exactly you obtained the image with ellipse going outside of a user control. In all cases, one method to present the control as shown on Figure 2 is this: http://msdn.microsoft.com/en-us/library/system.windows.uielement.cliptobounds%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 
Comments
Arlert 9-Nov-14 16:54pm    
nice
Sergey Alexandrovich Kryukov 9-Nov-14 16:58pm    
:-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900