windows-8.1

Windows 8 XAML possible bug - using images causes text controls to disappear

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 12:42:38
问题 I have a strange problem happening intermittently with my apps where textbox controls would disappear intermittently. I have narrowed the cause of this down to having image files (small logos etc) on my page. I have managed to create a simple project which contains an xaml page with an image and 2 textblocks (these are in grids). I have found on two test tablets that I can re-create the problem by going to task manager and creating a dump file for the running app. After I do this twice and

Windows 8 XAML possible bug - using images causes text controls to disappear

◇◆丶佛笑我妖孽 提交于 2019-12-25 12:42:10
问题 I have a strange problem happening intermittently with my apps where textbox controls would disappear intermittently. I have narrowed the cause of this down to having image files (small logos etc) on my page. I have managed to create a simple project which contains an xaml page with an image and 2 textblocks (these are in grids). I have found on two test tablets that I can re-create the problem by going to task manager and creating a dump file for the running app. After I do this twice and

How to bind a ListView with SelectionMode multiple to achieve MVVM using Behaviors SDK in Windows 8.1

这一生的挚爱 提交于 2019-12-25 06:21:19
问题 I have a Windows 8.1 application with a ListView with SelectionMode multiple(making the ListView allow the user to select multiple entries) I am trying to use Behaviors SDK from Microsoft <DataTemplate x:Key="DataItemTemplate"> <TextBlock Text="{Binding Name}" Margin="10,0,0,0"/> </DataTemplate> <ListView ItemsSource="{Binding Data}" SelectionMode="Multiple" ItemTemplate="{StaticResource DataItemTemplate}"> <Interactivity:Interaction.Behaviors> <Core:EventTriggerBehavior SourceObject="

MSVC2013 - Entry Point Not Found

◇◆丶佛笑我妖孽 提交于 2019-12-25 05:34:11
问题 I recently installed the Qt add-inn for visual studio 2013. When I build a project in either Qt Creator or Visual Studio using MSVC2013 it builds without errors, but can only be run from inside the IDE. If I try to run it by clicking the .exe, it gives an error: "The procedure entry point ?qt_metacast@QMenuBar@@UAEPAXPBD@Z could not be located in the dynamic link library". From the research I have done online, I found that it could be something to do about adding the correct .dll files in my

GridView displays first element different than all others - XAML, Win8.1, WinRT

让人想犯罪 __ 提交于 2019-12-25 04:28:14
问题 I'm using GridView in my Universal Apps project for display list of items. Each item is a User Control. First element always is rendered different than all others elements at the list! How to fix it? <GridView Grid.Row="1" x:Name="CategoriesGridView" Margin="120,20,0,20" SelectionMode="None" IsItemClickEnabled="False" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ItemsSource="{Binding CategoriesCollection}" ItemContainerStyle="{StaticResource GridViewItemStyle}"> <GridView.ItemTemplate>

Deploy files in the localState folder during installation of a store app

落爺英雄遲暮 提交于 2019-12-25 03:26:10
问题 I am building an app for windows store and I need some default and example data to be in the localstate folder ( Windows.Storage.ApplicationData.current.localFolder ) when the app run the first time. The folder and files structure is a bit complex and I tryed to copy the files at the start of the application, but I can't manage that way. Is it possible to have files being copied automatically from the installation folder to the localstate folder during the store app installation? 回答1:

How to get crash dump in Windows 8.1 without using WinDbg

一世执手 提交于 2019-12-25 03:00:43
问题 I have a user who is running one of my apps, and he is seeing the app crash. How can I get a crash dump from his computer without asking him to use WinDbg? I have read other questions, and this was easy to do in Windows XP using Dr. Watson, but it seems that option is not available in Windows 8.1 anymore. Other answer points to c:\Users\[user]\AppData\Local\Microsoft\Windows\WER\ReportArchive directory, but I only see WER files there. Any idea how to get crash dumps? Thanks. 回答1: I wrote a

Text to Speech in Window Store App

 ̄綄美尐妖づ 提交于 2019-12-25 02:03:52
问题 In my application I am using Text 2 Speech using SpeechSynthesizer.In my code it is speaking with only 3 voices ( One male and two females).My application is for kids so i want voice just like kids how can i achieve that? CODE: var synth = new SpeechSynthesizer(); foreach (var voice in SpeechSynthesizer.AllVoices) { synth.Voice = voice; var text = "Hello World"; var stream = await synth.SynthesizeTextToStreamAsync(text); var me = new MediaElement(); me.SetSource(stream, stream.ContentType);

How can I add a button at the end of a listView?

瘦欲@ 提交于 2019-12-25 02:00:15
问题 Iwould like to add a button at the end of a listView in the same way as the bing apps do (see picture for example). I looked for hours in google and in the microsoft documentation but canøt find anything that can give me an idea of how to do this. Did anyone achieved this? thanks 回答1: If you run that app (Health & Fitness), then run Visual Studio and use Debug > Attach to Process, you can open the DOM Explorer and examine how that UI is implemented. What you'll see in this case is that it's

Retrieve Inner Text from WebView HTML in Windows/Windows Phone 8.1

▼魔方 西西 提交于 2019-12-24 23:25:43
问题 I'm creating a universal app and need to be able to pull plain text from a HTML page. I know that in WPF you can utilize the IHTMLDocument2 interface to achieve this. IHTMLDocument2 document = webBrowser1.Document as IHTMLDocument2; string data = document.body.innerText; Is there something similar for Windows Runtime? Thanks, 回答1: I would use something like HtmlAgilityPack. The HTML then becomes queryable through Linq. Then you can do something like this: HtmlDocument htmlDoc = webBrowser1