} // Collect

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

        // ----------------------------------------------------------------------
        protected virtual void OnCollectingSetting(SettingCollectorCancelEventArgs e)
        {
            if (this.CollectingSetting != null)
            {
                this.CollectingSetting(this, e);
            }
        } // OnCollectingSetting
示例#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
示例#5
0
        } // UserSettingLoading

        // ----------------------------------------------------------------------
        private void SettingCollectorsCollectingSetting(object sender, SettingCollectorCancelEventArgs e)
        {
            this.OnCollectingSetting(e);
        } // SettingCollectorsCollectingSetting
示例#6
0
        } // SaveSettings

        // ----------------------------------------------------------------------
        protected virtual void OnCollectingSetting(SettingCollectorCancelEventArgs e)
        {
            if (this.CollectingSetting != null)
            {
                this.CollectingSetting(this, e);
            }
        } // OnCollectingSetting
示例#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
示例#8
0
        } // UserSettingLoading

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