Search found 60 matches

by Ziriax
15 Feb 2017, 21:32
Forum: General Discussion
Replies: 6
Views: 2002

Re: V1.3, C#: screen bounds of Visual, LayoutUpdated event ?

It also seems that when using virtualization, the DataContext of the FrameworkElement is being reset. So I could even use that :-) The problem is that currently my view-models are hierarchical (a visual reactive fluent-style programming language, internally stored as a LISP-like tree), so a typical ...
by Ziriax
15 Feb 2017, 19:59
Forum: General Discussion
Replies: 4
Views: 1552

Poll: Exporting XAML from Adobe Illustrator in 2017

I would like to gather information from the community how they export their XAML files from Adobe Illustrator. Currently we import the AI into Microsoft Expression Design 4, and export it as XAML. This works rather well, although it puts a clip on each canvas, that we manually remove. One could use ...
by Ziriax
15 Feb 2017, 19:44
Forum: General Discussion
Replies: 12
Views: 2284

Re: 1.3 BETA4: SetTheme and ResourceDictionary

Sounds reasonable. Can one use StaticResource to access resources from this global theme? And when replacing the theme, this will replace existing resources with the same keys? That sounds very useful for reloading, right now I have to use DynamicResource everywhere One thing I find anyoing (also in...
by Ziriax
15 Feb 2017, 12:17
Forum: General Discussion
Replies: 9
Views: 1626

Re: [C++] property update

I had to change two things for your code to compile

(1) I had to declare the symbols in some CPP file
NS_DECLARE_SYMBOL(pos_x);
NS_DECLARE_SYMBOL(pos_y);
(2) The getters must be const
   
NsInt get_x() const {
      return pos_x;
}
NsInt get_y() const {
        return pos_y;
}
by Ziriax
15 Feb 2017, 10:31
Forum: General Discussion
Replies: 9
Views: 1626

Re: [C++] property update

Would it be possible to share your project? What version of Noesis are you using?
by Ziriax
14 Feb 2017, 14:42
Forum: General Discussion
Replies: 9
Views: 1626

Re: [C++] property update

I have no experience with the C++ version of Noesis, but I note the following: Your ViewModel_cursor class derives from Canvas. In the MVVM pattern, ViewModels should only contain state (data). The idea of a the view-model pattern is that you can use any other UI technology to render it. But Canvas ...
by Ziriax
13 Feb 2017, 18:07
Forum: General Discussion
Replies: 6
Views: 2002

Re: V1.3, C#: screen bounds of Visual, LayoutUpdated event ?

@ai_enabled, thanks for the info! I'm not sure what I'm doing wrong with my attached properties, I'll try it in a standalone test case. Regarding the virtualization, I would still need a way to figure out if my view-model has a view or not. In WPF I could use < ItemContainerGenerator.ContainerFromIt...
by Ziriax
12 Feb 2017, 16:34
Forum: General Discussion
Replies: 6
Views: 2002

Re: V1.3, C#: screen bounds of Visual, LayoutUpdated event ?

For now I ditched the pure MVVM approach for just the CSG 'views', I created a class CsgView that internally creates and updates a Noesis Rectangle and ImageBrush, checking the bounds each frame. Not ideal, but good enough for now, and avoids a lot of converters and boxing. Nevertheless, I would sti...
by Ziriax
12 Feb 2017, 15:53
Forum: General Discussion
Replies: 6
Views: 2002

V1.3, C#: screen bounds of Visual, LayoutUpdated event ?

We have two render systems in our application, Noesis and our own 2D CSG engine that uses Monogame. We use C#. We render all our CSG elements to one big Monogame render-target "atlas". All our UI elements are rendered using Noesis. Some of these Noesis UI elements display the CSG shapes from the atl...