Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何为所有页面创建母版页,如Zebble for Xamarin中的默认页面?_C#_.net_Xamarin_Xamarin Zebble_Zebble - Fatal编程技术网

C# 如何为所有页面创建母版页,如Zebble for Xamarin中的默认页面?

C# 如何为所有页面创建母版页,如Zebble for Xamarin中的默认页面?,c#,.net,xamarin,xamarin-zebble,zebble,C#,.net,Xamarin,Xamarin Zebble,Zebble,当我在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:n

当我在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>

/z分量>
错误是:


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

要将此页面用作其他页面的模板,只需将其指定为
z-base

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

尝试将错误作为文章的一部分,这会使文章更容易阅读。