Esempio n. 1
0
 private void SettingCollectingSetting(object sender, SettingCollectorCancelEventArgs e)
 {
     if (CollectingSetting != null)
     {
         CollectingSetting(this, e);
     }
 }
Esempio n. 2
0
 protected virtual void OnCollectingSetting(SettingCollectorCancelEventArgs e)
 {
     if (CollectingSetting != null)
     {
         CollectingSetting(this, e);
     }
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 private void SettingCollectorsCollectingSetting(object sender, SettingCollectorCancelEventArgs e)
 {
     OnCollectingSetting(e);
 }