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