Esempio n. 1
0
 private void UpdateProperty(string propertyName, Func <IJavascriptObjectFactory, IJavascriptObject> factory)
 {
     WebView?.Dispatch(() =>
     {
         var newValue = factory(WebView.Factory);
         ViewModelUpdater.UpdateProperty(CachableJsValue, propertyName, newValue, false);
     });
 }
Esempio n. 2
0
        internal void SetUpdateCountOnJsContext()
        {
            var newValue = WebView.Factory.CreateInt(_Count);

            ViewModelUpdater.UpdateProperty(CachableJsValue, "CanExecuteCount", newValue, false);
        }