Search found 2515 matches
- 26 May 2022, 13:43
- Forum: General Discussion
- Replies: 2
- Views: 27
Re: Load and parse component xaml only once?
Hi, this is something that has been asked a few times and we have plans to address this problem: 1301 . The idea is storing in a cache the internal parsing of the XAML, then each time a new UserControl is requested we only have to instantiate that internal tree. That should be a lot faster than load...
- 26 May 2022, 13:22
- Forum: General Discussion
- Replies: 7
- Views: 107
Re: Support for x:Shared property for localization
Are there any plans for implementing support for the x:Shared property in Noesis? Hi, this feature is not reported yet, could you please add a ticket in our bugtracker? Anyway, following the conversation (thanks a lot @Faerdan for your participation here), I think there are better ways to approach ...
- 26 May 2022, 10:45
- Forum: General Discussion
- Replies: 1
- Views: 62
Re: ResourceDictionary.MergedDictionaries and StaticResources
Hi, Yes, that is the expected behavior. StaticResources inside a dictionary can only be resolved against resources declared before inside that dictionary or any merged dictionary in that same dictionary, and of course resources available in the Application Resources. We can't change that behavior be...
- 20 May 2022, 11:43
- Forum: General Discussion
- Replies: 2
- Views: 42
Re: Converter to get TYPE and compare with x:Type
Hi, the converter should box the Type returned by the value: struct ObjectToTypeConverter: BaseValueConverter { bool TryConvert(BaseComponent* value, const Type*, BaseComponent*, Ptr<BaseComponent>& result) override { if (value != nullptr) { const Type* type = value->GetClassType(); result = Box...
- 20 May 2022, 11:23
- Forum: General Discussion
- Replies: 16
- Views: 3515
Re: Disable keyboard shortscuts when in gui elements
You got it right, the routing of events is automatically handled by Noesis, and for key events it starts from the focused element and then bubble up to the root until some widget handles it.
Then I think implementing a ShortcutTrigger as I proposed will solve your problems.
Then I think implementing a ShortcutTrigger as I proposed will solve your problems.
- 16 May 2022, 18:39
- Forum: General Discussion
- Replies: 1
- Views: 39
Re: Viewbox and custom controls?
If you want to keep the aspect ratio of a 16:9 viewbox inside a 1200x500 container, setting the Stretch to Uniform will leave margins to the left and right, and setting it to UniformToFill will fill the entire container but not all the contents (image) will be visible. What exactly is what you want ...
- 12 May 2022, 19:02
- Forum: General Discussion
- Replies: 1
- Views: 36
Re: Hot reload of global resources
Hi Anton,
Reloading ResourceDictionaries is not working yet, only xamls of objects connected to the visual tree are reloaded right now.
We have plans to implement support for that in the following major version.
Reloading ResourceDictionaries is not working yet, only xamls of objects connected to the visual tree are reloaded right now.
We have plans to implement support for that in the following major version.
- 12 May 2022, 18:56
- Forum: General Discussion
- Replies: 2
- Views: 51
Re: Parent null when using ItemsSource binding
Hi, The root of a template won't ever have a logical parent, only a visual parent. In the following document you will find more information on the differences between Logical and Visual trees: https://www.noesisengine.com/docs/Gui.Core.ElementTree.html The ItemsPanel defines the template used by an ...
- 12 May 2022, 18:12
- Forum: General Discussion
- Replies: 5
- Views: 94
Re: How to do hot reloading of XAML files in C#?
1. What LogLevel are these messages from the bindings? In Noesis application framework (as Blend does for WPF) we filter out binding "Info" messages and only show Warnings and Errors: https://github.com/Noesis/Managed/blob/master/Src/NoesisApp/Core/Src/Core/Application.cs#L361-L362. You sh...
- 12 May 2022, 17:14
- Forum: General Discussion
- Replies: 6
- Views: 109
Re: MultiBinding with custom converter
That log helped, thanks, I was able to reproduce the problem.
I created ticket #2347 in our bugtracker and will fix it for the next release.
I created ticket #2347 in our bugtracker and will fix it for the next release.