How to override/modify the Content property of Frame to accept multiple Views in Xamarin.Forms?
问题 Here's the C# template code I have: public class PopupFrame : Frame { public PopupFrame() { this.SetDynamicResource(BackgroundColorProperty, "PopUpBackgroundColor"); this.SetDynamicResource(CornerRadiusProperty, "PopupCornerRadius"); HasShadow = true; HorizontalOptions = LayoutOptions.FillAndExpand; Padding = 0; VerticalOptions = LayoutOptions.Center; } } I am using it like this: <t:PopupFrame> <StackLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"> <t:PopupHeader Text