protected override void OnApplyTemplate() { base.OnApplyTemplate(); _contentPresenter = GetTemplateChild("ContentPresenter") as WContentPresenter; UpdateBackgroundColor(); UpdateBorderRadius(); }
public ShellPageWrapper() { InitializeComponent(); Root = new Microsoft.UI.Xaml.Controls.ContentPresenter() { HorizontalAlignment = UI.Xaml.HorizontalAlignment.Stretch, VerticalAlignment = UI.Xaml.VerticalAlignment.Stretch }; this.Content = Root; }