AppBarUtils 1.0 Beta 7

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

Recommended Download

Source Code AppBarUtils 1.0 Beta 7 Source.zip
source code, 177K, uploaded Aug 22, 2011 - 20 downloads

Other Available Downloads

Application AppBarUtils 1.0 Beta 7 Binary.zip
application, 6K, uploaded Aug 22, 2011 - 11 downloads

Release Notes

Seventh release.

When you have two query string parameters with the same Name in the same page, the compiler will complain a private field name already used. I found this bug in my own app. This is because the Name property is special to XAML. When the compiler sees an object having the Name property set in XAML, it tries to create a private field in the generated C# code which you can use in your code-behind later.

I renamed the Name property of Parameter to Field, and the usage of NavigateWithQueryStringAction will now be like this:

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

Tip: never create a Name property within a class that will be used inside XAML!

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.