Search found 5 matches
- 18 Nov 2021, 11:34
- Forum: General Discussion
- Replies: 5
- Views: 3121
Re: Loading xamls (UserControls) without adding corresponding C++ classes
Yes, you are right. My point is to not create C++ classes when we want to add new UserControl xamls. In the solution I propose we would need a mapping that maps <view:UserAvatar /> to its xaml path eg. "/BlendProj;component/assets/views/user_avatar.xaml". This mapping could be constructed ...
- 17 Nov 2021, 19:16
- Forum: General Discussion
- Replies: 5
- Views: 3121
Re: Loading xamls (UserControls) without adding corresponding C++ classes
Thank you for the quick response. The problem with the LoadContentAction: 1. It is not easy to use it for elements in the hierarchy Does it mean I can use it like this? <StackPanel> <ContentControl> <b:Interaction.Triggers> <b:EventTrigger EventName="Loaded"> <noesis:LoadContentAction Sour...
- 17 Nov 2021, 17:35
- Forum: General Discussion
- Replies: 5
- Views: 3121
Loading xamls (UserControls) without adding corresponding C++ classes
As I observed in the sample projects, we need to create C++ view classes to corresponding UserControls. The C++ class is only loading the xaml, and I found it cumbersome. I understand that it is necessary for Noesis when parsing the XAML markups. But can we have a solution where we do not need to do...
- 23 Jun 2021, 16:08
- Forum: General Discussion
- Replies: 2
- Views: 13769
Re: Accessing List of reflected properties added with NSProp
Ok, What I was doing was correct. GetClassType() is indeed giving properties that are added with NsProp. My mistake was calling TypeClass::GetProperty(uint32_t index) with Noesis::Symbol. Since it is not explicit method it was accepting the parameter. I should be calling TypeClass::FindProperty(Symb...
- 23 Jun 2021, 15:36
- Forum: General Discussion
- Replies: 2
- Views: 13769
Accessing List of reflected properties added with NSProp
Hello, I am trying to write a generic behavior and I would need to go trough in reflected properties of ViewModel of attached control. NS_IMPLEMENT_REFLECTION(PersonViewModel) { NSProp("Name", &PersonViewModel::GetName); NSProp("Age", &PersonViewModel::GetAge); } In this ...