protected override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            _contentPresenter = GetTemplateChild("ContentPresenter") as WContentPresenter;

            UpdateBackgroundColor();
            UpdateBorderRadius();
        }
Example #2
0
        protected override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            part_presenter = GetTemplateChild("PART_ContentPresenter") as Windows.UI.Xaml.Controls.ContentPresenter;
            if (part_presenter == null)
            {
                throw new NullReferenceException("Placeholder part not available!");
            }
        }
Example #3
0
        protected override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            part_presenter = GetTemplateChild("PART_ContentPresenter") as Windows.UI.Xaml.Controls.ContentPresenter;
            if (part_presenter == null)
            {
                throw new NullReferenceException("Placeholder part not available!");
            }
        }