Class GanttChartItemsPanel
Represents a virtualizing panel that will arrange the Chart items
Inheritance
Implements
Namespace: Syncfusion.Windows.Controls.Gantt
Assembly: Syncfusion.Gantt.Wpf.dll
Syntax
public class GanttChartItemsPanel : VirtualizingPanel, IScrollInfo
Constructors
GanttChartItemsPanel()
Initializes a new instance of the GanttChartItemsPanel class.
Declaration
public GanttChartItemsPanel()
Fields
RowHeightProperty
The DependencyProperty for RowHeight property.
Declaration
public static readonly DependencyProperty RowHeightProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
CanHorizontallyScroll
Gets or sets a value indicating whether can scroll horizontally or not.
Declaration
public bool CanHorizontallyScroll { get; set; }
Property Value
Type |
---|
System.Boolean |
CanVerticallyScroll
Gets or sets a value indicating whether can scroll vertically or not.
Declaration
public bool CanVerticallyScroll { get; set; }
Property Value
Type |
---|
System.Boolean |
ExtentHeight
Gets the extent height value.
Declaration
public double ExtentHeight { get; }
Property Value
Type |
---|
System.Double |
ExtentWidth
Gets the extent width value.
Declaration
public double ExtentWidth { get; }
Property Value
Type |
---|
System.Double |
HorizontalOffset
Gets the value of horizontal offset.
Declaration
public double HorizontalOffset { get; }
Property Value
Type |
---|
System.Double |
RowHeight
Gets or sets the height of the row.
Declaration
public double RowHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the row. |
ScrollOwner
Gets or sets the value for the scroll viewer.
Declaration
public ScrollViewer ScrollOwner { get; set; }
Property Value
Type |
---|
System.Windows.Controls.ScrollViewer |
VerticalOffset
Gets the scroll offset y position value.
Declaration
public double VerticalOffset { get; }
Property Value
Type |
---|
System.Double |
ViewportHeight
Gets the height value of viewport.
Declaration
public double ViewportHeight { get; }
Property Value
Type |
---|
System.Double |
ViewportWidth
Gets the width value of viewport.
Declaration
public double ViewportWidth { get; }
Property Value
Type |
---|
System.Double |
Methods
ArrangeOverride(Size)
Override method gets called framework arrange override.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | finalSize | The final size. |
Returns
Type | Description |
---|---|
System.Windows.Size | The calculated size. |
LineDown()
Method gets called to set vertical offset with addition of row height value to vertical offset value.
Declaration
public void LineDown()
LineLeft()
Since we are not providing virtualizaion towards horizantal, it is not manditory to implement this method.
Declaration
public void LineLeft()
LineRight()
Since we are not providing virtualizaion towards horizantal, it is not manditory to implement this method.
Declaration
public void LineRight()
LineUp()
Method gets called to set vertical offset with subtraction of row height value to vertical offset value.
Declaration
public void LineUp()
MakeVisible(Visual, Rect)
Method gets called to create new instance of rectangle.
Declaration
public Rect MakeVisible(Visual visual, Rect rectangle)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.Visual | visual | The visual. |
System.Windows.Rect | rectangle | The rectangle. |
Returns
Type | Description |
---|---|
System.Windows.Rect | The new instance of rectangle. |
MeasureOverride(Size)
Override method gets called framework measure override.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize | The availabel size. |
Returns
Type | Description |
---|---|
System.Windows.Size | The calculated size. |
MouseWheelDown()
Since we are not providing virtualizaion towards horizantal, it is not manditory to implement this method.
Declaration
public void MouseWheelDown()
MouseWheelLeft()
Since we are not providing virtualizaion towards horizantal, it is not manditory to implement this method.
Declaration
public void MouseWheelLeft()
MouseWheelRight()
Since we are not providing virtualizaion towards horizantal, it is not manditory to implement this method.
Declaration
public void MouseWheelRight()
MouseWheelUp()
Since we are not providing virtualizaion towards horizantal, it is not manditory to implement this method.
Declaration
public void MouseWheelUp()
OnInitialized(EventArgs)
Method gets called on intializing.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The event arguments. |
OnItemsChanged(Object, ItemsChangedEventArgs)
When items are removed, remove the corresponding UI if necessary
Declaration
protected override void OnItemsChanged(object sender, ItemsChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
System.Windows.Controls.Primitives.ItemsChangedEventArgs | args |
PageDown()
Method gets called to set horizontal offset with subtraction of viewport height value to vertical offset value.
Declaration
public void PageDown()
PageLeft()
Since we are not providing virtualizaion towards horizantal, it is not manditory to implement this method.
Declaration
public void PageLeft()
PageRight()
Since we are not providing virtualizaion towards horizantal, it is not manditory to implement this method.
Declaration
public void PageRight()
PageUp()
Method gets called to set horizontal offset with addition of viewport height value to vertical offset value.
Declaration
public void PageUp()
SetHorizontalOffset(Double)
Since we are not providing virtualizaion towards horizantal, it is not manditory to implement this method.
Declaration
public void SetHorizontalOffset(double offset)
Parameters
Type | Name | Description |
---|---|---|
System.Double | offset |
SetVerticalOffset(Double)
Method gets called to scroll vertically.
Declaration
public void SetVerticalOffset(double offset)
Parameters
Type | Name | Description |
---|---|---|
System.Double | offset |