Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. WPF editor is duplicating my image files

WPF editor is duplicating my image files

Scheduled Pinned Locked Moved WPF
csharpvisual-studiowpfquestionannouncement
4 Posts 2 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tbenner1960
    wrote on last edited by
    #1

    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]

    D 1 Reply Last reply
    0
    • T tbenner1960

      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]

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      T 1 Reply Last reply
      0
      • D 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 Kreskowiak

        T Offline
        T Offline
        tbenner1960
        wrote on last edited by
        #3

        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]

        D 1 Reply Last reply
        0
        • T tbenner1960

          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]

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups