コード例 #1
0
        }         // 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 (CollectingSetting != null)
            {
                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 is bool && (bool)exclude)
            {
                e.Cancel = true;
                return;
            }

            base.OnCollectingSetting(e);
        }         // OnCollectSettings
コード例 #4
0
        }         // UserSettingLoading

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