RoundToggleButton

Overview

Basically RoundToggleButton is an UI component that derives from ToggleButton and also exposes an ImageSource dependency property.

Getting Started

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

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

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

Creating a RoundToggleButton :

XAML
<Controls:RoundToggleButton ImageSource="/Media/icons/appbar.check.rest.png"/>

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

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

Comments

EnasHamra Aug 14, 2013 at 6:34 PM 
The correct namespace declaration that you add to use RoundToggleButton in XAML is
xmlns:Controls="clr-namespace:Coding4Fun.Toolkit.Controls;assembly=Coding4Fun.Toolkit.Controls"