Lep
Lep
CC#
Created by Lep on 4/6/2023 in #help
❔ ? 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
CC#
Created by Lep on 4/6/2023 in #help
❔ ? 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
CC#
Created by Lep on 4/6/2023 in #help
❔ ? WPF Build Action(Resource)
41 replies
CC#
Created by Lep on 4/6/2023 in #help
❔ ? WPF Build Action(Resource)
Put everything together in 1 place for now, am I doing something wrong? Sorry still kind of learning but, if I do add the resource it works fine, if I don't I still get the exception thrown out.
41 replies
CC#
Created by Lep on 4/6/2023 in #help
❔ ? WPF Build Action(Resource)
41 replies
CC#
Created by Lep on 4/6/2023 in #help
❔ ? WPF Build Action(Resource)
41 replies
CC#
Created by Lep on 4/6/2023 in #help
❔ ? WPF Build Action(Resource)
The source location will change whenever I decide to open it from somewhere else
41 replies
CC#
Created by Lep on 4/6/2023 in #help
❔ ? WPF Build Action(Resource)
I'd like to change the Source to be selected from a ui so I don't want to put it in a specific folder
41 replies
CC#
Created by Marcoona on 4/6/2023 in #help
❔ it doesnt run the code
That does look like VS Code, on the top you should have a "Terminal" option, I would suggest opening it if you don't have anything, the output should go in there I believe.
12 replies
CC#
Created by Lep on 4/5/2023 in #help
❔ 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
CC#
Created by Lep on 4/5/2023 in #help
❔ Auto Resize
9 replies
CC#
Created by Lep on 4/5/2023 in #help
❔ 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