Hi,
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
};
}