} // Collect // ---------------------------------------------------------------------- private void SettingCollectingSetting(object sender, SettingCollectorCancelEventArgs e) { if (CollectingSetting != null) { CollectingSetting(this, e); } } // SettingCollectingSetting
} // SaveSettings // ---------------------------------------------------------------------- protected virtual void OnCollectingSetting(SettingCollectorCancelEventArgs e) { if (this.CollectingSetting != null) { this.CollectingSetting(this, e); } } // OnCollectingSetting
} // 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
} // UserSettingLoading // ---------------------------------------------------------------------- private void SettingCollectorsCollectingSetting(object sender, SettingCollectorCancelEventArgs e) { this.OnCollectingSetting(e); } // SettingCollectorsCollectingSetting