2017-05-11 20 views
0

当我在Zebble文档网站上阅读下面的代码时,我创建了一个新的空白页面,但我需要将其用于所有页面,并且我不想在我的所有页面上重复该设计。当我尝试建立我的项目出现错误象下面这样:如何为Xamarin的Zebble中的默认页面制作我的所有页面的母版页?

<z-Component z-type="Page1" z-base="Page" z-namespace="UI.Pages" 
z-partial="true" Title="Page 1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:noNamespaceSchemaLocation="./../.zebble-schema.xml"> 

    <Stack Id="Header" Direction="Horizontal"> 
    <Button Text="MyToogleMenuBtn" /> 
    <TextView Text="MyPageTitle" /> 
    <Button Text="AddBtn" /> 
    </Stack> 
    <Stack Id="Body"> 

    </Stack> 
    <Stack Id="Footer"> 
    <Button Id="ConfirmBtn" /> 
    </Stack> 

/z-Component> 

和错误是:

error screen shot

但我不知道我应该在哪里添加title属性。

+0

尝试将错误作为您帖子的一部分,这使得帖子更易于阅读。 –

回答

0

对于使用此页面为您的其他网页模板你只需要指定为z-base

<z-Component z-type="MyChildPage" z-base="MyTemplate" ... 

至于错误,你应该删除Title="Page 1"因为在没有Title财产您当前页面