C# 如何为所有页面创建母版页,如Zebble for Xamarin中的默认页面?
当我在Zebble文档网站上阅读下面的代码时,我创建了一个新的空白页面,但我需要在我的所有页面上使用它,我不想在我的所有页面上重复这种设计。当我尝试构建我的项目时,会出现如下错误: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
<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" ...
尝试将错误作为文章的一部分,这会使文章更容易阅读。