Beispiel #1
0
 private static void OnXamlDependency(int callbackId, IntPtr uri, int type)
 {
     try
     {
         if (_initialized)
         {
             Deps deps = _depsCallbacks[callbackId];
             deps.Callback(Extend.StringFromNativeUtf8(uri), (XamlDependencyType)type);
         }
     }
     catch (Exception e)
     {
         Error.UnhandledException(e);
     }
 }
Beispiel #2
0
 private static void OnXamlDependency(int callbackId, IntPtr uri, int type)
 {
     try
     {
         if (_initialized)
         {
             Deps   deps   = _depsCallbacks[callbackId];
             string uriStr = Extend.StringFromNativeUtf8(uri);
             deps.Callback(new Uri(uriStr, UriKind.RelativeOrAbsolute), (XamlDependencyType)type);
         }
     }
     catch (Exception e)
     {
         Error.UnhandledException(e);
     }
 }