Latest News

  • Silverlight Online Chat
    Jul 24, 2010

    Today we launch the new Silverlight Live Chat application demonstrating the Liquid RichTextBox and Emoticon replacements.

  • New Super Shoot Em Up 2 Game
    Jun 29, 2010

    Added to the Games section is the new Super Shoot 'Em Up 2 game. Take control of your tank with the aim to defeat the computer controlled opponents. Features all new weapons, levels and Battle Mode!

  • Silverlight 4 Controls V5.3.2 Released
    Jun 28, 2010

    This release contains several fixes raised in the forums.

  • New Sandmania Puzzle Game
    Jun 18, 2010

    Sandmania is the latest game from vectorlight, the aim of this game is to guide sand from the top of the screen to the various colored containers below.

  • New Moon Tower Defense Game
    May 29, 2010

    Added to the Games section is the new Moon Tower Defense game. Defend the Moon from the circling Aliens and Humans.

Silverlight Tree Control

The Tree control exposes several properties for controlling various aspects of the tree and its behaviour.

Properties for Liquid.TreeView

Below are the available properties complete with descriptions.

No documentation is available currently for this control.

Property NameTypeDescription

 

Methods for Liquid.TreeView

Below are the available methods, complete with parameters and descriptions.

No methods are available for this class.

Method NameDescriptionParameters

Properties for Liquid.Node

Below are the available properties complete with descriptions.

Property NameTypeDescription
VisualRoot Panel Gets the root Panel object for this control.
Base Tree Gets or sets the base Tree control.
Nodes ObservableCollection`1 Gets a collection of child nodes.
EnableCheckboxes Boolean Gets or sets whether the node should have a checkbox.
IsEditable Boolean Gets or sets whether the node text is editable.
ParentNode Node Gets or sets the parent node.
Title String Gets or sets the node text.
EditedTitle String Gets or sets the edited node title.
Icon String Gets or sets the image URL when the node is not expanded.
IconExpanded String Gets or sets the image URL when the node is expanded.
IsExpanded Boolean Gets or sets whether the node is expanded.
HasChildren Boolean Gets or sets whether the node has children.
ChildrenLoaded Boolean Gets or sets whether the child nodes have been loaded.
IsSelected Boolean Gets or sets whether the node is selected.
OverallHeight Double Gets or sets the height of the node.
IsChecked Nullable`1 Gets or sets the nodes checked status.
ChildrenInheritCheckboxVisibility Boolean Gets or sets whether child checkbox visibility setting is taken from it's parent.
IsContainer Boolean Gets or sets whether this node can have children.
Popup Object Gets or sets the popup content.
IsBusy Boolean Gets or sets whether this node is busy, this sets the busy animation.
Top Node Gets the root node.
TemplateApplied Boolean Gets or sets whether OnApplyTemplate() has been called.
IsLabel Boolean Gets or sets whether the node can be selected.

 

Methods for Liquid.Node

Below are the available methods, complete with parameters and descriptions.

Method NameDescriptionParameters
Sort(SortActions) Sorts the child nodes by the node title.
Sort(Boolean, Comparison<Node>) Sorts the child nodes by the node title.

Parameters

sortAll
Indicates whether descendant nodes should also be sorted
comparer
The sort compare method

 

Find(String) Iterates through the this and all child nodes looking for a node with the provided terms in the title text.

Parameters

terms
Search terms
Returns: Matching collection of nodes

 

Get(String) Iterates through all child nodes looking for a node with the matching ID.

Parameters

id
ID of the node to get
Returns: A matching Node or null

 

CheckAll() Checks the current and all child node checked state.
Clear() Removes all child nodes from the tree.
ClearAllChecked() Clears the current and all child node checked state.
GetAllChecked() Gets all checked nodes.

Parameters

Returns:

 

BulkUpdateBegin() You can call this method when adding large numbers of child nodes, this significantly increases performance you must call BulkInsertEnd() when you have finished adding nodes.
BulkUpdateEnd() This method must be called when you have finished adding nodes and have previously called BulkInsertBegin().
Expand() Expands the node, firing off events to populate child nodes.
ExpandOut() Expands all the parent nodes of this node.
ExpandAll() Expands all nodes.
ExpandAll(List<Node>) Expands all child nodes of the provided parent nodes.
Collapse() Collapses the node, child nodes are hidden.
CollapseAll() Collapses all nodes.
Delete() Deletes the current node, this removes the node from the parent nodes collection.
DeleteChild(String) Removes an individual child node.

Parameters

id
Node ID to remove

 

SelectChild(String) Selects a specific node.

Parameters

id
The ID of the node to select

 

Refresh() Removes all the child nodes and calls Populate() to re-populate the node.
SwapPrevious() Swaps the current node instance with the node above.
SwapNext() Swaps the current node instance with the node below.
Previous() Gets the previous node.

Parameters

Returns: Node object

 

Next() Gets the next node.

Parameters

Returns: Node object

 

GetChild(String) Gets a node with the matching ID.

Parameters

id
Node ID
Returns: Node

 

GetChild(Int32) Gets a node at a given index.

Parameters

index
Node index
Returns:

 

IndexOfPrevious() Returns the index of the 'previous' node. This is the node above the current node instance in the tree.

Parameters

Returns: The index of the requested node or -1 if the node could not be found

 

IndexOfNext() Returns the index of the 'next' node. This is the node below the current node instance in the tree.

Parameters

Returns: The index of the requested node or -1 if the node could not be found

 

IndexOfChild(String) Returns the index of a specific node.

Parameters

id
The ID of the node to locate
Returns: The index of the requested node or -1 if the node could not be found

 

SortContainersFirstCallback(Node, Node) Sort method for sorting by title with all containers first.

Parameters

a
Node a
b
Node b
Returns: Sort value

 

SortCallback(Node, Node) Sort method for sorting by title.

Parameters

a
Node a
b
Node b
Returns: Sort value

 

SortReverseContainersFirstCallback(Node, Node) Sort method for sorting by title.

Parameters

a
Node a
b
Node b
Returns: Sort value

 

SortReverseCallback(Node, Node) Sort method for sorting by title.

Parameters

a
Node a
b
Node b
Returns: Sort value

 

DisableChildUpdates() Disables updates to the child node collection.
EnableChildUpdates() This method must be called when you have finished adding nodes and have previously called BulkInsertBegin().
OnApplyTemplate() This is called when the template has been bound to the control.

Rate this page: 

1 Star 2 Star 3 Star 4 Star 5 Star
13 Ratings / 3.0 Average

Ultimate Gamers

  • 1 stig
  • 2 Gh0sT
  • 3 dhoz
  • 4 janso
  • 5 gaaslin
  • 6 RadiateLogic
  • 7 dan
  • 8 Haroldo
  • 9 bigblue531
  • 10 oussama

  • See the full chart here!

Silverlight Controls

  • Rich TextBox

    Create and edit rich content with this slick and expandable Rich TextBox...

  • TreeView

    This easy to use TreeView comes with drag and drop, sorting, searching and much more...

  • Context Menu

    You too can have cool popup context menus in your Silverlight applications...

  • Resizable Dialog

    Draggable and resizable popup dialogs are what serious Silverlight developers need...

  • Spell Checker

    Real-time spell checking in Silverlight? We did it first here...