windows-store-apps

How do I auto increment the package version number?

放肆的年华 提交于 2019-12-12 08:00:06
问题 I realize that the build/revision number of the assembly can be auto incremented by changing [assembly: AssemblyVersion("1.0.0.0")] to [assembly: AssemblyVersion("1.0.*")] in the AssemblyInfo.cs file. But how do I auto-increment the version number defined in Package.appxmanifest? That is, the version number accessible through: Windows.ApplicationModel.Package.Current.Id.Version I'm using Visual Studio 2013. Edit: Should not be flagged as duplicate, I'm asking about Package version and not

This app failed to launch because of an issue with its license

随声附和 提交于 2019-12-12 07:44:26
问题 I'm happily in the middle of coding then I try to launch my app in debug mode but I get this error message. Unable to activate Windows Store app This app failed to launch because of an issue with its license The app was launching fine a few minutes earlier so this came as a surprise. I tried restarting Visual Studio but doing so did not help. I got the annoying "renew your developer license" dialog yesterday I think. It had renewed without issue. How do I make this error message go away so i

Choosing between XAML's ListView and GridView in WinRT

喜你入骨 提交于 2019-12-12 07:39:44
问题 The GridView and the ListView in XAML seem to be the same control. How does a developer choose between the two? 回答1: The GridView control typically scrolls horizontally. Also, you will see some native spacing between items that is greater than that in the ListView. This spacing is there because of the intent for how the controls will be used in Windows Store apps. (read on) Like the ListView it inherits from ItemsControl. Like the ListView groups using GroupStyle. Like the ListView it

Prevent WinRT App from entering suspend state in a Line-of-Business app

只愿长相守 提交于 2019-12-12 06:19:18
问题 I'm developing a line of business app for Windows 8.1, that is, I am not deploying through the Windows Store and will be able to control all of the features of both the OS and hardware this app is being deployed on. Because this app is working as the UI in a real-time situation I would prefer if I could ignore the life-cycle events and not have the app suspend or terminate at the whim of Windows 8. Does anyone know of a way to do this? I have seen some older answers, such as this one and this

Pass parameters to IBackgroundTask

徘徊边缘 提交于 2019-12-12 05:59:46
问题 I am implementing a windows store application for windows rt. It uses a backgroundtask to update its tile. I want to be able to configure the backgroundtask and the application to use the same urls when performing work, so i want to use a unified or centralized configuration. Right now i am using some *.resw files to configure certain aspects in my Windows Store application. How can i pass this configuration to the background task? 回答1: The easiest way is using ApplicationData.Current

Why am I being told a class does not exist in my namespace when it does?

自闭症网瘾萝莉.ら 提交于 2019-12-12 05:57:51
问题 I am trying to follow the article here to add a custom control to my project so that I can call it ("promptForPhotosetName") like so: Popup popTart = new Popup(); popTart.Child = new promptForPhotosetName(); popTart.IsOpen = true; I added a Custom Control to my project based on Templated Control. My custom control class (which IS in the Photrax namespace) contains this constructor: public promptForPhotosetName() { this.DefaultStyleKey = typeof(promptForPhotosetName); } I have this in \Themes

My application crashed when snapped with items in listviews

别说谁变了你拦得住时间么 提交于 2019-12-12 05:24:25
问题 So, im currently working on a project using C#/XAML for a Windows 8 Store App and I've encountred a problem. When the user navigates to a Page a ListView with some Controls shows up. Then when the user decides to snap the page my application crashes and shows this: In my IntelliTrace this shows up and I press an Exception. It navigates me to this code. /// <summary> /// Implement this partial method to configure the service endpoint. /// </summary> /// <param name="serviceEndpoint">The

Windows 8 User Control Navigation issue

帅比萌擦擦* 提交于 2019-12-12 05:07:36
问题 My requirement is that I have to add one common usercontrol in all my pages. The usercontrol will have 5 buttons. When user presses on one button navigation should happen to that button related page. I'm handling same thing in windows phone with following code: (Application.Current.RootVisual as PhoneApplicationFrame).Navigate( new Uri(PageUrls.INCOMEEXPENCE_PAGE, UriKind.Relative)); Now I want this in my window 8 application. Please help me on this. 回答1: It will be like this private void

How to automatically load previously used files on Windows Store app startup

▼魔方 西西 提交于 2019-12-12 04:54:17
问题 I've come across a scenario in my Windows Store app development that various websites indicate is not possible. Can someone please confirm if the following is possible in a Windows Store app and how it can be done programmatically? User taps on a "Load File" button to load a document, is presented with the standard Metro FilePicker , selects a document, and the file loads into the application for editing. The application somehow saves the path to this file or some other resource that would

How can I add a thumbnail image to a Bing Map pushpin's popup/flyout window?

六月ゝ 毕业季﹏ 提交于 2019-12-12 04:45:31
问题 I'm not certain about the terminology for the little window that pops out when you click a map marker/pushpin, but what I want to do with my Bing Map pushpin in this transitory window is display something like this when it is clicked/tapped: My Dog Spot - miPerroMancha.png { the thumbnail here } 5/29/2013 elAmadoDeFresno.png { the thumbnail here } 10/19/2014 IOW, the "popup" should display: The image description, if available, plus file name; otherwise, just the file name, The thumbnail