mvvm - WinRT Generic Page causing error in g.i.cs file -


i'm trying use generic base page in winrt app generated partial class view doesn't seem view type argument defined both in xaml , in code behind file. here's xaml:

<common:layoutstateawarepage     x:typearguments="vm:xyzviewmodel"     x:class="mrn.protowin8.ui.views.affleurementview"     datacontext="{binding defaultviewmodel, relativesource={relativesource self}}"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     xmlns:local="using:mrn.protowin8.ui.views"     xmlns:common="using:mrn.protowin8.ui.common"     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"     xmlns:vm="using:myproject.viewmodels"     mc:ignorable="d">  ... </common:layoutstateawarepage> 

and here code behind:

 public sealed partial class xyzview : mrn.protowin8.ui.common.layoutstateawarepage<xyzviewmodel>     {         public xyzview ()         {             this.initializecomponent();         }     } 

and here's layoutstateawarepage:

public class layoutstateawarepage<t> : layoutawarepage     {         protected override void loadstate(object navigationparameter, dictionary<string, object> pagestate)         {             messenger.default.send(new pagestateloadmessage<t>(navigationparameter, pagestate));         }          protected override void savestate(dictionary<string, object> pagestate)         {             messenger.default.send(new pagestatesavemessage<t>(pagestate));         }     } 

i compilation error:

using generic type 'layoutstateawarepage' requires 1 type argument affleurementview.g.i.cs

is supported. did few search didn't found suggesting wasn't. lot on this!


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -