Search found 24 matches

by wyvern010
16 Dec 2019, 12:56
Forum: Showcase Gallery
Replies: 1
Views: 1005

DateTimePicker

Created my own DateTimePicker: https://i.ibb.co/gMjMwPZ/Noesis-Date-Time-Picker.png xaml: <UserControl x:Class="AgendaBilling.CustomControls.DateTimePicker" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schem...
by wyvern010
16 Dec 2019, 12:40
Forum: General Discussion
Replies: 7
Views: 754

Re: Is there a chart library available for Noesis?

off-topic:
Could we create a sticky where people can post there custom controls (source only)?
Wich are not yet in Noesis?

For example:
I created a DateTimePicker, and i would be happy to share it with anyone that uses noesis.

#nevermind: we have the showcase
by wyvern010
17 Nov 2019, 16:18
Forum: General Discussion
Replies: 9
Views: 3667

Re: The calling thread cannot access this object because a different thread owns it.

I also ran in some of these issues when updating the ViewModel from outside the rendering thread. Here is my fix, although i think there should be a better way. Note that i'm not using Unity, but Dispatcher is not available in the Noesis App framework. I use the below patern: Save to List -> OnRende...
by wyvern010
13 Nov 2019, 11:33
Forum: General Discussion
Replies: 3
Views: 254

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: 254

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.LeftCtrl || args.Key == ...
by wyvern010
14 Oct 2019, 12:56
Forum: General Discussion
Replies: 11
Views: 702

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: 702

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: 702

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: 702

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: 702

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 create...