我用的是框架在我的XAML頁面,我用下面的例子定義Stacklayout在框架內的類(Xamarin.Forms)
<StackLayout>
<Frame>
<StackLayout>
<Button></Button>
<Label></Label>
</StackLayout>
<StackLayout>
<Label></Label>
</StackLayout>
</Frame>
</StackLayout>
但是,當我想要做的CS側同樣的事情,我定義StackLayouts,我定義標籤和按鈕。我可以使用Children將Buttons添加到Stacklayout,但是我無法將Stacklayout添加到Frame中,因爲Frame Children沒有property。是否可以在cs端添加Stacklayout到框架?