AppBarUtils 1.0 Beta 5

Rating: No reviews yet
Downloads: 27
Released: Aug 16, 2011
Updated: Aug 16, 2011 by allenlooplee
Dev status: Beta Help Icon

Recommended Download

Source Code AppBarUtils 1.0 Beta 5 Source.zip
source code, 148K, uploaded Aug 16, 2011 - 17 downloads

Other Available Downloads

Application AppBarUtils 1.0 Beta 5 Binary.zip
application, 6K, uploaded Aug 16, 2011 - 10 downloads

Release Notes

Fifth release.

This release comes with a NavigateWithQueryStringAction which is similar to NavigateToPageAction shipped by Blend SDK. However, as its name implies, it supports adding query string parameters right inside XAML. For example, the following code sets up a navigation for an app bar menu item with query string parameters bound to the properties of view model class:

<i:Interaction.Triggers>
    <AppBarUtils:AppBarItemTrigger ItemType="MenuItem" ItemText="statistic">
        <AppBarUtils:NavigateWithQueryStringAction TargetPage="/StatisticPage.xaml">
            <AppBarUtils:Parameter Name="hitcount" Value="{Binding HitCount}"/>
            <AppBarUtils:Parameter Name="timecount" Value="{Binding TimeCount}"/>
        </AppBarUtils:NavigateWithQueryStringAction>
    </AppBarUtils:AppBarItemTrigger>
</i:Interaction.Triggers>

The above code will construct the URI as "/StatisticPage.xaml?hitcount=X&timecount=Y", where X and Y are the values of HitCount and TimeCount properties respectively.

Because NavigateWithQueryStringAction is just a normal trigger action, you can use it in combination with any other triggers such as EventTrigger to provide this kind of navigation for any element.

Basically, AppBarItemTrigger + NavigateWithQueryStringAction can do all the things AppBarItemNavigation is capable of. I recommend you use AppBarItemTrigger + NavigateWithQueryStringAction instead of AppBarItemNavigation which is now for backward compatibility or simple scenario.

The demo shipped within the source code shows how to utilize this new class.

Note, Windows Phone SDK 7.1 Beta 2 is required. For Windows Phone Developer Tools 7.0, please use the related behaviors provided by Prism instead.

Reviews for this release

No reviews yet for this release.