How works resources in WPF?
Posted on 2010-01-01
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?