Lep
❔ ? WPF Build Action(Resource)
Thank you for the info, I'll be looking into user directed configurations when I get a chance, as for this project, looks like I need the resource so I might make a copy into the file directory since I don't really understand/know how to reference to the original file without needing it to be in the resources nor do I know how to add a new path to the resources through actual code rather than manual entry.
41 replies
❔ ? WPF Build Action(Resource)
This is a personal learning project, not making an actual app for a while. Just trying to learn how to do things correctly at the moment. I could just throw all the images into a single folder and get it from there, but I'd also like the possibility to grab a gif from 1 place and use it. I do have the Images*.gif option set on the resources area, so what I could also do is make a temp gif on the file directory or add a copy. Any opinions on the matter?
41 replies
❔ Auto Resize
Nevermind, found a solution. I was trying to use newimg to deal with the problem before but it wasn't working since I didn't have the images on my debug file so I was using "img" instead since it seems like it should of been working. I threw my Images folder inside the debug folder and called it a day to make it work lol.
Still, if there's a better way of dealing with this, please, do let me know.
9 replies
❔ Auto Resize
Sorry didn't get a chance to get on, none of the values are matching. My image properties are 234x480, if I leave it empty without trying to resize, the width is 1440, if I try to use MainWin.Width = img.ActualWidth; as a test, it stays as 1440, if I try to make it "img.Width" instead the Width value becomes 2.
9 replies