C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Application windows, menus & toolbars »

Fill Image in Ellipse (WPF)


Posted Date: 24 Aug 2009    Resource Type: Code Snippets    Category: Application windows, menus & toolbars
Author: K'ranMember Level: Gold    
Rating: 1 out of 5Points: 10 (Rs 5)



Fill Image in Ellipse (WPF)



Image Brush is used to Fill Image Area of Ellipse




<!-- define Ellipse width of 100 and height 100 -->
<Ellipse Width="100" Height="100" Stroke="Red">
<!-- dependency Property of Ellipse -->
<Ellipse.Fill>
<!-- Image Brush is used to fill the Ellipse area into Image -->
<ImageBrush ImageSource="gc.jpg"></ImageBrush>
</Ellipse.Fill>
</Ellipse>



Note:-Make sure you image property set with Build Action=Resource and Copy to Directory =Copy Always



Attachments






Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Fill Image in Ellipse (WPF)  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Background Image of Window or Page in WPF
Previous Resource: How to create Web Browser in vb.net
Return to Discussion Resource Index
Post New Resource
Category: Application windows, menus & toolbars


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use