RoundButton

Over View

Basically RoundButton is an UI component that derives from Button and also exposes ImageSource dependency property.

Getting Started

To begin using RoundButton first add a reference to the Coding4Fun.Phone.Controls.dll assembly.

To use the RoundButtonin the XAML you have to add the following namespace declaration:

xmlns:Controls="clr-namespace:Coding4Fun.Phone.Controls;assembly=Coding4Fun.Phone.Controls"

Creating a RoundButton :

XAML
<Controls:RoundButton ImagePath="/Media/icons/appbar.check.rest.png"/>

C#:
RoundButton button = new RoundButton();
button.ImagePath = new BitmapImage(new Uri("/Media/icons/appbar.check.rest.png", UriKind.RelativeOrAbsolute));

Last edited Apr 1, 2012 at 4:27 AM by crutkas, version 6

Comments

thenewperson Jan 13, 2012 at 10:20 AM 
ImagePath is now ImageSource

dejanMilinkov Mar 18, 2011 at 9:57 PM 
This documentation is out of date. There is no ImagePath property anymore.