All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

GanttResourceControl Class

A gantt resource.

Namespace: DevExpress.Xpf.Gantt

Assembly: DevExpress.Xpf.Gantt.v20.1.dll

Declaration

public class GanttResourceControl :
    GanttItemControlBase
Public Class GanttResourceControl
    Inherits GanttItemControlBase

Related API Members

The following members accept/return GanttResourceControl objects:

Remarks

Use the GanttResourceControl object to customize the appearance of gantt resources.

<dxgn:GanttControl ItemsSource="{Binding Tasks}">
    <dxgn:GanttControl.View>
        <dxgn:GanttView ResourcesSource="{Binding Resources}">
            <dxgn:GanttView.ResourceStyle>
                <Style TargetType="{x:Type dxgn:GanttResourceControl}">
                    <Setter Property="Background" Value="{Binding ResourceData.Color, 
                                                  Converter={dxmvvm:ColorToBrushConverter}}"/>
                    <Setter Property="CornerRadius" Value="0"/>
                    <Setter Property="Foreground" Value="White"/>
                    <Setter Property="BorderThickness" Value="0"/>
                    <Style.Triggers>
                        <EventTrigger RoutedEvent="MouseEnter">
                            <BeginStoryboard>
                                <Storyboard>
                                    <DoubleAnimation Duration="0:0:0.2" From="1" To="0.35" 
                                                     Storyboard.TargetProperty="Opacity"/>
                                </Storyboard>
                            </BeginStoryboard>
                        </EventTrigger>
                        <EventTrigger RoutedEvent="MouseLeave">
                            <BeginStoryboard>
                                <Storyboard>
                                    <DoubleAnimation Duration="0:0:0.2" From="0.35" To="1" 
                                                     Storyboard.TargetProperty="Opacity"/>
                                </Storyboard>
                            </BeginStoryboard>
                        </EventTrigger>
                    </Style.Triggers>
                </Style>
            </dxgn:GanttView.ResourceStyle>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl> 

Inheritance

Object
DispatcherObject
DependencyObject
Visual
UIElement
FrameworkElement
Control
DevExpress.Xpf.Gantt.GanttItemControlBase
GanttResourceControl
See Also