Questions tagged [visualbrush]
84 questions
9
votes
2 answers
RenderTargetBitmap + Resource'd VisualBrush = incomplete image
I've found a new twist on the "Visual to RenderTargetBitmap" question!
I'm rendering previews of WPF stuff for a designer. That means I need to take a WPF visual and render it to a bitmap without that visual ever being displayed. Got a nice little…
user1228
7
votes
2 answers
WPF "Lazy" VisualBrush
I'm trying to implement somesting like an "Lazy" VisualBrush right now. Does anybody have an idea how to to that? Meaning: Something that behaves like an VisualBrush but does not update on every change in the Visual but at max once a second (or…

harri
- 556
- 5
- 17
5
votes
1 answer
WPF Binding a visual brush's visual to a different window
I need a rectangle in my settings window to display a scaled down version of of the main window. This is the non-working code that I have right now. Is it possible to do what I want to do?

Justin
- 2,399
- 4
- 31
- 50
4
votes
1 answer
Snapshots of Control in time using VisualBrush stored in one Fixed(Flow)Document
I need to take snapshots of Control in time and store them in one FixedDocument. Problem is that VisualBrush is somehow "lazy" and do not evaluate itself by adding it to document. When I finaly create the document, all pages contains the same (last)…

karel
- 1,297
- 1
- 10
- 22
4
votes
2 answers
Rendering WPF Visual Object as Image Yields Solid Black Image
In a C#/WPF application, I have a DataChart object that I need to save to an image. Currently, the object is added to a Fixed Document and correctly displays on that Fixed Document by using the following code:
VisualBrush chartBrush = new…

JToland
- 3,630
- 12
- 49
- 70
4
votes
0 answers
WPF VisualBrush with mixed aspect ratio
We are using the Mindfusion WPF Diagramming Component. I require a Visualbrush which must be able to be used in a third-party component for diagramming.
We have horizontally-stretching lanes on the diagramming canvas. We must define a background…

Alex Maker
- 1,529
- 2
- 19
- 27
4
votes
2 answers
Using a Canvas as an icon with bindable color
As many WPFers, I use this pattern to create a vector icon:
1 - Defining a Canvas contains the data:
Resource Item:

amiry jd
- 27,021
- 30
- 116
- 215
4
votes
1 answer
Blur background with Viewbox
i'm building a similar effect which AERO glass gives you, a blurred window. I quickly realized that is not easy in WPF, but i managed to get it to work almost completely.
I'm just stuck when a Viewbox is involved.
So what i did was: I created a…

dowhilefor
- 10,971
- 3
- 28
- 45
4
votes
1 answer
WPF VisualBrush stretches instead of tileing
I've got a VisualBrush on which I've set the TileMode property to Tile.
However, it doesn't tile - it stretches. Can anyone assist please?
Thanks

Andy Clarke
- 3,234
- 5
- 39
- 66
3
votes
1 answer
Datagrid Column Dragging Indicator is clipped
Edit: Pavel has shown that it may not be VisualBrush's fault so I have renamed the question for my specific problem.
The example is a WPF Datagrid;
Scroll right until a column header is partially visible.
drag the partially visible column header to…

Adam Mills
- 7,719
- 3
- 31
- 47
3
votes
1 answer
WPF 3D - Why does my ImageBrush not render?
I have a 3D plane which I'm trying to render with an ImageBrush as it's DiffuseMaterial.Brush. If i use a SolidColorBrush then the plane appears fine but I get nothing at all with either an ImageBrush or a VisualBrush.
Can anyone tell me why? …

EightyOne Unite
- 11,665
- 14
- 79
- 105
3
votes
1 answer
Is It Possible To Create A Cursor In WPF From a VisualBrush?
I'm doing some Drag and Drop operations, and I want to use a visual copy of the element I'm dragging for the cursor. It's easy enough to get a VisualBrush of the element, but I have no idea how to turn this into a cursor.
I've read the Jamie…

Chris Holmes
- 11,444
- 12
- 50
- 64
3
votes
1 answer
VisualBrush from Window retains image of previous VisualBrush
Using VisualBrush, I am taking snapshots of a Window that contains a TabControl.
Snapshot #1:
Switch to "Dos" (not Microsoft), snapshot #2:
If I just take a picture of the TabControl or the DockPanel, everything works fine, this problem is…

tofutim
- 22,664
- 20
- 87
- 148
3
votes
1 answer
Freeze visual brush? or any better idea?
I want to create a branch of thumb pictures for my UI, and I tried to do it in this way:
RenderTargetBitmap renderer = new RenderTargetBitmap(WIDTH, HEIGHT, dpiX, dpiY, PixelFormats.Pbgra32);
renderer.Render(vbox);
renderer.Freeze();
"vbox" is my…

woodheadz
- 31
- 3
3
votes
2 answers
TextBlock Background Property removing stretch
I have a TextBox defined as this:
…

Duke Cyrillus
- 1,217
- 2
- 14
- 29