Search found 3105 matches

by sfernandez
35 minutes ago
Forum: General Discussion
Replies: 4
Views: 87

Re: Can't get pixel scrolling to work with a ScrollViewer

I'm not able to reproduce your problem, just tried your UserControl xaml (without the x:Class and custom namespace) in XamlToy and it scrolls by pixel as expected, or maybe we're not talking about the same thing. Apart from that you don't need a VirtualizingStackPanel in this case because you're not...
by sfernandez
Yesterday, 12:01
Forum: General Discussion
Replies: 4
Views: 87

Re: Can't get pixel scrolling to work with a ScrollViewer

A ScrollViewer delegates the scrolling to its IScrollInfo, which by default (CanContentScroll=False) is the ScrollContentPresenter defined in its template. A ScrollContentPresenter always does pixel scrolling, as it doesn't know anything about the content layout. If you set CanContentScroll=True, th...
by sfernandez
Yesterday, 11:48
Forum: General Discussion
Replies: 2
Views: 128

Re: Setting Focus Directly to Expander Button

You cannot access template elements from outside the control like that. I suggest you just set the focus on the Expander, and then move it down so its ToggleButton acquires the focus, something like this: <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="...
by sfernandez
Yesterday, 11:12
Forum: General Discussion
Replies: 3
Views: 147

Re: Dynamically update UI based on input?

Do you mean in response to an event? So for a MouseDown you will do something, for a KeyDown a different thing, etc. You can use EventTriggers for that, can't you? If you are talking about something more generic, that knowing if game is being interacted with a mouse/keyboard, or only a gamepad, then...
by sfernandez
Yesterday, 11:09
Forum: General Discussion
Replies: 6
Views: 149

Re: Two Issues with Noesis GUI - Blocking OnMouseDown Events and Image Binding

Hi, 1. IsHitTestVisible has a bit weird behavior in WPF, because normal calls to VisualTreeHelper.HitTest() will return objects with that property set to False, and Noesis is following that approach too. An alternative is to use the HitTest() method with callbacks, and filter the elements that have ...
by sfernandez
Yesterday, 10:58
Forum: General Discussion
Replies: 1
Views: 212

Re: Bindings to dynamic properties on a DynamicObject failing in Noesis, but not Windows WPF

Hello, We haven't ever tried using DynamicObjects in Noesis. But in our current implementation, when a C# object is passed to our library we generate a Type representation in the native side by using C# reflection (Type.GetProperties). So only the properties that are defined at that point would be a...
by sfernandez
25 Sep 2024, 13:29
Forum: General Discussion
Replies: 3
Views: 309

Re: itemscontrol event trigger args equal to null

Could you please verify that the source code for InvokeCommandAction.cpp includes this method: void InvokeCommandAction::CloneCommonCore(const Noesis::Freezable* source) { ParentClass::CloneCommonCore(source); InvokeCommandAction* action = (InvokeCommandAction*)source; mCommandName = action->mComman...
by sfernandez
17 Sep 2024, 21:08
Forum: General Discussion
Replies: 1
Views: 177

Re: Binding a Custom control with Array type Dependency Property

If you want to bind an Unreal TArray (wich is wrapped as an IList to Noesis), you'll have to expose the property as a simple "object" (BaseComponent), same as ItemsSource property is defined by ItemsControl: data->RegisterProperty<Ptr<BaseComponent>>(ItemsSourceProperty, "ItemsSource&...
by sfernandez
17 Sep 2024, 20:59
Forum: General Discussion
Replies: 3
Views: 243

Re: How to only load current used font

Hi, using noesis:Dependency should not load the referenced xaml, only register it in the Xaml provider (along with its dependencies) so it can be later found and loaded.
Perhaps you mean that the font asset is "loaded" by Unity (because it is referenced by another asset: the xaml)?
by sfernandez
17 Sep 2024, 20:46
Forum: General Discussion
Replies: 3
Views: 309

Re: itemscontrol event trigger args equal to null

What version of InvokeCommandAction source code are you using? In 3.2.4 we fixed a couple of issues related to that class when used inside templates: - Fixed: InvokeCommandAction not cloning all members when used inside a template - Fixed: InvokeCommandAction SetCommandParameter using wrong DP Can y...