Telerik UI for Windows Phone by Progress

This topic demonstrates how to start using RadImageButton for Windows Phone.

Adding the necessary references

Before adding the RadImageButton, the following references should be included:

  • Telerik.Windows.Core.dll
  • Telerik.Windows.Controls.Primitives.dll

Then in order to add the control in XAML, a prefix should be mapped to the Primitives assembly:

CopyXAML
xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Primitives"

Creating an instance of the control

After the assemblies are added the RadImageButton can be added as a normal Windows Phone control:

In XAML:

CopyXAML
<telerikPrimitives:RadImageButton />

And in C#:

CopyC#
RadImageButton radImageButton = new RadImageButton();

The result

Here is the default look of the RadImageButton in its rest state (on the left) and when it is pressed (on the right):

Image Button-Default