An overview of UI Controls from Win RT XAML Toolkit

Are you looking for third party UI controls for Windows 8 app development? Win RT XAML Toolkit has recently released an updated version which nonetheless makes a great addition in RT apps experience. This blog post intends to briefly discuss some important and simple controls offered in this toolkit to help you build richer Windows 8 apps (we’ll deep dive into various extensions and tools offered in this toolkit later in another post)

(If you are a newbie, download the build from , extract and open WinRTXamlToolkit solution file in VS 2012 and hit F5 after selecting “WinRTXamlToolkit.Sample” as startup project to explore offered controls)

Image Button and Toggle Image Button

Handling visual states of images (hover, pressed) in conventional Button of Windows 8 requires a bit of interaction with either Expression Blend or good understanding of XAML but Image Button (and respective Toggle Image Button) control makes it easier to specify various visual states,


 NormalStateImageSource ="/Assets/Images/Normal.png"

 HoverStateImageSource ="/Assets/Images/Hover.png"

 PressedStateImageSource ="/Assets/Images/Pressed.png" />


Watermark TextBox

Watermark TextBox supports two important properties WatermarkStyle and WatermarkText both of them are shown in action below,


        <Style TargetType="TextBlock" x:Name="WatermarkStyle">

            <Setter Property="FontSize" Value="20"></Setter>

            <Setter Property="Foreground" Value="Green"></Setter>

            <Setter Property="Margin" Value="10,5,10,10"></Setter>



<xc:WatermarkTextBox Name="WatermarkTextBox" WatermarkText="Username" WatermarkStyle="{StaticResource WatermarkStyle}" Width="300" Height="40" />

That’s how it will look like,


Numeric Up Down

A simple control

<controls:NumericUpDown />

and an extended one








              Margin="0" />

will result in a display much similar,

Hold on the + or – button and it will smoothly transition between values which is good that you don’t have to press the buttons again and again.


Color Picker Primitives

The snapshot below renders two controls namely Color Ring and Color Triangle to provide a detailed color selector. You can additionally apply Hue, Saturation and Lightness (HSL) or RGB properties.



              VerticalAlignment="Stretch" HorizontalAlignment="Stretch"


On Value Changes event the values is determined between range of 0 – 360 (clockwise)

private void hueRing_ValueChanged_1(object sender, Windows.UI.Xaml.Controls.Primitives.RangeBaseValueChangedEventArgs e)


            TextBoxSelectedValueRing.Text = hueRing.Value.ToString();



Countdown Control

A simple and beautiful look and look closely that the call to animation is Async (non-UI blocking call),

await myCountdownControl.StartCountdownAsync(3);



Chart controls works on series and supports various different chart types,


RingSlice & PieSlice

            EndAngle="227" /> 

    EndAngle="227" />


Custom Grid Splitter

A much needed control,



Do let us know if this post was helpful? Given your comments, we might follow up with a detailed post on this topic.