Search found 96 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 10
by KeldorKatarn
Yesterday, 18:02
Forum: General Discussion
Replies: 4
Views: 23

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...
by KeldorKatarn
Yesterday, 17:56
Forum: General Discussion
Replies: 2
Views: 18

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.
by KeldorKatarn
Yesterday, 17:45
Forum: General Discussion
Replies: 3
Views: 15

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...
by KeldorKatarn
Yesterday, 17:32
Forum: General Discussion
Replies: 3
Views: 15

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...
by KeldorKatarn
09 Apr 2021, 12:30
Forum: General Discussion
Replies: 4
Views: 23

Re: DataTemplate creation in code

When no explicity string key is provided we use the DataType of the DataTemplate as key for the ResourceDictionary.
But why do I get an error in Unity then? Unity complains that I need to provide a key manually.
by KeldorKatarn
07 Apr 2021, 23:57
Forum: General Discussion
Replies: 2
Views: 18

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...
by KeldorKatarn
07 Apr 2021, 23:43
Forum: General Discussion
Replies: 3
Views: 15

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(...
by KeldorKatarn
07 Apr 2021, 14:45
Forum: General Discussion
Replies: 4
Views: 40

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...
by KeldorKatarn
07 Apr 2021, 14:24
Forum: General Discussion
Replies: 4
Views: 23

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 ...
by KeldorKatarn
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...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 10