windows-store-apps

Where has StringComparison.InvariantCultureIgnoreCase gone?

家住魔仙堡 提交于 2019-12-21 07:08:55
问题 I'm porting C# code to a Windows Store App. To my surprise the following code does not work anymore: someString.Equals("someOtherString", StringComparison.InvariantCultureIgnoreCase) InvariantCulture and InvariantCultureIgnoreCase have been removed(*) from StringComparison . Why? And how do I replace it? Edit: (*) Strictly speaking, it has not been removed , it is merely not available for Windows Store Apps. The result is the same: You cannot use it. 回答1: Those specific options have not gone

Issue with multiselect combobox control in Windows 8

六月ゝ 毕业季﹏ 提交于 2019-12-21 06:39:18
问题 I am creating a multiselect combobox in Windows 8 as shown in below image: For this I have created custom control code for which is mentioned below: The problem with below code is that on selecting all the all items are not selected Selected items are not displayed in textbox How can I fix that? XAML: <UserControl x:Class="App5.MultiSelectComboBox" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:App5"

Line numbers in exception stack on winRT

蹲街弑〆低调 提交于 2019-12-21 05:42:09
问题 We have a project for windows store app using WinRT (and XAML, C#). The problem is, that when some exception is thrown and I log the exception using Debug.WriteLine(ex); , there are no line numbers, so I do not know, where actually was the exception thrown. I have of course DEBUG configuration with "full" symbols set in Project Properties > Build > Advanced > Debug Info. At first I thougth that it must be something in our project. HOwever, when I downlaoded some samples from microsoft and put

How can I determine which items in a GridView that are visible in the current scroll window?

你说的曾经没有我的故事 提交于 2019-12-21 05:41:28
问题 I have a GridView in my main app page and I want to do some background processing for the items that are currently in view for the user (high priority), and then of course do the other items too (low priority). I can access the ScrollBar and the ScrollViewer, but none of them appear to tell me which of my items are in the current scroll window. I could try to hack this in, but it gets tricky because the number of row/columns change based on the size of the scroll region. http://msdn.microsoft

How can I determine which items in a GridView that are visible in the current scroll window?

六眼飞鱼酱① 提交于 2019-12-21 05:41:02
问题 I have a GridView in my main app page and I want to do some background processing for the items that are currently in view for the user (high priority), and then of course do the other items too (low priority). I can access the ScrollBar and the ScrollViewer, but none of them appear to tell me which of my items are in the current scroll window. I could try to hack this in, but it gets tricky because the number of row/columns change based on the size of the scroll region. http://msdn.microsoft

How to deploy a metro app to windows 8 device/Tablet?

岁酱吖の 提交于 2019-12-21 05:00:41
问题 For testing an application, I have deployed my metro app by creating a app package which is provided in vs2012. I have deployed the package by opening using the PowerShell, but now I want to deploy the metro app in a Windows 8 device (tablet) for testing it, how can I do this? Will there be a PowerShell option available in device also? (to deploy the app) Are there any other ways of deployment? 回答1: i have used this to sideload apps for testing onto other devices including SurfaceRT http:/

Windows 8 Store certification for a Windows Desktop App written in Java

戏子无情 提交于 2019-12-21 03:35:09
问题 I have a program that is written in Java and is wrapped by an installer. It requires Java 1.7. If I run the certification with "Windows App Certification" it passes with one warning for the case Java 1.7 is already installed. But if Java 1.7 is not installed the certification stops, as the installer will ask for the Java installation. Does someone know if it is possible to add this Java app to the Windows store? Unfortunately I haven't found any information on that. I could just go for the

What are .ni.dll and .ni.exe files in a minidump?

扶醉桌前 提交于 2019-12-20 23:28:08
问题 I got a minidump from the Windows Store Apps submission process (sent by a reviewer) because of a crash in my app. I am having problems loading the symbols for my app, because the error occurs inside App.ni.exe , a file which I don't know where comes from. My app only has a App.exe (and some DLLs), but the dump keeps referring to .ni.dll and .ni.exe . These files are nowhere to be found in my .appx or .appxsym files. My app is built for each specific platform (x86, x64, and ARM). It is the

Windows store app ResourceLoader at design time

跟風遠走 提交于 2019-12-20 20:35:42
问题 I've started creating a Windows Store App for Windows 8.1 and now I encountered a problem concerning localization. I would like to display a string resource from a .resw file at design time, but every attempt to do so has failed, even though it works at runtime. When using the x:Uid attribute, I still have to supply the Text property (i.e. for a TextBlock) and I don't like to write the text twice. I also tried creating a property for the string on the viewmodel: public string Title { get {

How to get the size (in pixels) of a font in WinRT app?

微笑、不失礼 提交于 2019-12-20 06:25:32
问题 As titled, in .NET 4.5 we have a font class which can give you the Height in pixes, but how about in WinRT? Is there any API that I can use to get the pixels it uses? 回答1: Since not even the FormattedText class exists in the .NET API for Windows Store Apps my workaround is to use a TextBlock: TextBlock dummyTextBlock = new TextBlock(); dummyTextBlock.FontFamily = new FontFamily("Tahoma"); dummyTextBlock.FontSize = 18; dummyTextBlock.FontStyle = FontStyle.Normal; dummyTextBlock.FontWeight =