} // Collect

        // ----------------------------------------------------------------------
        private void SettingCollectingSetting(object sender, SettingCollectorCancelEventArgs e)
        {
            if (CollectingSetting != null)
            {
                CollectingSetting(this, e);
            }
        } // SettingCollectingSetting
Example #2
0
        } // SaveSettings

        // ----------------------------------------------------------------------
        protected virtual void OnCollectingSetting(SettingCollectorCancelEventArgs e)
        {
            if (this.CollectingSetting != null)
            {
                this.CollectingSetting(this, e);
            }
        } // OnCollectingSetting
Example #3
0
        } // Save

        // ----------------------------------------------------------------------
        protected override void OnCollectingSetting(SettingCollectorCancelEventArgs e)
        {
            FrameworkElement frameworkElement = e.Element as FrameworkElement;

            if (frameworkElement == null)
            {
                e.Cancel = true;
                return;
            }

            // exclusion
            object exclude = frameworkElement.ReadLocalValue(ExcludeElementProperty);

            if (exclude != null && exclude.GetType() == typeof(bool) && (bool)exclude)
            {
                e.Cancel = true;
                return;
            }

            base.OnCollectingSetting(e);
        } // OnCollectSettings
        } // Collect

        // ----------------------------------------------------------------------
        private void SettingCollectingSetting(object sender, SettingCollectorCancelEventArgs e)
        {
            if (CollectingSetting != null)
            {
                CollectingSetting(this, e);
            }
        } // SettingCollectingSetting
        } // UserSettingLoading

        // ----------------------------------------------------------------------
        private void SettingCollectorsCollectingSetting(object sender, SettingCollectorCancelEventArgs e)
        {
            this.OnCollectingSetting(e);
        } // SettingCollectorsCollectingSetting
        } // SaveSettings

        // ----------------------------------------------------------------------
        protected virtual void OnCollectingSetting(SettingCollectorCancelEventArgs e)
        {
            if (this.CollectingSetting != null)
            {
                this.CollectingSetting(this, e);
            }
        } // OnCollectingSetting
Example #7
0
        } // Save

        // ----------------------------------------------------------------------
        protected override void OnCollectingSetting(SettingCollectorCancelEventArgs e)
        {
            FrameworkElement frameworkElement = e.Element as FrameworkElement;
            if (frameworkElement == null)
            {
                e.Cancel = true;
                return;
            }

            // exclusion
            object exclude = frameworkElement.ReadLocalValue(ExcludeElementProperty);
            if (exclude != null && exclude.GetType() == typeof(bool) && (bool)exclude)
            {
                e.Cancel = true;
                return;
            }

            base.OnCollectingSetting(e);
        } // OnCollectSettings
Example #8
0
        } // UserSettingLoading

        // ----------------------------------------------------------------------
        private void SettingCollectorsCollectingSetting(object sender, SettingCollectorCancelEventArgs e)
        {
            this.OnCollectingSetting(e);
        } // SettingCollectorsCollectingSetting