-
Notifications
You must be signed in to change notification settings - Fork 59
Description
When setting up the most simple sample WPF application with .NET 7 a ghost window with the title "OpenTK Window" will be created parallell to the MainWindow.
This extra window is visible on the taskbar as well as from the Task Manager when expaning the process.
Changing to the extra window doesn't do much but can sometimes leave traces of contents on it.
Expected result
No extra window shall be created.
Configuration used
- OpenTK 4.8.0
- OpenTK.GLWpfControl 4.2.3
- .NET7
- Windows 11
Sample code
MainWindow.xaml
<Window x:Class="OpenTkWpf7.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:OpenTkWpf7" xmlns:glWpfControl="clr-namespace:OpenTK.Wpf;assembly=GLWpfControl" mc:Ignorable="d" Title="MainWindow" Height="450" Width="800"> <Grid> <glWpfControl:GLWpfControl x:Name="OpenTkControl" Render="OpenTkControl_OnRender"/> </Grid> </Window>
MainWindow.xaml.cs
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
var settings = new GLWpfControlSettings
{
MajorVersion = 3,
MinorVersion = 1,
};
OpenTkControl.Start(settings);
}
private void OpenTkControl_OnRender(TimeSpan obj)
{
}
}