WINRT - Object navigationParameter

Topics: Getting Started
Sep 7, 2012 at 10:03 AM
Edited Sep 7, 2012 at 10:29 AM

Hello,

I'm new in using this framework.

I studied examples, but I can not resolve how to use Object navigationParameter used in Search Contract page type.

Code generator make this code:

 

protected override void LoadState(Object navigationParameter, Dictionary<String, Object> pageState)
        {
            var queryText = navigationParameter as String;

            // TODO: Application-specific searching logic.  The search process is responsible for
            //       creating a list of user-selectable result categories:
            //
            //       filterList.Add(new Filter("<filter name>", <result count>));
            //
            //       Only the first filter, typically "All", should pass true as a third argument in
            //       order to start in an active state.  Results for the active filter are provided
            //       in Filter_SelectionChanged below.

            var filterList = new List<Filter>();
            filterList.Add(new Filter("All", 0, true));

            // Communicate results through the view model
            this.DefaultViewModel["QueryText"] = '\u201c' + queryText + '\u201d';
            this.DefaultViewModel["Filters"] = filterList;
            this.DefaultViewModel["ShowFilters"] = filterList.Count > 1;
        }

  How to use navigationParameter, or similar functionality in Caliburn.Micro framework?