Exemplo n.º 1
0
 public static void SetContext(DependencyObject obj, DZContext value)
 {
     obj.SetValue(ContextProperty, value);
 }
Exemplo n.º 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;
 }