Bin
✅ Change a variable in method.
if you want to just change the variable name, you can assign it to another variable. Beware that if it is a class, it will reflect change made from any variable across different variable where you assign them to different variables
58 replies
✅ Change a variable in method.
not sure what your intention here, dont understand your question completely, but anyway you could store the result of
coffee.getPrice()
call to a variable, e.g double coffeePrice = coffee.getPrice()
then reuse the same variable of coffeePrice whenever you need to get the price again58 replies
❔ how can WPF change the hover mouseover color of something like Winforms can?
exactly. Been using winforms to create short project, then introduce myself to wpf, struggling to use it than winform, and now after been patiently adapting myself to the learning curve of wpf, i never looked back to winform
25 replies
❔ how can WPF change the hover mouseover color of something like Winforms can?
i can understand, i was there. First time i learn a new so called concept MVVM just makes me question "why the hell should i do something that does exaclty same for 10 times much slower in terms of development time". As time pass, now i embrace that concept and never look back
25 replies
❔ how can WPF change the hover mouseover color of something like Winforms can?
i have watched this tutorial a few months back and you could watch it too in case you don't know what a trigger is
https://www.youtube.com/watch?v=kc5MapV54e0
25 replies
❔ how can WPF change the hover mouseover color of something like Winforms can?
you can use triggers that trigger when IsMouseOver property is set to true. related question about mouseover change color of button, haven't read it thoroughly yet but i hope you'll get the answer there
https://stackoverflow.com/questions/20073294/change-color-of-button-when-mouse-is-over
25 replies