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)
HatchStyle in WPF
Re: HatchStyle in WPF
Hello MShefi,
You must do the same that I do in following line of code:
Can you tell us if previous works as you want?
I hope will helps.
Thanks,
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;
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: HatchStyle in WPF
Hi,
The ChartBrush doesn't have style property, so i cannot access gantt1.Pointer.Brush.Style.
The ChartBrush doesn't have style property, so i cannot access gantt1.Pointer.Brush.Style.
Re: HatchStyle in WPF
Hello MShefi
Please see next code:
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,
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;
}
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: HatchStyle in WPF
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?)
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
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,
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,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |