Я пытаюсь добавить ярлык над кнопкой, но он не отображается. Это код xaml, который я использую. Что мешает отображению метки?
<Frame HasShadow = "False">
<StackLayout Orientation = "Vertical" Spacing = "10">
<Label x:Name = "registererror" Text = "Error, please verify all fields have valid input" TextColor = "Red" />
</StackLayout>
<Button Command = "{Binding SubmitCommand}" Text = "Register" TextColor = "White"
FontAttributes = "Bold" FontSize = "Large" HorizontalOptions = "FillAndExpand"
BackgroundColor = "#088da5" Clicked = "OnRegisterTap" />
</Frame>





У Frame может быть только один дочерний элемент. Чтобы содержать несколько дочерних элементов, вы должны использовать контейнер макета. Ваша кнопка не заключена в StackLayout.
<Frame HasShadow = "False">
<StackLayout Orientation = "Vertical" Spacing = "10">
<Label x:Name = "registererror" Text = "Error, please verify all fields have valid input" TextColor = "Red" />
<Button Command = "{Binding SubmitCommand}" Text = "Register" TextColor = "White"
FontAttributes = "Bold" FontSize = "Large" HorizontalOptions = "FillAndExpand"
BackgroundColor = "#088da5" Clicked = "OnRegisterTap" />
</StackLayout>
</Frame>