Skip to content

Commit

Permalink
Release 4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NogginBops committed May 30, 2024
1 parent 7c2bb4b commit 319ee53
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ WPF by design only sends keyboard events to the control that has keybaord focus.
If you however need to get keyboard events idependent of keyboard focus you will have to use the `Keyboard.AddPreview*` functions.
These functions allow you to register a preview event that is called before the control with keyboard focus gets the keyboard event.

This replaces the old `CanInvokeOnHandledEvents` and `RegisterToEventsDirectly` settings.

See [Example](./src/Example/TabbedMainWindowTest.xaml.cs) for an example how to set this up.

## Build instructions
Expand Down
14 changes: 14 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## 4.3.0

* Made each `GLWpfControl` have it's own OpenGL context allowing different controls to have different context settings. (@NogginBops)
* Enabled multisample anti-aliasing though `GLWpfControlSettings.Samples`. (@NogginBops)
* Implemented `IDisposable` for `GLWpfControl` that allows native DirectX and OpenGL resources to be freed. (@NogginBops)
* Made `GLWpfControl` have `Focusable` be `true` by default, solving a lot of the keyboard input event issues. (@NogginBops)
* Deprecated `GLWpfControlSettings.GraphicsContextFlags` in favor of `GLWpfControlSettings.ContextFlags`. (@NogginBops)
* Deprecated `GLWpfControlSettings.GraphicsProfile` in favor of `GLWpfControlSettings.Profile`. (@NogginBops)
* Added `GLWpfControlSettings.SharedContext` to allow context sharing. (@NogginBops)
* Deprecated `GLWpfControl.CanInvokeOnHandledEvents` and `GLWpfControl.RegisterToEventsDirectly`, updated readme to reflect this. (@NogginBops)
* Fixed rounding issues related to DPI scaling. (@NogginBops, @5E-324)
* Updated to depend on OpenTK 4.8.2. (@NogginBops, @softwareantics)
* Fixed memory leak where DirectX resouces would never be freed. (@NogginBops)

## 4.2.3

* Fix event issue, use `RegisterToEventsDirectly` and `CanInvokeOnHandledEvents` to customize event registering/handling. (@softwareantics)
Expand Down
2 changes: 1 addition & 1 deletion src/GLWpfControl/paket
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ copyright
include-pdbs true

dependencies
OpenTK ~> 4.0 >= 4.8.0
OpenTK ~> 4.0 >= 4.8.2

files
bin\Release\netcoreapp3.1\netcoreapp3.1\GLWpfControl.dll ==> lib\netcoreapp3.1
Expand Down

0 comments on commit 319ee53

Please sign in to comment.