Example #1
0
        /// <inheritdoc/>
        protected override bool ApplyTemplateCore()
        {
            var isApplied = base.ApplyTemplateCore();

            this.itemsControl = this.GetTemplatePartField <SegmentedItemsControl>(ItemsPanelTemplatePartName);
            isApplied        &= this.itemsControl != null;

            this.animationLayer = this.GetTemplatePartField <Canvas>(AnimationLayerTemplatePartName);
            isApplied          &= this.animationLayer != null;

            return(isApplied);
        }