Search found 31 matches

by wyvern010
13 Nov 2019, 11:33
Forum: General Discussion
Replies: 3
Views: 1090

Re: Changing WindowStyle makes window white and freezes window.

Done!
https://www.noesisengine.com/bugs/view.php?id=1584

ps: Sorry for abusing noesis this way! :D
by wyvern010
12 Nov 2019, 14:58
Forum: General Discussion
Replies: 3
Views: 1090

Changing WindowStyle makes window white and freezes window.

So i hook key events in MainWindow like so: private bool ctrl = false; private void MainWindow_KeyUp(object sender, KeyEventArgs args) { if (args.Key == Key.Escape) new Messaging.Message(2, "Window", "LogIn"); // sets content of MainWindow to LogInScreen. if (args.Key == Key.Left...
by wyvern010
14 Oct 2019, 12:56
Forum: General Discussion
Replies: 11
Views: 2249

Re: Two Instances of the same App class

Hi, im glad to hear its not just a fault on my part.

I must say then when only using pure xaml, like only a loading screen animation, the crashes don't happen.
No i haven't yet, but will try in the upcomming days.

Edit:
Bug reported:
https://www.noesisengine.com/bugs/view.php?id=1567
by wyvern010
11 Oct 2019, 21:44
Forum: General Discussion
Replies: 11
Views: 2249

Re: Two Instances of the same App class

Alright, so i've set it up like you said. static void FirstWindow() { Window _window = new MainWindow(); Display _display = new Win32Display(); _display.SetResizeMode(ResizeMode.CanResize); RenderContext _context = new RenderContextD3D11(); _context.Init(_display.NativeHandle, _display.NativeWindow,...
by wyvern010
09 Oct 2019, 22:30
Forum: General Discussion
Replies: 11
Views: 2249

Re: Two Instances of the same App class

So have been fiddling around and went for the: If you use our application framework you will need a Display and a RenderContext for each Window, and they have to run in separate threads to have their own message/update loop. way like this: public class AppDisplay { DateTime start = DateTime.Now; Dis...
by wyvern010
08 Oct 2019, 21:58
Forum: General Discussion
Replies: 11
Views: 2249

Re: Two Instances of the same App class

I thought, cus of the App class seems to be the starting point of the application and the overriden function. Is there an quick sample on how to do this? I tried Creating 2 MainWindows, but the Display property is only Get. Then furthermore i think i also should create an render context? or is this ...
by wyvern010
06 Oct 2019, 19:52
Forum: General Discussion
Replies: 11
Views: 2249

Two Instances of the same App class

As title implies: I'm trying to create two instances of the same app from one executable. Basically i want 2 separate windows with the same view and put them on 2 monitors respectively. The following code runs ok, but when uncommenting T.Start(), the error pops up: "An Application was already c...
by wyvern010
03 Jul 2019, 20:33
Forum: General Discussion
Replies: 3
Views: 1678

Re: BitmapImage.Create Question

Array.Reverse(barray, 0, barray.Length); Fixed the isue of Upside down and shifting. And also the RGB -> BGR. Now the image is just 180 degrees rotated allong the Y-axis. Edit: Everything fixed; Bitmap newbmp = Convert(new Bitmap(person.photo.file.ContentStream)); //first rotate y-axis 180; newbmp.R...
by wyvern010
02 Jul 2019, 16:59
Forum: General Discussion
Replies: 3
Views: 1678

BitmapImage.Create Question

Hello, im loading images from a database, that database provides me these images with a stream or a byte[]. I got to the point that i can use BitmapImage.Create without crashes. now the weird thing is: when the returned ImageSource is rendered, the image is upside down and parts of the image have sh...
by wyvern010
22 Jun 2019, 13:21
Forum: General Discussion
Replies: 7
Views: 1077

Re: selectable element after last character in ListviewHeader

I did hookup it wrong, now the GridViewColumnHeader_Click(object sender, RoutedEventArgs e) gets called, but the sender is always ListView. all code in if (sender is GridViewColumnHeader) { .. } never gets executed. Edit: if (sender is GridViewColumnHeader) { .. } must be if (e.Source is GridViewCol...