Search found 2997 matches

by sfernandez
10 Apr 2024, 10:43
Forum: General Discussion
Replies: 6
Views: 142

Re: Connect to Child Event

We've updated the events tutorial so documentation will be fixed in the next release, thanks for your feedback.
by sfernandez
04 Apr 2024, 17:16
Forum: General Discussion
Replies: 6
Views: 142

Re: Connect to Child Event

Hello, I want to mention that we already define a macro in C++ for attached events to be used in ConnectEvent: bool ConnectEvent(BaseComponent* source, const char* event, const char* handler) override { NS_CONNECT_ATTACHED_EVENT(TreeViewItem, Expanded, OnTreeViewExpanded); return false; } And for C#...
by sfernandez
02 Apr 2024, 11:58
Forum: General Discussion
Replies: 5
Views: 128

Re: localization change from data trigger

Hello, Let me see if I understood correctly the problem you have. You want to show a different dialog message depending on some enums in the viewmodel, and then have the message localized, right? Couldn't you just have the different texts in the DataTemplate and show the appropriate one? <DataTempla...
by sfernandez
28 Mar 2024, 12:44
Forum: General Discussion
Replies: 1
Views: 93

Re: Problem with ListBox scrolling

Could you try to set the background of the ListBox to Transparent?
<ListBox Background="Transparent">
I think the problem is that our ListBox default style does not set it, we will fix it.
by sfernandez
27 Mar 2024, 20:51
Forum: General Discussion
Replies: 3
Views: 232

Re: ListBox vs StackPanel of Buttons

Thanks for the suggestion @nadjibus, I also think it is the right approach here. You will use an ItemsControl bound to a list of options/settings items exposing all the required information: Name/Label Type of value (you can use an enum here to select what to show on the ItemTemplate, or it can be i...
by sfernandez
27 Mar 2024, 12:00
Forum: General Discussion
Replies: 4
Views: 168

Re: EventManager.RegisterClassHandler Unity crash

Hi, Do you really need to use EventManager.RegisterClassHandler, which is mostly intended to create custom controls? Or will be enough to just hook to the Click event of your button in code behind: <Grid x:Name="root"> ... <Button x:Name="btn" Content="LOGIN"/> </Grid> ...
by sfernandez
27 Mar 2024, 11:55
Forum: General Discussion
Replies: 4
Views: 295

Re: Noesis Studio and context switch

When using Noesis Studio you won't need to rely on WPF code anymore, just pure Noesis C# (or C++) code for your ViewModels, converters, interactivity and custom controls. And if you are in Unity, all the classes defined in your Unity project will be available in Noesis Studio, so no need to create d...
by sfernandez
27 Mar 2024, 11:41
Forum: General Discussion
Replies: 2
Views: 172

Re: Suggested design/architecture for UI audio?

Hi, 1) As you found, you just have to use the behaviors namespace: xmlns:b="http://schemas.microsoft.com/xaml/behaviors" 2) Thanks @nadjibus for the suggestion. As he mentioned you should use the StyleInteraction.Triggers along with the StyleTriggerCollection to specify the common Triggers...
by sfernandez
27 Mar 2024, 11:31
Forum: General Discussion
Replies: 1
Views: 128

Re: Hierarchical Treeview

Hi, IGrouping is not supported by Noesis, to use a HierarchicalDataTemplate the list should contain the groups, and each group should contain a list of items that you can bind in the template ItemsSource: public class ViewModel { public List<Group> GroupedList { get; } } public class Group { public ...
by sfernandez
27 Mar 2024, 11:22
Forum: General Discussion
Replies: 11
Views: 1850

Re: Getting started with Unreal - lots of confusion

Hi, If you have a way to convert the char id number into some text, then you can specify a converter in the style like this: <Style x:Key="char" TargetType="ContentControl"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ContentControl&quo...