We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.


Thread ID:





117255 Sep 17,2014 01:15 AM Sep 23,2014 05:55 AM WPF 3
Tags: GanttControl
Steve Teare
Asked On September 17, 2014 01:15 AM


I'd like to start off with the current date line showing the loaded time - this I have done successfully by using StickCurrentDateLineTo="LoadedTime" in the XAML.

But then later on I'd like to be able to move the line to a custom position. I can't seem to do this, although I can change the color. 
Is there a way to update StickCurrentDateLineTo after the Gantt has been created and loaded?

This is my code to try to change it:

private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
var currentDate = this.Gantt.CurrentDateLine;
this.Gantt.StickCurrentDateLineTo = CurentDateLinePositions.Absolute;
this.Gantt.CurrentDateLine.Stroke = Brushes.Green;
this.Gantt.CurrentDateLine = new Line()
X1 = currentDate.X1 + 20.0,
X2 = currentDate.X2 + 20.0,
Y1 = currentDate.Y1,
Y2 = currentDate.Y2

Farjana Parveen Ayubb [Syncfusion]
Replied On September 19, 2014 10:57 AM

Hi Steve,


Thank you for contacting Syncfusion Support.


We have analyzed your query. You can achieve your requirement by using Strip lines in GanttControl.


Please refer the following UG link and sample in the following location:


UGLink: http://help.syncfusion.com/ug/wpf/default.htm#!documents/addingstriplinestoap.htm



Farjana Parveen A

Attachment: StripLines_9bf0eefc.zip

Steve Teare
Replied On September 22, 2014 12:52 AM

Thank you, it works using striplines!

Farjana Parveen Ayubb [Syncfusion]
Replied On September 23, 2014 05:55 AM

Hi Steve,


Thank you for the update, Please let us know if you require further assistance.



Farjana Parveen A


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.