Questions tagged [imagebrush]
92 questions
2
votes
1 answer
How to tile an image in the background?
I try to do this, but it doesn't work:

Kibnet Philosoff
- 165
- 7
2
votes
0 answers
Fast way of loading image brushes
I'm searching for a good and fast way to load images as background brushes to Windows 10 Mobile UWP XAML pages (Grid background).
Currently I do this like the following:
Define ImageBrush in Page.Resources section
Use defined ImageBrush and set…

user1011394
- 1,656
- 6
- 28
- 41
2
votes
0 answers
WPF : Use different icon images as an ImageBrush?
An Icon can contain more than one image. I want to use an icon for an ImageBrush and I want to set which image inside the icon should be use. But somehow it seems I can't do that. The brush always picks the largest image from the icon.
Is there a…

TalkingCode
- 13,407
- 27
- 102
- 147
2
votes
2 answers
How to rotate a bitmap inside a polygon?
I defined a Polygon like this:

eitan barazani
- 1,123
- 3
- 18
- 34
2
votes
1 answer
Cannot find the image by providing the relative path in Silverlight
I'm working on a Silverlight application and I have a hard time setting the relative path of an image in my application.
This is a brief picture of my project directory:
MyProject
L images
L mountain1.jpg
L SpriteObjects
L …

Peter
- 97
- 1
- 6
2
votes
1 answer
Change ImageBrush Imagesource programmatically with conditions (WPF)
I got such xaml

Jack Robinson
- 65
- 1
- 5
2
votes
1 answer
how to set background of grid
I have a BitmapImage, and want to set it as Background of Grid. I have tried this
xaml:
c#:
BitmapImage bmp = new…

Dev
- 1,130
- 10
- 21
2
votes
0 answers
WPF (Image scroller)
I am working in WPF to create Image scroller. I set an background image to a grid using image brush. While scrolling an image it flicker a lot. Any solution for that?
Code:
Xaml:

Bhavesh Jain
- 76
- 4
2
votes
4 answers
Program crashes on startup with ImageBrush
I'm trying to create a very simple window with an ImageBrush background in Visual Studio 2013 as a test for a more complex project. The image shows up in the designer, but the program crashes when I start it up. Here's the XAML:

Joe.Flanigan
- 736
- 6
- 18
2
votes
0 answers
How can I improve the performance of a slide animation?
Situation:
I have a keyboard (in the example a blue Rectangle) that slides in from the bottom of the window. I managed that animation with a Thicknessanimation that changes the MarginProperty of the keyboard. The "Content Grid" gets smaller and the…

AntiStoopMode
- 231
- 2
- 12
2
votes
4 answers
ImageBrush throws exception when trying to set Window background
I'm trying to set the background of my WPF window to an image but I'm getting this exception when I try to run it:
A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll Additional…

user1683456
- 91
- 1
- 2
- 7
2
votes
2 answers
How to change Border Background image programmatically
I am creating a media player app in WPF c#.
I am using Media Element to do this.
Anyways, I have used to add border some places.

shnaz
- 125
- 2
- 7
1
vote
1 answer
Binding a Canvas size to the image size in its background ImageBrush
I have a canvas that I want sized to fit a background ImageBrush.
One hurdle here is that the control is being instantiated and then the image is being passed in and assigned as the ImageBrush. The other hurdle is that I'm making this control for…

PhilBrown
- 2,949
- 7
- 34
- 53
1
vote
1 answer
How to load a BitmapImage in MetroUI Dynamically
I've been experimenting with Windows 8 and Metro UI, I've written a perfectly reasonable load of a bitmap image, but it doesn't seem to be loading, any help is appreciated.
Public Sub New(Image As String)
Debug.Print("ms-resource://MyAssembly/" &…

Danny
- 53
- 1
- 7
1
vote
1 answer
WPF: ImageSource relative to executable location not project location
I want to load image from an directory under my executable location.
I have tried to use ./backgrounds/ or \backgrounds\ but both seems like…

Hhry
- 823
- 1
- 8
- 19