public static void SetContext(DependencyObject obj, DZContext value) { obj.SetValue(ContextProperty, value); }
public static DZContext EnsureContext(this MultiScaleImage msi) { DZContext context = GetContext(msi); if (context == null) { context = new DZContext(msi); SetContext(msi, context); } return context; }