Search found 180 matches
- 26 May 2017, 04:49
- Forum: General Discussion
- Replies: 4
- Views: 2816
Re: Per-Monitor DPI Aware guidelins (C++ SDK)
Your code is correct if both dpiX and dpiY are the same. If not the same, you will get aspect ratio distortions. You can use a ViewBox also for this. It is a more complete solution. Hhmmh, but when the dpi scaling is not changed, I don't want to stretch my contents when I resize the window. Only wh...
- 25 May 2017, 04:41
- Forum: General Discussion
- Replies: 9
- Views: 3549
Re: How to send data from C++ in to GUI?
I think you need to start with a working example and play around with data binding. You can start with Src\Samples\D3D11\Tutorial05\Tutorials.sln included in the SDK. Then replace PasswordBox.xaml and Tutorial05.cpp with the followings: PasswordBox.xaml <Grid xmlns="http://schemas.microsoft.com...
- 25 May 2017, 01:59
- Forum: General Discussion
- Replies: 16
- Views: 5293
Re: Noesis 2.0.2 crash on reimport all with invalid XAML
Thanks. I can understand the reason. Will modify my code to follow the architecture.
- 24 May 2017, 08:18
- Forum: General Discussion
- Replies: 16
- Views: 5293
Re: Noesis 2.0.2 crash on reimport all with invalid XAML
Looking at this documentation: http://www.noesisengine.com/docs/Gui.Core.RenderingTutorial.html This may be by design that I shouldn't call IView::Update(t) from Render thread, but call it from UI thread instead. But then, I need to periodically invoke my UI thread just to call the IView::Update(t)....
- 24 May 2017, 04:24
- Forum: General Discussion
- Replies: 16
- Views: 5293
Re: Noesis 2.0.2 crash on reimport all with invalid XAML
With 2.0.2f2, my application (using C++ SDK) no longer crashes when loading XAML but now showing error: Calling thread(26844) doesn't have access to this object (16572). 26844 is a renderer thread calling IView::Update(t). 16572 is the UI thread of the application. I know that this is because you en...
- 23 May 2017, 09:09
- Forum: General Discussion
- Replies: 8
- Views: 2980
Re: ListView sample (C++ SDK, 2.0.1f1)
BTW, if I have to handle a large number of items inside ListView (~100k), is there anything I can do to boost the performance ? Scrolling using the mouse wheel seems pretty fast, but dragging using scroll bar seems a bit sluggish (fps is down to 5~10 fps in my environment). You can set ScrollViewer...
- 23 May 2017, 08:36
- Forum: General Discussion
- Replies: 4
- Views: 2816
Per-Monitor DPI Aware guidelins (C++ SDK)
Hi, I am trying to make my sample application to be Per-Monitor DPI Aware. Basically I call SetLayoutTransform(new ScaleTransform(scaleX, scaleY)) of the root XAML element during initial setup and when WM_DPICHANGED is sent to the application, and it seems that Noesis correctly scale the UI and rend...
- 22 May 2017, 01:52
- Forum: General Discussion
- Replies: 16
- Views: 5293
Re: Noesis 2.0.2 crash on reimport all with invalid XAML
I downloaded 2.0.2 C++ SDK and also experienced crash when loading my XAML. Then I tried to build Src\Samples\D3D11\Tutorials.sln which come with the SDK and previously work in 2.0.1, and it also crashed when loading the XAML. Below is the callstack (I am using VS2015 Update 3). > Tutorial05.exe!Noe...
- 19 May 2017, 03:00
- Forum: General Discussion
- Replies: 8
- Views: 2980
Re: ListView sample (C++ SDK, 2.0.1f1)
Thanks. Now I understand and can make it works. NOTE: In NoesisGUI when declaring a component class in C++ the base implementation class must be the first one in the inheritance list, and interfaces should come next, otherwise our type system won't work and might crash. So I think this is the cause ...
- 18 May 2017, 09:55
- Forum: General Discussion
- Replies: 8
- Views: 2980
ListView sample (C++ SDK, 2.0.1f1)
Hi, Is there any sample showing how to use ListView using C++ SDK ? Trying with the following codes but it doesn't work. Only blank control is shown: <ListView Margin="100,100,100,100" Grid.Column="0" Name="ListView"> <ListView.ItemTemplate> <DataTemplate> <Grid> <Grid....