How works resources in WPF?

Posted on 2010-01-01
Medium Priority
Last Modified: 2013-11-13

  I'm starting to understand WPF but the documentation is very disperso. Could some guru explain me the difference of a Canvas and DrawingBrush? I'm doing this questiong because MS Expression Desgin generates this two kind of data.

  With DrawingBrush I can create resources and import them to the application. Otherwise I can't incluse a StoryBoard in the object. With Canvas the situation is the oposite. Is there a way to create a resource object with animation or other kind of things?

  When creating Shadow, per example, DrawBrusuh generates a PNG pictures to be used with the object. Canvas uses XAML data to create the same kind if shadow. Why does it happens?

  What is the better option to create icons to be used in an application?

  Marco Castro
Question by:MarcoCastro

Accepted Solution

sureshchsahu earned 1000 total points
ID: 26169616
try this

using(Stream stream = Application.GetResourceStream(new Uri("/Shutdown.ico")).Stream)
    this.notifyIcon.Icon = new SystemDrawing.Icon(stream);

Author Closing Comment

ID: 31671858
There was no answer to me question.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was Monday morning and while heading to work those familiar feelings of frustration began to rise: How was I ever going to get my yard work done?! At the end of every weekend I discovered that I spent more time trying to decide what to work on th…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Integration Management Part 2
Simple Linear Regression
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question