WPF editor is duplicating my image files
-
In Visual Studio(Community Edition, latest version), when I select an image for the background on a page in WPF, the image file is being copied from the images folder to where the page file is. Looked around and can't find a way to turn this off. Is there a way to turn this off, and why is Visual Studio doing this? Thanks [Tim]
-
In Visual Studio(Community Edition, latest version), when I select an image for the background on a page in WPF, the image file is being copied from the images folder to where the page file is. Looked around and can't find a way to turn this off. Is there a way to turn this off, and why is Visual Studio doing this? Thanks [Tim]
tbenner1960 wrote:
when I select an image for the background on a page in WPF
How did you do this, exactly?
tbenner1960 wrote:
Is there a way to turn this off, and why is Visual Studio doing this?
I'm wondering how you got VS to do this because it's not a feature that can be turned on and off, it's not even a feature!, and I can't duplicate the problem on my machine.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
tbenner1960 wrote:
when I select an image for the background on a page in WPF
How did you do this, exactly?
tbenner1960 wrote:
Is there a way to turn this off, and why is Visual Studio doing this?
I'm wondering how you got VS to do this because it's not a feature that can be turned on and off, it's not even a feature!, and I can't duplicate the problem on my machine.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave KreskowiakDave To be more specific, I'm adding the image to the Grid. In the properties window I select a tile brush for the background. The image is in an images folder under the project. What happens then is the selected image is copied from the images folder to the folder where the page is. Also the link to the image points to the copied image, not the file in the images folder. Yeah strange; these things happen to me. :) [Tim]
-
Dave To be more specific, I'm adding the image to the Grid. In the properties window I select a tile brush for the background. The image is in an images folder under the project. What happens then is the selected image is copied from the images folder to the folder where the page is. Also the link to the image points to the copied image, not the file in the images folder. Yeah strange; these things happen to me. :) [Tim]
That explains it. You have MUCH greater control just by typing the XAML directly. Nobody uses the Properties window to do this, or anything else for that matter. For example:
ImageSource="Images\\Tile.bmp" Viewport="0,0,.2,.4" ViewportUnits="RelativeToBoundingBox" />
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak