Search found 96 matches
- 10 Apr 2021, 18:02
- Forum: General Discussion
- Replies: 6
- Views: 37
Re: DataTemplate creation in code
We also have a global application resource dictionary but I just noticed there is no API in C# to obtain it. I created ticket 1962 to add it for next release. Thank you, that'll be what I need to make this work. I'm still hoping to get a nice little MVVM framework going here. The main issues with p...
- 10 Apr 2021, 17:56
- Forum: General Discussion
- Replies: 3
- Views: 32
Re: Implicit DataTemplates
I couldn't reproduce this for some reason. I'll report back if I run into it again. You can close this for now.
- 10 Apr 2021, 17:45
- Forum: General Discussion
- Replies: 4
- Views: 31
Re: Assigning view to NoesisView in code
In Unity you can have a root xaml, let's say MainPage, that you can add to the scene using the NoesisView component. <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid x:Name="LayoutRoot"/> </Page> This will generate...
- 10 Apr 2021, 17:32
- Forum: General Discussion
- Replies: 4
- Views: 31
Re: Assigning view to NoesisView in code
Could you please report this crash and attach the crash dump that Unity generates? We shouldn't crash Unity editor. Crash report: https://www.noesisengine.com/bugs/view.php?id=1964 Do you have any suggestion on how we can improve that workflow? We will be glad to hear it. I cannot recommend anythin...
- 09 Apr 2021, 12:30
- Forum: General Discussion
- Replies: 6
- Views: 37
Re: DataTemplate creation in code
But why do I get an error in Unity then? Unity complains that I need to provide a key manually.When no explicity string key is provided we use the DataType of the DataTemplate as key for the ResourceDictionary.
- 07 Apr 2021, 23:57
- Forum: General Discussion
- Replies: 3
- Views: 32
Implicit DataTemplates
I just tried to add DataTemplates for Views in a ResourceDIctionary like this: <DataTemplate DataType="{x:Type vm:MyViewModel}"> <v:MyView /> </DataTemplate In WPF that works fine, yet Unity Noesis complains that I cannot add a DataTemplate to a ResourceDictionary without specifying a key. This is a...
- 07 Apr 2021, 23:43
- Forum: General Discussion
- Replies: 4
- Views: 31
Assigning view to NoesisView in code
This is kind of a simple question. How do I assign a view to a NoesisView exactly? Let's say I'd like to do something like this: var view = new MyView(); view.DataContext = new MyViewModel(); NoesisView.View = view; How do I do that exactly? Content property seems to be null, and if I call LoadXaml(...
- 07 Apr 2021, 14:45
- Forum: General Discussion
- Replies: 4
- Views: 43
Re: Assertion when using TemplateBinding
I just wanted to quickly add here That [TemplateBinding XZY} is not quite the same as using RelativeSource TemplatedParent. TemplateBinding is resolved at compile time (at least in WPF), while RelativeSource is used at runtime. So there absolutely is a difference here that could explain why one beha...
- 07 Apr 2021, 14:24
- Forum: General Discussion
- Replies: 6
- Views: 37
DataTemplate creation in code
Hey guys, somehow whenever I try to take another shot at NoesisGUI I seem to keep doing things that are just beyond the limits of possibility. Since I've completely given up on getting a MVVM Framework like Caliburn to run on Noesis since there's still API missing and Caliburn has other issues with ...
- 31 Dec 2020, 14:59
- Forum: General Discussion
- Replies: 1
- Views: 258
Putting Noesis in Unity/Assets/Plugins subdirectory
So I've tried to put Noesis in my UnityProject into the Plugins subdirectory as I keep all ThirdParty stuff in my Projects there. However that seems to cause issues with the noesis installation, claiming for example it cannot create the asset files for the Themes since they are supposed to go into a...