VivendoByteToolkitLogo.png
VivendoByte Toolkit contains some classes, converters, user-controls and behaviors useful to build Windows 8 Store Apps.

Commanding
- binding a RelayCommand attached to any swipe gestures (in any direction: to the left, right, up and down)
- binding a RelayCommand attached to hold gesture
- binding a RelayCommand attached to tap gesture
- binding a RelayCommand attached to double tap gesture
- binding a RelayCommand attached to wheel mouse event (up and down)

A small example of this technique:

<TextBlock FontSize="96" HorizontalAlignment="Center" Foreground="Black"
VerticalAlignment="Center" Text="{Binding Number}"
helper:SwipeCommandHelper.Up="{Binding IncrementCommand}"
helper:SwipeCommandHelper.Down="{Binding DecrementCommand}"
helper:SwipeCommandHelper.Right="{Binding MultiplyCommand}"
helper:SwipeCommandHelper.Left="{Binding DivideCommand}"/>
This TextBlock defined in XAML reacts to four-direction swipe gestures (up, down, right, left), and execute corresponding command. The same technique is available for wheel mouse event, hold, etc.

helper:WheelCommandHelper.Up="{Binding IncrementCommand}"
helper:WheelCommandHelper.Down="{Binding DecrementCommand}"
You can attach commands on any FrameworkElement on your UI (TextBlock, Button, TextBox, Border, etc.).

User Control
- DatePicker: a powerful and re-imagined date picker for Windows 8 apps with full support of gestures
- NumberPicker

Helper
When a TextBox control got focus, you can automatically select all the text contained.

Toast and tile
You can schedule any Windows 8 toast in the future with a single line of code.
You can update the tile of your app with a single line of code.

Please see this url to get the catalog of all the tiles available with Windows 8.
http://msdn.microsoft.com/en-US/library/windows/apps/hh761491.aspx

Please see this url to get the catalog of all the toast available with Windows 8.
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh761494.aspx

A small example of this technique:

ToastHelper.ScheduleToastText01("id", "content", DateTime.Now.AddSeconds(5));
ToastHelper.ScheduleToastImageAndText02(toastId, "Assets/Logo.png", "first row in bold", content, dt);

TileHelper.UpdateTileWithNumber(number);
TileHelper.UpdateTileSquarePeekImageAndText04("TileUpdated4.png", "long content");
TileHelper.UpdateTileWideSmallImageAndText01("TileUpdated1.png", "content that wraps over 3 lines in this tile");
TileHelper.UpdateTileSquareText02("header", "content that wraps on three lines inside the tile!");
Information
VivendoByte Toolkit is built on Galasoft MVVM Light.

Last edited Jan 3, 2013 at 4:46 PM by IgorDamiani, version 22