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