c# - Programmatically set WinRt button content to image -


for given button control in winrt want dynamically set it's content image. have thought dead simple:

 _subjectfileposter = new bitmapimage();  _subjectfileposter.setsource(t);  _btnplayvideo.content = _subjectfileposter; 

but it's not, instead button typename windows.ui.xaml.media.imaging.bitmapimage written on it.

need set content <image> , <image>'s source bitmapimage

_subjectfileposter = new bitmapimage(); _subjectfileposter.setsource(t);  image = new image(); i.source = _subjectfileposter;  _btnplayvideo.content = i; 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -