Finding the canvas size is not as easy as you might think. Anyway, it was very informative. thank you
@ДаниилЧернышев-л5й Жыл бұрын
There are many ways to scin a cat, but I can suggest another method to implement relative positioning. Absolute position equals percentage (in 0 to 1 range) multiplied by canvas height. So we can bind a Canvas.Top property of the arrow control with MultiBinding, that combines the VolumePercentage from viewModel and Canvas.ActualHeight from view. The only other thing we will need is a multiValueConverter that would multiply these values.
@GuildOfCalamity Жыл бұрын
@20:18 I think you could employ a clamping method to get the same result... whichever is easier I guess.
@loam Жыл бұрын
8:08 - I was having the same glitch earlier through this lesson, and it didn't came to me to try clean and rebuild, I just quickly switched to Visual Studio for now 🙂