Added implementation for "CanvasCheckBox.OnApplyTemplate" method