Search found 3109 matches
- 10 Oct 2024, 11:24
- Forum: General Discussion
- Replies: 2
- Views: 234
Re: Extending ComboBox
I declare identical comboboxes (Which appear identical in Blend) Just to clarify, did you include our NoesisTheme in the Blend project? To do so you'll have to add a reference in the Blend project to our Noesis.GUI.Extensions NuGet and then add the following line to your App.xaml (Application Resou...
- 10 Oct 2024, 10:48
- Forum: General Discussion
- Replies: 2
- Views: 234
Re: Extending ComboBox
Hi, the magenta indicates that Noesis is using the internal default styles for your custom ComboBox. This means that you haven't defined a style for your custom control in the Application Resources . If you want to use the style+template defined in NoesisTheme for the ComboBox you can just extend th...
- 04 Oct 2024, 12:46
- Forum: General Discussion
- Replies: 5
- Views: 711
Re: Setting Focus Directly to Expander Button
Hello, if you have some visual states that handle the visibility of some parts of the UI, and you want to change the focus after going to any of those states, you can wait for the state animation to finish and then set the focus. See this example: <Grid xmlns="http://schemas.microsoft.com/winfx...
- 04 Oct 2024, 10:50
- Forum: General Discussion
- Replies: 1
- Views: 216
Re: XYFocus<Direction> problem
Also, is there a way to log a currently focused element in an Update function of some script? One technique for this is to use the FocusManager.FocusedElement. In your root xaml you can have something like this: <UserControl ... x:Name="RootDocument" FocusManager.IsFocusScope="True&q...
- 03 Oct 2024, 20:56
- Forum: General Discussion
- Replies: 11
- Views: 666
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...
- 02 Oct 2024, 12:01
- Forum: General Discussion
- Replies: 11
- Views: 666
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...
- 02 Oct 2024, 11:48
- Forum: General Discussion
- Replies: 5
- Views: 711
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="...
- 02 Oct 2024, 11:12
- Forum: General Discussion
- Replies: 3
- Views: 492
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...
- 02 Oct 2024, 11:09
- Forum: General Discussion
- Replies: 9
- Views: 661
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 ...
- 02 Oct 2024, 10:58
- Forum: General Discussion
- Replies: 1
- Views: 780
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...