jimmygyuma

I don't seem to have System.Windows.Media in VC# Express, is that something you have to pay the big bucks for I need the RadialGradientBrush, which seems to do exactly what I need to do. Basically what I'm trying to do is a gradient (in a rectangle) with a focus point for the first color and the gradient radiates out in all directions from that point. The examples tell how to do it with a PathGradientBrush, and it works fine -- in an ellipse. But put it in a rectangle and it turns into a star.

I figured out a way to do it, but it's not pretty and I'm wondering if I'm missing something somewhere. The star is nice, if you want a star, but...



Re: Visual C# Express Edition System.Windows.Media

IsshouFuuraibou

you may need to add the reference to the dll in your project. Right click on the references folder in the solution explorer and select add references. Scroll down to see if you can select System.Windows.Media. Once you select it, you should have access to the System.Windows.Media namespace.





Re: Visual C# Express Edition System.Windows.Media

jrboddie

I believe this namespace is available in the .Net 3.0 Framework.

You can get a free download of Visual Studio Express "Orcas" Edition which supports .Net 3.0 here.





Re: Visual C# Express Edition System.Windows.Media

jimmygyuma

Tried adding a ref but there's no such item in the list. The only System.Windows is System.Windows.Forms.



Re: Visual C# Express Edition System.Windows.Media

IsshouFuuraibou

then you're working with .net 2.0. As jrbodie stated, System.Windows.Media is part of .net 3.0, which you can get for VS2005





Re: Visual C# Express Edition System.Windows.Media

jimmygyuma

I clicked 'here' and now after many progress bars that reach the end long before they're actually done and several "This may take a few minutes" I was thinking bad thoughts about you, jrboddie, but all's well that ends well, I now have my RadialGradientBrush... geesh. I haven't actually done anything with 'Orcas' yet, but it's there and it looks like a bunch of other goodies as well. Thanks a bunch.



Re: Visual C# Express Edition System.Windows.Media

jimmygyuma

Spoke too soon. It seems, if I've read everything correctly, that System.Windows.Media is part of 'Windows Presentation Foundation' which is part of Windows Vista.

Back to square one. I'm not going for Vista till I have to buy a new computer.





Re: Visual C# Express Edition System.Windows.Media

jrboddie

I believe that WPF (Windows Presentation Foundation) is more correctly associated with the .Net 3.0 Framework and it works on XP as well as Vista. You just need to get the version of Visual Studio that works with .Net 3.0 which I referenced in my previous post.





Re: Visual C# Express Edition System.Windows.Media

IsshouFuuraibou

jrboddie is right, Windows Presentation Foundation is tied to .Net 3.0 not Vista

Take a look at RadialGradientBrush, supported platforms include Windows XP SP2

Read the MSDN article on WPF:
http://msdn2.microsoft.com/en-us/library/aa663364.aspx

The goal of Windows Presentation Foundation (WPF) is to provide these advances for Windows. Included in version 3.0 of the Microsoft .NET Framework, WPF allows building interfaces that incorporate documents, media, two- and three-dimensional graphics, animations, Web-like characteristics, and much more. Like everything else in the .NET Framework 3.0, WPF will be available for Windows Vista, Windows XP, and Windows Server 2003, and it's scheduled to be released when Windows Vista ships. This paper introduces WPF, describing its various parts. The goal is to make clear the problems this technology addresses, then survey the solutions that WPF provides.





Re: Visual C# Express Edition System.Windows.Media

jimmygyuma

Your right. I must be doing something else wrong. I downloaded Orcas, and in the process it installed Net 3.0 and Net 3.5. When I opened Orcas and looked in the Help index, there was System.Windows.Media and RadialGradientBrush. I made a copy of my current project and imported it into Orcas. But, when I tried to use RadialGradientBrush it didn't know what it was. Ok, I need a ref, but when I went to Project->Add Ref, there was the usual lineup, minus System.Window.Media and any of its progeny. That's when I went back to the Orcas site and got the idea that it was Vista only.

Is there something I need to do so that the Add Ref dialog (in Orcas) knows about Media Or is there something else I need to do I'm the first to admit that I'm in over my head here.





Re: Visual C# Express Edition System.Windows.Media

jrboddie

Try asking at the C# Orcas Express Forum.

http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=1495&SiteID=1