Class TreeViewAdvItemsPanel
Represents the class that the items panel of the TreeViewAdv.
Inherited Members
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class TreeViewAdvItemsPanel : FakeItemsPanel
Constructors
TreeViewAdvItemsPanel()
Initializes a new instance of the TreeViewAdvItemsPanel class.
Declaration
public TreeViewAdvItemsPanel()
Fields
InvalidateRenderRequestProperty
Identifies TreeViewAdvItemsPanel. InvalidateRenderRequest dependency property.
Declaration
public static readonly DependencyProperty InvalidateRenderRequestProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsShowLineProperty
Identifies TreeViewAdvItemsPanel. IsShowLine dependency property.
Declaration
public static readonly DependencyProperty IsShowLineProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LinePenProperty
Identifies TreeViewAdvItemsPanel. LinePen dependency property.
Declaration
public static readonly DependencyProperty LinePenProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
InvalidateRenderRequest
Indicates whether the control need re-render.
Declaration
public bool InvalidateRenderRequest { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean For re-render control need change property. |
IsNeedUpdateIndex
Indicates whethe need update index.
Declaration
protected virtual bool IsNeedUpdateIndex { get; }
Property Value
Type |
---|
System.Boolean |
IsShowLine
Gets or sets value indicating whether show line.
Declaration
public bool IsShowLine { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: |
Examples
This example shows how to set IsShowLine property in XAML.
See Also
LinePen
Gets or sets the Pen used to draw of the line.
Declaration
public Pen LinePen { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Pen | Type: System.Windows.Media.Pen The Pen used to to draw of the line. |
Examples
This example shows how to set LinePen property in XAML.
See Also
NeedDrawVerticalLine
Gets value whether indicates that need draw vertical line.
Declaration
protected virtual bool NeedDrawVerticalLine { get; }
Property Value
Type |
---|
System.Boolean |
Methods
GetComplateUnvisibleItemSize(Int32)
Gets appreciate complete size for unvisible item.
Declaration
protected override Size GetComplateUnvisibleItemSize(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type |
---|
System.Windows.Size |
Overrides
GetCompleteItemSize(Int32)
Gets appreciate complete size for item.
Declaration
protected override Size GetCompleteItemSize(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type |
---|
System.Windows.Size |
Overrides
GetCompletePanelSize(Size)
Gets appreciate complete size of the this panel.
Declaration
protected override Size GetCompletePanelSize(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize |
Returns
Type |
---|
System.Windows.Size |
Overrides
GetContainerForFakeElement(Object)
Gets container for fake element.
Declaration
protected override UIElement GetContainerForFakeElement(object element)
Parameters
Type | Name | Description |
---|---|---|
System.Object | element |
Returns
Type |
---|
System.Windows.UIElement |
Overrides
GetCountItems(TreeViewItemAdv)
Gets count of the all children node.
Declaration
protected virtual int GetCountItems(TreeViewItemAdv item)
Parameters
Type | Name | Description |
---|---|---|
TreeViewItemAdv | item |
Returns
Type |
---|
System.Int32 |
GetFakeElementType()
Gets type of the fake element.
Declaration
protected override Type GetFakeElementType()
Returns
Type |
---|
System.Type |
Overrides
GetItem(Int32)
Gets item from owner items control by index.
Declaration
protected override UIElement GetItem(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type |
---|
System.Windows.UIElement |
Overrides
HideFakeItems()
Hide fake items.
Declaration
public override void HideFakeItems()
Overrides
InvalidateRender()
Invalidates the render for the element.
Declaration
protected void InvalidateRender()
OnInitialized(EventArgs)
Raises the Initialized event. This method is invoked whenever IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The RoutedEventArgs that contains the event data. |
Overrides
OnItemsChanged(Object, ItemsChangedEventArgs)
Called when the System.Windows.Controls.ItemsControl.Items collection that is associated with the System.Windows.Controls.ItemsControl for this System.Windows.Controls.Panel changes.
Declaration
protected override void OnItemsChanged(object sender, ItemsChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The System.Object that raised the event. |
System.Windows.Controls.Primitives.ItemsChangedEventArgs | args | Provides data for the System.Windows.Controls.ItemContainerGenerator.ItemsChanged event. |
OnRender(DrawingContext)
Draws the content of a System.Windows.Media.DrawingContext object during the render pass of a System.Windows.Controls.Panel element.
Declaration
protected override void OnRender(DrawingContext dc)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | dc | The System.Windows.Media.DrawingContext object to draw. |
ShowFakeItems(UIElement, Boolean)
Shows fake items.
Declaration
public override void ShowFakeItems(UIElement element, bool bIsTop)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.UIElement | element | |
System.Boolean | bIsTop | Indicates whether fake items will show over element; otherwise fake items will show under element. |
Overrides
UpdateVisibilityIndex(Size)
Update visible item index.
Declaration
protected override void UpdateVisibilityIndex(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize |