windows 8 - WinRT Sharing Source Contract both HTML and Files -
it doesn't appear can provide both html content , file content in datarequestedevent handler.
if provide html content (via args.request.data.sethtmlformat(xxx)) , file (via args.request.data.setstorageitems(xxx)) share charm says "there's nothing share".
anyone got ideas or design?
var htmlexample = "<p>here our store logo: <img src='images/logo.png'>.</p>"; var htmlformat = windows.applicationmodel.datatransfer.htmlformathelper.createhtmlformat(htmlexample); request.data.sethtmlformat(htmlformat); full exemple here http://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.datatransfer.datapackage.sethtmlformat
Comments
Post a Comment