diff --git a/UI/Templating/Core/TemplateBinding.cs b/UI/Templating/Core/TemplateBinding.cs index 833b1b2..96448d5 100644 --- a/UI/Templating/Core/TemplateBinding.cs +++ b/UI/Templating/Core/TemplateBinding.cs @@ -1,5 +1,3 @@ -namespace InkkSlinger; - public sealed class TemplateBinding { public TemplateBinding(string targetName, DependencyProperty targetProperty, DependencyProperty sourceProperty) @@ -12,7 +10,7 @@ public TemplateBinding( DependencyProperty targetProperty, DependencyProperty sourceProperty, object? fallbackValue, - object? targetNullValue) + object? targetNullValue = null) { TargetName = targetName; TargetProperty = targetProperty; @@ -30,4 +28,10 @@ public TemplateBinding( public object? FallbackValue { get; } public object? TargetNullValue { get; } -} + + public void UpdateSource(string sourceName, DependencyProperty sourceProperty) + { + SourceProperty = sourceProperty; + // Trigger re-binding if necessary (implementation left out) + } +} \ No newline at end of file