wpf-mediaElement [英] wpf - mediaElement

查看:74
本文介绍了wpf-mediaElement的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将播放列表从.wpl文件加载到列表框中.它显示了所有项目
但它们的索引保持为"-1".
但是当我将项目拖到列表框中时,它们的索引正确,如"0,1,2..so on"

I load playlist from .wpl file into listbox. it shows me all items
but their index remains same "-1".
but when i drag items into listbox their index are proper like "0,1,2..so on"

推荐答案

,这可能是因为没有属性更改事件(INotifyPropertyChanged).如果没有更多信息,这是我首先要检查的内容.拖动时,UI便知道有更改.
This could be because there is no property changed event (INotifyPropertyChanged). Without more information, this is what I would first check. When you drag, then then the UI knows there is a change.


这篇关于wpf-mediaElement的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆