Example #1
0
        /// <summary>
        /// Handles the RequestNodeImage event of the GanttGrid control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="args">The <see cref="Syncfusion.Windows.Controls.Grid.GridTreeRequestNodeImageEventArgs"/> instance containing the event data.</param>
        void GanttGrid_RequestNodeImage(object sender, Syncfusion.Windows.Controls.Grid.GridTreeRequestNodeImageEventArgs args)
        {
            Task task = args.Item as Task;

            if (task == null || task.Resource.Count <= 0)
            {
                return;
            }
            args.NodeImage = new BitmapImage(new Uri(".../.../Images/Resource.png", UriKind.Relative));
        }
        /// <summary>
        /// Handles the RequestNodeImage event of the GanttGrid control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="args">The <see cref="Syncfusion.Windows.Controls.Grid.GridTreeRequestNodeImageEventArgs"/> instance containing the event data.</param>
        void GanttGrid_RequestNodeImage(object sender, Syncfusion.Windows.Controls.Grid.GridTreeRequestNodeImageEventArgs args)
        {
            CustomizedTableModel task = args.Item as CustomizedTableModel;

            if (task == null || task.Resource.Count <= 0)
            {
                return;
            }

            args.NodeImage = new BitmapImage(new Uri(@"pack://application:,,,/syncfusion.ganttdemos.wpf;component/Images/Resource.png"));
        }