Ala*_*an2 5 xamarin xamarin.forms
我有一个带有StackLayout的Frame:
<Frame CornerRadius="1" HasShadow="false" Margin="10"
BackgroundColor="White" BorderColor="Silver" Padding="0" >
<StackLayout Orientation="Vertical" Spacing="0" Padding="0" >
<xaml:PtiXaml />
<template:LineTemplate />
<xaml:AtiXaml />
<template:LineTemplate />
<xaml:StiXaml />
</StackLayout>
</Frame>
Run Code Online (Sandbox Code Playgroud)
我可以创建一个名为NewFrame的新对象,该对象与包含StackLayout的Frame相同吗?
<template:NewFrame>
<xaml:PtiXaml />
<template:LineTemplate />
<xaml:AtiXaml />
<template:LineTemplate />
<xaml:StiXaml />
</template:NewFrame>
Run Code Online (Sandbox Code Playgroud)
要么
<template:NewFrame>
<xaml:ABCXaml />
</template:NewFrame>
Run Code Online (Sandbox Code Playgroud)
要么
<template:NewFrame>
<Label Text="X" />
</template:NewFrame>
Run Code Online (Sandbox Code Playgroud)
有人建议我使用自定义视图,但我看了,但是找不到其中包含其他元素的示例.
归档时间: |
|
查看次数: |
89 次 |
最近记录: |