View Issue Details

IDProjectCategoryView StatusLast Update
0001937NoesisGUIC# SDKpublic2021-03-15 17:10
ReporterFaerdanAssigned Tosfernandez 
PrioritynormalSeverityfeatureReproducibilityalways
Status assignedResolutionopen 
Product Version3.0.10 
Target Version3.0.12Fixed in Version 
Summary0001937: Expose FrameworkElement AddLogicalChild(object) and RemoveLogicalChild(object) methods
DescriptionFrameworkElement.AddLogicalChild(object) and FrameworkElement.RemoveLogicalChild(object) allow for management of the logical tree.

https://docs.microsoft.com/en-us/dotnet/api/system.windows.frameworkelement.addlogicalchild?view=net-5.0
https://docs.microsoft.com/en-us/dotnet/api/system.windows.frameworkelement.removelogicalchild?view=net-5.0

These methods are required to allow logical tree based binding within dependency property values.

Example (works in WPF):
<common:TextContentControl Text="((holdingsScreen_txt_title))">
  <common:TextContentControl.TextParameters>
    <common:ParameterViewData Key="key2" Value="{Binding CurrenciesData.Fuel}" />
  </common:TextContentControl.TextParameters>
</common:TextContentControl>


private static void OnTextParametersChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
    if (d is TextContentControl textContentControl)
    {
        if (e.OldValue != null)
        {
            textContentControl.RemoveLogicalChild(e.OldValue);
        }
        if (e.NewValue != null)
        {
            textContentControl.AddLogicalChild(e.NewValue);
        }
    }
}
TagsNo tags attached.
PlatformAny

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-03-10 16:19 Faerdan New Issue
2021-03-10 17:00 sfernandez Assigned To => sfernandez
2021-03-10 17:00 sfernandez Status new => assigned
2021-03-10 17:00 sfernandez Target Version => 3.0.11
2021-03-15 17:10 jsantos Target Version 3.0.11 => 3.0.12