Questions tagged [visualbrush]
84 questions
0
votes
1 answer
How can you draw separate parts a control in different places with WPF?
I'm trying to split the drawing of a WPF UserControl onto two separate pages of a custom Paged Panel that I'm writing. I thought of using a VisualBrush to draw bits of the control. Is this the way to go?
I presume I'll also have to put the controls…

Stephen Ellis
- 2,561
- 2
- 24
- 47
0
votes
1 answer
WPF issue with VisualBrush for Image while moving
I have Image and i have created visual brush for image when i move object form one point to another. but I don't see image on visual brush. if you see my rectangle, it suppose to show image.
See image :…

user1535848
- 149
- 1
- 2
- 9
0
votes
2 answers
How do I make RenderTargetBitmap and VisualBrush play nice together?
My requirements:
a persistent UserControl that handles logic for a custom image, such as a map or drawing
a set of containers to implement caching on the image during zoom or pan movements
VisualBrush copies of the UserControl that I can add to the…

benjamin.popp
- 547
- 1
- 6
- 20
0
votes
1 answer
VisuaBrush Scaling Incorrectly with Canvas as Visual element
I've been fighting with this problem for a few days now and have had zero luck getting it resolved or finding any support on the web. Basically, I am trying to create a VisualBrush with a canvas as the visual element. I want to be able to draw…
0
votes
1 answer
DrawGeometry() in OnRender() method
I have a UserControl which overrides the OnRender-Method as follow:
MyUsercontrol.cs:
MyUserControl: UserControl
{
protected override void OnRender(DrawingContext dc)
{
dc.DrawRectangle(Brushes.White, new Pen(Brushes.Black,1), new…

rhe1980
- 1,557
- 1
- 15
- 36
-1
votes
1 answer
How to blur the background behind a control
I need to fit the VisualBrush used into the button to the entire window. The VisualBrush is linked to an Image that is stretched to the entire visualization, but in the visual that image starts to appear in the corner of the button.
-1
votes
1 answer
How to modify VisualBrush programmatically?
In xaml Window.Resources I have defined a VisualBrush:

user2272143
- 469
- 5
- 22
-1
votes
1 answer
Can I set dynamic Resource's property as Dynamic Resource, and when I change property resource, parent resource will change also?
I have a VisulBrush like this:

FranklinLee
- 309
- 2
- 9