windows-store-apps

The DataTemplate in HubSection doesn't get full height

北城以北 提交于 2019-12-12 15:48:37
问题 I have the following code: <HubSection x:Name="modules_section" ...> <DataTemplate> <StackPanel Orientation="Vertical"> .................................. How can I get the StackPanel to take the full height of the HubSection? VerticalAlignment="Stretch" doesn't do the job. I also tried to use binding via <StackPanel Height={Binding ElementName=modules_section, Path=ActualHeight}" ...> but the Actualheight of the hub section seems to be 0 (I also tried to set it in code-behind and debugged to

WinRT timed logout

泪湿孤枕 提交于 2019-12-12 15:41:45
问题 I am developing a WinRT app. One of the requirements is that the app should have a "timed logout" feature. What this means is that on any screen, if the app has been idle for 10 mins, the app should logout and navigate back to the home screen. The brute force way of doing this obviously would be to hook up pointer pressed events on every grid of every page and resetting the timer if any of these events is fired but I was wondering if there was a more elegant and more reliable way of doing

How to get thumbnail from a video in Windows Store app?

走远了吗. 提交于 2019-12-12 15:30:32
问题 I am currently working on an app in which there is feature to record video. I am aware about how to record the video and save it in localFolder of app. My problem is that I need to show a thumbnail to user after he records the video. So, for that I want to extract the first frame from the recorded video. The final video is stored in StorageFile object but I am not aware how to get image from StorageFile object. Please can anyone suggest with some sample code how can I do that. I am using

Can I “add” static methods to existing class in the .NET API?

会有一股神秘感。 提交于 2019-12-12 13:21:09
问题 I want to build a Windows Store class library using source code from a regular .NET Framework class library . Ideally, I do not want to modify the original source code files. In some of the source code files from the .NET Framework library , static members are used from a class that is defined in both the regular .NET Framework API and the .NET for Windows Store apps API, but where only a subset of the .NET Framework members are available for Windows Store . One specific example is System.IO

How to bind absolute coordinates of a shape/control inside Canvas

非 Y 不嫁゛ 提交于 2019-12-12 10:24:06
问题 On a Windows 8.1 Metro app, I'm trying bind a collection of shapes from my view model into MainPage.xaml. Each shape will have a Left , Top and also a PathData which will be a RectangleGeometry that contains the rectangle that I want drawn inside the canvas at the corresponding position. This is the XAML : <Grid Background="Black"> <ItemsControl ItemsSource="{Binding Shapes}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Canvas /> </ItemsPanelTemplate> </ItemsControl.ItemsPanel>

Specifying a package identity name with Desktop App Converter

心已入冬 提交于 2019-12-12 10:23:02
问题 I am using DesktopAppConverter.exe to create an appx for Windows Store. I get the following errors on upload to MS: Invalid package identity name: XXXX (expected: 184YYY.XXX) Invalid package family name: XXX_eqm6jq3xyprpt (expected: 184YYY.XXX_eqm6jq3xyprpt) How can I specify a package identity name anf family name, I am currently using the command: DesktopAppConverter.exe -Installer C:\input\XXX.exe -InstallerArguments /VERYSILENT -Destination C:\output -PackageName "XXX"

How to get Windows app store dev center data

允我心安 提交于 2019-12-12 09:42:49
问题 I want to know if there is a way to get details of applications posted by a developer in the windows phone store. I'm looking for mainly these details: app downloads, app crash count, user reviews, user ratings. I have a developer account and want to extract above mentioned details for my own submitted apps from dev center. The store does not provide any REST APIs to do it. Is there an easy way to do it. 回答1: Although this is an old question, there is meanwhile a better answer: Sinde 03/2016

listview visual state manager in item template (WinRT, Metro, XAML)

亡梦爱人 提交于 2019-12-12 08:55:02
问题 I am trying to get a listview to display a list of items made up of textblocks... when the listview item is clicked i would like to show instead a list made up of textboxes... Below is what i have come up with, it does not work. I have two grids within the templates and was hoping to simply show and hide the grids depending on if the listview item is selected. Where have i gone wrong? I ripped these visual states from the listview's template itself but i must admit im not sure how they work,

How do I get crash logs and stack traces from WinRT apps written in C#?

Deadly 提交于 2019-12-12 08:44:10
问题 I have just started working on a Windows Store App written in C#, it has not yet been published to the Windows Store. When I give a debug build of the app being developed to my testing team and it crashes where can they find the crash log and stack trace? Do I need to do anything when building my application? I'm looking for the standard solution, not a third party library or something that sends me reports from end-users. I'm coming from an Android world where the ADB logcat always contains

Upgrading database on app update

风流意气都作罢 提交于 2019-12-12 08:16:59
问题 I am developing a Windows Store App that uses SQLite for Windows Runtime Extension and sqlite-net library to store data in a local SQLite database. This database is created in Windows.Storage.ApplicationData.Current.LocalFolder.Path path. Everything works like it should and I guess I will not have problems when submiting. Question 1 But what will happen when I change the app, submit again and the user updates it? Will database file be deleted? Will the user lost his data? Question 2 Will I be