Пример #1
0
        protected override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            _contentPresenter = GetTemplateChild("ContentPresenter") as WContentPresenter;

            UpdateBackgroundColor();
            UpdateBorderRadius();
        }
Пример #2
0
        public ShellPageWrapper()
        {
            InitializeComponent();
            Root = new Microsoft.UI.Xaml.Controls.ContentPresenter()
            {
                HorizontalAlignment = UI.Xaml.HorizontalAlignment.Stretch,
                VerticalAlignment   = UI.Xaml.VerticalAlignment.Stretch
            };

            this.Content = Root;
        }