I am skinning my app and want have a generic button graphic for all buttons, and then each button have unique content. I've created a DrawingBrush for the generic button graphic and applied it the button's background using a style defined in my resource dictionary. This all works great. However, when I then try to add something other tha...
Are there any differences when it comes to performance between the following three border objects?
<Border Grid.Column="0" Grid.ColumnSpan="2" Opacity="1">
<Border.Background>
<DrawingBrush>
<DrawingBrush.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="Red">
<GeometryDrawing.Geometry>
...
I currently have a canvas which contains a bunch of sqaures as its children.
These sqaures sit on different lines.
I would like to draw a background for the canvas which draws lines (like a notepad would have feint blue lines on the paper)
I would like to draw this dynamically by binding it to a collection of "lines"
So if there are 2 ...
Hi,
I want to create a Resource Library of Drawing Brushes.
The Idea is create a base drawing brush and change the color throw a dependency propertie and use the new drawing brush in xaml. (i don´t create a new drawing. the drawing is same but the colors changed)
I can do throw this:
DrawingBrush drwBrush = Mystyles[myDrawing] as Draw...
After applying a relative rotate transform (of 45 degrees) on a brush in WPF, I am left with extremely jagged lines. Has anyone else experienced this? Did you find a solution?
...