Page 1 of 1
HatchStyle in WPF
Posted: Sun Dec 25, 2011 8:19 am
by 6920463
Hi,
i have this line of code in TeeChart(Winforms)
((Steema.TeeChart.WPF.Styles.Gantt)TeeChartControl.Series[index]).Pointer.Brush.Style = HatchStyle.Percent60;
How can i achieve this in TeeChart Wpf? (it doesn't recognize the style property for ChartBrush)
Re: HatchStyle in WPF
Posted: Tue Dec 27, 2011 12:15 pm
by 10050769
Hello MShefi,
You must do the same that I do in following line of code:
Code: Select all
gantt1.Pointer.Brush.Style = Steema.TeeChart.WPF.Drawing.HatchStyle.Percent60;
Can you tell us if previous works as you want?
I hope will helps.
Thanks,
Re: HatchStyle in WPF
Posted: Tue Dec 27, 2011 2:12 pm
by 6920463
Hi,
The ChartBrush doesn't have style property, so i cannot access gantt1.Pointer.Brush.Style.
Re: HatchStyle in WPF
Posted: Tue Dec 27, 2011 2:21 pm
by 10050769
Hello MShefi
Please see next code:
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
Steema.TeeChart.WPF.Styles.Gantt gantt1 = new Steema.TeeChart.WPF.Styles.Gantt(tChart1.Chart);
gantt1.FillSampleValues();
gantt1.Pointer.Brush.Style = Steema.TeeChart.WPF.Drawing.HatchStyle.Percent60;
}
The gantt1 is a Gantt Series, please check if previous code works as you want. On the other hand, can you tell us which version of TeeChart.Net are you using?
Thanks,
Re: HatchStyle in WPF
Posted: Wed Dec 28, 2011 8:01 am
by 6920463
Hi,
I'm using "Steema TeeChart for .NET 2011 4.1.2011.06280".
I copied the code and it doesn't work:
Error 223 'Steema.TeeChart.WPF.Drawing.ChartBrush' does not contain a definition for 'Style' and no extension method 'Style' accepting a first argument of type 'Steema.TeeChart.WPF.Drawing.ChartBrush' could be found (are you missing a using directive or an assembly reference?)
Re: HatchStyle in WPF
Posted: Wed Dec 28, 2011 12:28 pm
by 10050769
Hello MShefi,
I can check previous lines of code, using last version of TeeChart.Net(4.1.2011.10193). I recommen you update your version of TeeChartFor.Net and check again if your problem persists. If it still appears, please let me know.
Thanks,