Alternative for IChartNode.SetSubNodeOwners?

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
jcso
Posts: 4
Joined: Wed Apr 26, 2017 2:50 pm

Alternative for IChartNode.SetSubNodeOwners?

Post by jcso » Wed Apr 26, 2017 3:04 pm

When I tired to update LightningChart Ultimate WPF v.7 from v.7.1.2 to v.7.2.4 I realized that the method IChartNode.SetSubNodeOwners doesn't exist anymore!
Is there an alternative way to set sub-properties owners?
This is needed in our application!

7.1.2:

Code: Select all

  /// <summary>
  /// Interface for updating the object when its child objects property has changed
  /// </summary>
  [Description("Interface for updating the object when its child objects property has changed.")]
  public interface IChartNode
  {
    /// <summary>Child object property has changed</summary>
    /// <param name="relayer">The object who has relayed its child's notification. If the objects own property was changed, give "this"</param>
    /// <param name="source">Source object whose property was changed</param>
    /// <param name="flags">Flags to pass to owner level</param>
    /// <param name="param">Free format string parameter</param>
    /// <remarks>For chart internal use only</remarks>
    void ChildPropertyChanged(object relayer, object source, uint flags, string param);

    /// <summary>
    /// Set sub-properties owners. Chart timer refreshes the node tree and all collection properties owners
    /// must be assigned, if they are not already assigned.
    /// </summary>
    /// <returns>True if chart refresh is needed (node without owner found)</returns>
    /// <remarks>For chart internal use only</remarks>
    bool SetSubNodeOwners(IChartNode ownerNode);
  }
7.2.1:

Code: Select all

  /// <summary>Interface for identifying chart objects.</summary>
  [Description("Interface for identifying chart objects.")]
  public interface IChartNode
  {
  }

jcso
Posts: 4
Joined: Wed Apr 26, 2017 2:50 pm

Re: Alternative for IChartNode.SetSubNodeOwners?

Post by jcso » Thu Apr 27, 2017 6:51 am

I tried to update to various versions of LightningChartUltimateWPF7 and it seems that this breaking change was made with 7.2.1.1.
If I update to 7.1.3.6 the method is still there but if I update to 7.2.1.1 it's gone! :firing:

User avatar
ArctionLasse
Posts: 26
Joined: Fri Mar 27, 2015 11:23 am

Re: Alternative for IChartNode.SetSubNodeOwners?

Post by ArctionLasse » Thu Apr 27, 2017 3:03 pm

Hi jcso,

the SetSubnodeOwners method has been moved away from the _public_ IChartNode interface, as it's something that should never be called through the public interface. It is still available internally on a different internal interface.

For source code clients the method is still available, and can be used as it is used throughout the LightningChart sources.
If you have further questions on how to use it internally, please contact [email protected] as we usually do not deeply discuss LC internals on forums, as it might mislead non-sourcecode users.
LightningChart Support Team, LV

Post Reply