Search found 59 matches

by Faerdan
10 Mar 2021, 16:20
Forum: General Discussion
Replies: 6
Views: 537

Re: Binding to DependencyObject Properties

Thanks Sergio.

I've posted the feature request: https://www.noesisengine.com/bugs/view.php?id=1937
by Faerdan
04 Mar 2021, 17:25
Forum: General Discussion
Replies: 6
Views: 537

Re: Binding to DependencyObject Properties

Hi Jesús and Sergio, I have just got arround to testing this.. but it only works in dependency properties which add their values to the logical tree, such as ContentControl.Content. Such as this, where ParameterViewData inherits from FrameworkElement: <common:TextContentControl Text="((holdingsScree...
by Faerdan
18 Feb 2021, 19:03
Forum: General Discussion
Replies: 6
Views: 537

Re: Binding to DependencyObject Properties

This is excellent, thank you.
by Faerdan
17 Feb 2021, 17:03
Forum: General Discussion
Replies: 6
Views: 537

Binding to DependencyObject Properties

I want to pass some objects (of a particular type) to a DependencyProperty in XAML, and have the values of properties on those objects set via bindings. I've tried a number of methods, but none have worked. This was my latest attempt: C# public class ParameterDependencyObject : DependencyObject { pu...
by Faerdan
19 Jul 2018, 15:02
Forum: General Discussion
Replies: 5
Views: 979

Re: Code-Behind in Referenced Assembly

Thank you, you hit the nail on the head. I had not used any classes within the assembly before loading the Xaml, and so the CLR had not loaded the assembly. If I use a class in the assembly, or load it with AppDomain.CurrentDomain.Load, then the Xaml works. I can account for this in my code, so all ...
by Faerdan
19 Jul 2018, 13:41
Forum: General Discussion
Replies: 5
Views: 979

Code-Behind in Referenced Assembly

Hi all, When I use a code-behind class which is in the executing assembly it works fine (e.g. x:Class="CurrentAssemblyNamespace.MainWindow"), however if the class is in a referenced assembly it cannot be found (e.g. (e.g. x:Class="ReferencedAssemblyNamespace.MainWindow")). Is this expected behaviour...
by Faerdan
29 May 2017, 21:31
Forum: General Discussion
Replies: 4
Views: 1503

Re: Custom Events (C# SDK)

I am using DataTriggers currently, but since my animations trigger multiple times I have to toggle the value between True and False, and have a DataTrigger for each. It is messy and I really dislike it as a solution. Will you be exposing RoutedEvents in the C# SDK, and if so what is the time frame f...
by Faerdan
25 May 2017, 13:25
Forum: General Discussion
Replies: 1
Views: 949

[C#] Crash when using a Setter in DataTrigger

Hey all, When I use a Setter in a DataTrigger where a Setter for the same property exists in the Style, I get an AccessViolationException. If I continue execution after the exception (while debugging) everything, including the DataTrigger, works correctly. Here is the style markup: <Style x:Key="Pre...
by Faerdan
24 May 2017, 01:05
Forum: General Discussion
Replies: 4
Views: 1503

Custom Events (C# SDK)

Hey all, I need to trigger animations in my UI from code, for example I have damage animations on a variety of elements which need to be activated at the correct time. It seemed like using EventTrigger with a custom RoutedEvent (which I would then raise in code) was my best choice, but custom Routed...