/// <summary>
        /// Sets the value of the IsCustomizable property.
        /// </summary>
        internal void SetIsCustomizableValue(CustomizationState value)
        {
            // Cannot update is already disabled.
            if (this.IsCustomizationEnabled == false)
            {
                return;
            }

            var parent = this.GetParentCustomizationElement();

            if (parent == null)
            {
                if (value == CustomizationState.Inherited)
                {
                    // Cannot inherit from no parent.
                    this.customizable = CustomizationState.True;
                }
                else
                {
                    this.customizable = value;
                }
            }
            else
            {
                this.customizable = value;
            }
        }
    private CustomizationState()
    {
        if (_instance != null)
        {
            return;
        }

        _instance = this;
    }
        /// <summary>
        /// Sets the value of the IsCustomizable property.
        /// </summary>
        internal void SetIsCustomizableValue(CustomizationState value)
        {
            // Cannot update is already disabled.
            if (this.IsCustomizationEnabled == false)
            {
                return;
            }

            var parent = this.GetParentCustomizationElement();
            if (parent == null)
            {
                if (value == CustomizationState.Inherited)
                {
                    // Cannot inherit from no parent.
                    this.customizable = CustomizationState.True;
                }
                else
                {
                    this.customizable = value;
                }
            }
            else
            {
                this.customizable = value;
            }
        }