Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,27 @@ public T Component
get => _component;
set
{
_component = value;
if (_component == null)
{
_component = value;
this.OnComponentChanged();
return;
}

if (_component != null && !_component.Equals(value))
{
_component = value;
this.OnComponentChanged();
}
}
}

/// <summary>
/// Method called when the component (the context component of this rcc) is changed.
/// </summary>
public virtual void OnComponentChanged()
{

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,20 @@ public ITwinElement Context
if (_context != value)
{
_context = value as ITwinElement;
this.OnContextChanged();
this.ForceRender();
}
}
}

/// <summary>
/// Method called when the context is changed.
/// </summary>
public virtual void OnContextChanged()
{

}

/// <summary>
/// Parameter Presentation specify mode, in which view UI is generated. Type PresentationType is used.
/// </summary>
Expand All @@ -69,11 +78,16 @@ public string Presentation
if (_presentation != value)
{
_presentation = value;
OnPresentationChanged();
this.ForceRender();
}
}
}

public virtual void OnPresentationChanged()
{

}

/// <summary>
/// Parameter Class, in which RenderableContentenControl will be wrapped.
Expand Down