Binding a progressbar to a mediaelement in wpf

后端 未结 5 1498
深忆病人
深忆病人 2020-12-29 13:24

In c#/wpf I added a progressbar and mediaelement to my window. The idea was that progressbar is displaying how much is been played in the mediaelement.

I tried it wi

5条回答
  •  隐瞒了意图╮
    2020-12-29 13:44

    There is a wrapper library called Gu.Wpf.Media in GitHub that handles all the problems of the MediaElement and brings more.

    It supports binding to Position property via TwoWay binding out of the box. No need to hassle with timers.

提交回复
热议问题