private void BaseObject_Loaded(object sender, RoutedEventArgs e) { Console.WriteLine("Base Object Loaded"); if (this.Template != null) { ContentPresenter contentPresenter = this.Template.FindName("PART_ContentPresenter", this) as ContentPresenter; MoveThumb thumb = this.Template.FindName("PART_MoveThumb", this) as MoveThumb; if (contentPresenter != null && thumb != null) { UIElement contentVisual = VisualTreeHelper.GetChild(contentPresenter, 0) as UIElement; if (contentVisual != null) { ControlTemplate template = BaseObject.GetMoveThumbTemplate(contentVisual) as ControlTemplate; if (template != null) { thumb.Template = template; } } } ResizeDecorator resizeDecorator = this.Template.FindName("PART_BaseObjectDecorator", this) as ResizeDecorator; if (resizeDecorator != null) { resizeDecorator.ShowAdorner(); } } }