Search found 19 matches

  • 1
  • 2
by wyvern010
14 Oct 2019, 12:56
Forum: General Discussion
Replies: 11
Views: 117

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

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

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

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

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...
by wyvern010
03 Jul 2019, 20:33
Forum: General Discussion
Replies: 3
Views: 187

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

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

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...
by wyvern010
20 Jun 2019, 19:34
Forum: General Discussion
Replies: 7
Views: 222

Re: selectable element after last character in ListviewHeader

Did exactly as you said: <GridViewColumn Header="First name"> <ListView Grid.Row="2" ItemsSource="{Binding cbPersons}" MouseDoubleClick="ListView_MouseDoubleClick" ButtonBase.Click="GridViewColumnHeader_Click" SelectedItem="{Binding SelectedPerson}"> private void GridViewColumnHeader_Click(object se...
by wyvern010
19 Jun 2019, 11:44
Forum: General Discussion
Replies: 7
Views: 222

Re: selectable element after last character in ListviewHeader

Show code please, a tiny picture doesn't explain anything
Updated.
  • 1
  • 2