Skip to content
Merged
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 @@ -314,6 +314,13 @@ private TagContent GetTagContent(FrameworkElement element)
/// <param name="tagContent">Rendered element tag</param>
public void SetVisibility(FrameworkElement element, bool desiredVisibility, TagContent tagContent)
{
// TagContents are only assigned to card elements so actions mustn't have a TagContent object tied to it
// TagContents are used to save information on the rendered object as the element separator
if (tagContent == null)
{
return;
}

bool elementIsCurrentlyVisible = (element.Visibility == Visibility.Visible);

element.Visibility = desiredVisibility ? Visibility.Visible : Visibility.Collapsed;
Expand Down