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
Post a Comment