protected override void OnApplyTemplate() { base.OnApplyTemplate(); _contentPresenter = GetTemplateChild("ContentPresenter") as WContentPresenter; UpdateBackgroundColor(); UpdateBorderRadius(); }
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!"); } }
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!"); } }