Search found 15 matches
- 19 Dec 2022, 22:13
- Forum: General Discussion
- Replies: 4
- Views: 152
Re: Thank you! (BackgroundBlur)
Thanks for your kind words, we love this feature too. The full example, as it appears in the screenshot, is contained in the C++ folder within the BackgroundBlur sample: https://github.com/Noesis/Tutorials/tree/master/Samples/BackgroundBlur/C%2B%2B You can also find the sample in the 3.2 beta SDK , ...
- 05 Dec 2022, 17:18
- Forum: Showcase Gallery
- Replies: 4
- Views: 863
Re: Unity Addressable Image Control
Addressables loads the asset on the next frame, which causes this flashing issue. Unless Unity improve this aspect of Addressables, the best thing to do is to load and keep a reference handle for any images/assets before using them in the UI. You don't need to do anything with this handle, it will k...
- 21 Oct 2022, 11:47
- Forum: General Discussion
- Replies: 14
- Views: 1470
Re: Dynamically adding a new widget in C++ code, and then using FindName() to get it
It is best to maintain custom elements in a new namespace as this is the expected behaviour for WPF/Blend. I do not believe there is a way to include types or namespaces in the default namespace using XAML.
Thanks for sharing your example!
Thanks for sharing your example!
- 20 Oct 2022, 14:00
- Forum: General Discussion
- Replies: 14
- Views: 1470
Re: Dynamically adding a new widget in C++ code, and then using FindName() to get it
I'm happy to help in any way I can, thanks! In WPF/C# you need to use DependencyProperty.RegisterAttached to register attached properties, this should fix your Blend error. You can find documentation and examples here: https://learn.microsoft.com/en-us/dotnet/api/system.windows.dependencyproperty.re...
- 19 Oct 2022, 12:14
- Forum: General Discussion
- Replies: 14
- Views: 1470
Re: Dynamically adding a new widget in C++ code, and then using FindName() to get it
1. The OnIsRegisteredChanged() is never executed. I wonder if the issue is that the string in the above code is "IsRegistered", but the earlier provided xaml sample code uses the following property "other:ElementRegistry.Register="True"". I tried changing this to "...
- 17 Oct 2022, 12:16
- Forum: General Discussion
- Replies: 14
- Views: 1470
Re: Dynamically adding a new widget in C++ code, and then using FindName() to get it
1. How to register this behavior with Noesis. In the Noesis sample code base I've only come across complete custom controls with their own DependencyProperties, but not a solitary one as your example makes use of, i.e.: <Button local:ButtonRegistry.Register="True" /> Dependency properties...
- 10 Oct 2022, 12:41
- Forum: General Discussion
- Replies: 14
- Views: 1470
Re: Dynamically adding a new widget in C++ code, and then using FindName() to get it
Yes this is a feature you would need to add to your codebase. This snippet shows the implementation of an attached dependency property which adds and removes Buttons from a static HashMap based on a boolean value, using the Button's Name as a key. ////////////////////////////////////////////////////...
- 05 Oct 2022, 14:55
- Forum: General Discussion
- Replies: 14
- Views: 1470
Re: Dynamically adding a new widget in C++ code, and then using FindName() to get it
One method I have used in the past to access particular elements in code is to have a boolean attached property which, when set to true on an element, stores that element in a static collection. When changed to false the element is removed from that collection. The attached property would look somet...
- 03 Oct 2022, 19:11
- Forum: Official Announcements
- Replies: 0
- Views: 673
Visual Studio Code Extension
NoesisGUI XAML Tools for Visual Studio Code This extension provides a rich editing experience for NoesisGUI and the XAML markup language, using the NoesisGUI language server. The latest release of NoesisGUI XAML Tools can be installed from the Visual Studio Code Marketplace . https://raw.githubuser...
- 19 Sep 2022, 11:54
- Forum: General Discussion
- Replies: 1
- Views: 102
Re: Is it possible to create a custom binding type in Noesis?
You can add your own markup extensions by extending the MarkupExtension class and overriding the ProvideValue method. See the official WPF documentation for custom markup extensions: https://learn.microsoft.com/en-us/dotnet/desktop/wpf/advanced/markup-extensions-and-wpf-xaml?view=netframeworkdesktop...