Skip to main content

entitiespanel-class

Represents entities and their attributes in an hierarchical structure

public class Korzh.EasyQuery.Wpf.EntitiesPanel
: XPanel

Assembly: Korzh.EasyQuery.WPF.dll

Constructors

NameTypeDescription
EntitiesPanel()void

Properties

NameTypeDescription
CheckedEntitiesObservableCollection<EntityTreeNode>Identifies Korzh.EasyQuery.Wpf.EntitiesPanel.CheckedEntities dependency property
QueryQueryGets or sets the query.
SortEntitiesXSortOrderGets or sets the order of entities in context menu.

Events

NameTypeDescription
ItemAddingItemAddingEventHandlerOccurs when we are about to add some item into the entities tree This event allows to filter items based on some condition (just set Accept property of event arguments to false)

Methods

NameTypeDescription
FilterByText(string text)voidFilters entity tree by some text
GetExpandedNodes()IEnumerable<EntityTreeNode>Returns all currently expanded nodes
OnApplyTemplate()voidWhen overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.
RefreshEntityTree()voidRefreshes the entity tree.
SatisfiesTheFilter(EntityTreeNode ce)boolReturns true if the item passed in parameter satisfies the current filter. This method calls FilterItem event which allows you to filter some items before they are added into the tree
UpdateModelInfo()voidUpdates the control by the latest changes in associated model.

Static Fields

NameTypeDescription
QueryPropertyDependencyPropertyIdentifies the Korzh.EasyQuery.Wpf.EntitiesPanel.Query dependency property