windows-runtime

HtmlAgilityPack and windows 8 winRT

﹥>﹥吖頭↗ 提交于 2020-02-07 04:07:40
问题 I'm trying to build a metro app for windows 8. In this app i'm trying to parse data from a website. For that i'm using HtmlAgilityPack 1.4.6. BUT i'm getting really confused about 'Dose HAP 1.4.6 works with windows 8?' and 'Dose it support Xpath?' Too much confusing info on Codeplex. As for now it seems that it works on windows 8 BUT i can't see HtmlNode.SelectNode method. If Xpath is not working, is there any other option to do the parsing? Can you direct me to a tutorial or examples? please

C++ WinRT - How to convert C++CX Array<> template to WinRT?

吃可爱长大的小学妹 提交于 2020-02-07 03:35:46
问题 How to convert the following code to C++ WinRT ? Platform::Array<bool>^ currentButtonReading = ref new Platform::Array<bool>(buttonCount); Platform::Array<GameControllerSwitchPosition>^ currentSwitchReading = ref new Platform::Array<GameControllerSwitchPosition>(switchCount); Platform::Array<double>^ currentAxisReading = ref new Platform::Array<double>(axisCount); rawGameController->GetCurrentReading( currentButtonReading, currentSwitchReading, currentAxisReading); It is from the article:

Issue with Swipe inside ListView

此生再无相见时 提交于 2020-02-06 18:50:59
问题 I am using a ListView in a Windows Store App. Whenever I start swiping(using simulator tap mode) over the list view all the items move together as illustrated in the picture. How can I disable this manipulation event? 回答1: To your ListView , add: ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollMode="Disabled" If that is not enough (this sometimes does not work with MouseWheel events, in that the events still tend to be caught in the ListView and also tends to

How to display a Windows 8 metro style tile within an app?

不问归期 提交于 2020-02-02 11:02:01
问题 Windows 8 metro style app tiles are created based on pre-defined xml templates (found here). Is there any way to hook up to Windows' rendering of the tile to allow a tile preview within an app? In my app I would like to offer the user a subset of the tile templates listed in the above link and let the user customize the tile content. A live preview of the customized tile rendered within my app would greatly improve the user experience. 回答1: you should look into HubTile. I don't know any free

How to display a Windows 8 metro style tile within an app?

谁说胖子不能爱 提交于 2020-02-02 10:59:13
问题 Windows 8 metro style app tiles are created based on pre-defined xml templates (found here). Is there any way to hook up to Windows' rendering of the tile to allow a tile preview within an app? In my app I would like to offer the user a subset of the tile templates listed in the above link and let the user customize the tile content. A live preview of the customized tile rendered within my app would greatly improve the user experience. 回答1: you should look into HubTile. I don't know any free

New Live tiles don't work in Windows Phone Silverlight 8.1 apps?

瘦欲@ 提交于 2020-02-02 03:08:13
问题 So when I was watching this video from BUILD I thought it's gonna be easy... But I can't seem to get the tile of my WP Silverlight 8.1 app to change by doing the following. const string xml = "<tile>" + "<visual>" + "<binding template='TileSquareText01'>" + "<text id='1'>testing 123</text>" + "</binding> " + "</visual>" + "</tile>"; var xmlDoc = new XmlDocument(); xmlDoc.LoadXml(xml); var tileNotification = new TileNotification(xmlDoc); TileUpdateManager.CreateTileUpdaterForApplication()

New Live tiles don't work in Windows Phone Silverlight 8.1 apps?

好久不见. 提交于 2020-02-02 03:08:07
问题 So when I was watching this video from BUILD I thought it's gonna be easy... But I can't seem to get the tile of my WP Silverlight 8.1 app to change by doing the following. const string xml = "<tile>" + "<visual>" + "<binding template='TileSquareText01'>" + "<text id='1'>testing 123</text>" + "</binding> " + "</visual>" + "</tile>"; var xmlDoc = new XmlDocument(); xmlDoc.LoadXml(xml); var tileNotification = new TileNotification(xmlDoc); TileUpdateManager.CreateTileUpdaterForApplication()

WinRT: how to save WriteableBitmap to localfolder

孤街醉人 提交于 2020-02-01 07:26:04
问题 How to save a WriteableBitmap to localfolder using C# in WinRT? 回答1: You can check WinRT XAML Toolkit for a set of extension methods to do exactly what you need: http://winrtxamltoolkit.codeplex.com/SourceControl/changeset/view/0657c67a93d5#WinRTXamlToolkit%2fImaging%2fWriteableBitmapSaveExtensions.cs 回答2: Here are bits and pieces of the answer var bitmap = new WriteableBitmap(width,height); var stream = bitmap.PixelBuffer.AsStream(); than you can get IOutputStream from Stream to write the

How to properly wait for asynchronous WinRT callback functions to stop?

一曲冷凌霜 提交于 2020-01-25 21:52:08
问题 I asked a similar question before but the answer there did not satisfy my requirement. Let me explain. I call the following code from a DLL to perform a WinRT operation on Windows 10 from a Windows Store app. The code uses WRL: #include <Windows.Services.Store.h> #include <wrl.h> auto onAppLicCompletedCallback = Callback<Implements<RuntimeClassFlags<ClassicCom>, IAsyncOperationCompletedHandler<StoreAppLicense*>, FtmBase>>( [](IAsyncOperation<StoreAppLicense*>* operation, AsyncStatus status) {

Allow Pointer events to bubble from Button clicks

故事扮演 提交于 2020-01-25 15:18:32
问题 What steps to I need to take to enable Pointer events such as PointerPressed and PointerMoved to fire on a Container element when Buttons inside the container are clicked? 回答1: The approach I ended up taking was to add event handlers to the container, and set the bool handledEventsToo parameter to true. mainPage.AddHandler(PointerPressedEvent, new PointerEventHandler(pointerPressedHandler), true); mainPage.AddHandler(PointerMovedEvent, new PointerEventHandler(pointerMovedHandler), true); This