Skip to content

Commit ae3bdc4

Browse files
Updating read.me + correcting issue #39
1 parent e6dbb00 commit ae3bdc4

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Documentation/Content/Migrate_from_0_6_to_version_1_0.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
* `IHTMLBinding` has been renamed `IHtmlBinding`
1010

11+
* Updates on the ViewModel should now happen on the UI thread, since Neutronium is not redirecting them anymore.<br>
12+
Practically, this means that you should ensure that any `INotifyPropertyChanged` events and ObservableCollection updates occurs on the UI threads:
13+
you can use [WPF Dispatcher](https://msdn.microsoft.com/en-us/library/system.windows.threading.dispatcher(v=vs.110).aspx) `Invoke` or `BeginInvoke` methods.<br>
14+
Neutronium ALWAYS will call ViewModel on the UI thread either when updating properties value or executing command.
15+
1116
### Vue scripts
1217

1318
* Using vue mixins

Examples/Example.ChromiumFX.PackUri/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:wpf="clr-namespace:Neutronium.WPF;assembly=Neutronium.WPF"
55
x:Class="Example.ChromiumFX.PackUri.MainWindow"
6-
Title="HTML5 vs WPF" Height="700" Width="1200">
6+
Title="Pack Uri example" Height="700" Width="1200">
77
<Window.Resources>
88
<wpf:BoolToHiddenConverter x:Key="BoolToVis"/>
99
</Window.Resources>

WebBrowserEngine/ChromiumFX/HTMEngine.ChromiumFX/Session/ChromiumFXSession.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ private void ChromiumWebBrowser_OnBeforeCommandLineProcessing(CfxOnBeforeCommand
4646

4747
private void ChromiumWebBrowser_OnBeforeCfxInitialize(OnBeforeCfxInitializeEventArgs e)
4848
{
49+
CfxRuntime.EnableHighDpiSupport();
50+
4951
var settings = e.Settings;
5052

5153
_SettingsBuilder?.Invoke(settings);

0 commit comments

Comments
 (0)