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) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -