HatchStyle in WPF

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MShefi
Newbie
Newbie
Posts: 20
Joined: Fri Nov 15, 2002 12:00 am

HatchStyle in WPF

Post by MShefi » Sun Dec 25, 2011 8:19 am

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)

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: HatchStyle in WPF

Post by Sandra » Tue Dec 27, 2011 12:15 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

MShefi
Newbie
Newbie
Posts: 20
Joined: Fri Nov 15, 2002 12:00 am

Re: HatchStyle in WPF

Post by MShefi » Tue Dec 27, 2011 2:12 pm

Hi,

The ChartBrush doesn't have style property, so i cannot access gantt1.Pointer.Brush.Style.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: HatchStyle in WPF

Post by Sandra » Tue Dec 27, 2011 2:21 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

MShefi
Newbie
Newbie
Posts: 20
Joined: Fri Nov 15, 2002 12:00 am

Re: HatchStyle in WPF

Post by MShefi » Wed Dec 28, 2011 8:01 am

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?)

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: HatchStyle in WPF

Post by Sandra » Wed Dec 28, 2011 12:28 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply