windows-8

Grid.IsSharedSizeScope equivalent for Windows 8

坚强是说给别人听的谎言 提交于 2019-12-07 13:38:40
问题 Is there any kind of simple (non-custom-coded) equivalent to WPFs Grid.IsSharedSizeScope in Windows 8/RT XAML? I have ListViewItem s that are divided into 3 horizontal sections and those 3 columns need to be aligned (to the widest width each) to all the bound ListViewItem . 回答1: Since that was for wpf I found a Metro solution to the problem. Ill paste the entire code in here. :) <Page.Resources> <DataTemplate x:Key="DataTemplate1" > <Grid HorizontalAlignment="Stretch" VerticalAlignment=

appxupload package not being generated. Only test package is being generated

余生颓废 提交于 2019-12-07 12:46:25
问题 I am developing a universal windows app. When I try to create package using Store->Create App packages, it is creating only test packages. In AppPackages directory, I can find only one folder with _test. How do I ensure that .appxupload package gets created that can be uploaded to windows store. 回答1: Look in your Projekt.csproj.user file if AppxPackageIsForStore is set to true. <PropertyGroup> <ProjectView>ShowAllFiles</ProjectView> <AppxPackageIsForStore>True</AppxPackageIsForStore>

Why did my XAML suddenly crash?

你。 提交于 2019-12-07 12:21:02
问题 I added a "Basic Page" to my project in a folder ("View") that I created within the project. At first all was well, but "all of a sudden" the design view failed and displayed: System.ObjectDisposedException Safe handle has been closed This is the XAML (I hadn't changed a thing in the default XAML generated yet): <common:LayoutAwarePage x:Name="pageRoot" x:Class="TimeAndSpaceLines.View.SectionPage" DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}" xmlns="http:/

How to gain access to KnownFolders.DocumentsLibrary

主宰稳场 提交于 2019-12-07 12:15:49
问题 I'm trying to save a string of user inputs to a file in a windows runtime app. However I'm getting the error System.UnauthorizedAccessException . How do I gain access to this Library? static private async Task WriteDataToFileAsync(string fileName, string content) { byte[] data = Encoding.Unicode.GetBytes(content); var folder = KnownFolders.DocumentsLibrary; var file = await folder.CreateFileAsync(fileName, CreationCollisionOption.ReplaceExisting); using (var s = await file

How to download and store an image using Windows.Web.Http?

被刻印的时光 ゝ 提交于 2019-12-07 12:14:47
问题 How do I download and store a jpeg image from the internet in a Windows Store App with Windows.Web.Http? The problem that I am facing is that I don't know what Get…Async and Write…Async method I must use for an image? It is very different with files, than with strings. Only Windows.Web.Http ! No third-party solutions ! If you suggest something else, please use the comment section, not the answer. Thank you! … using Windows.Storage; using Windows.Web.Http; Uri uri = new Uri("http://image.tmdb

Windows 8 - Custom Live Tile

纵然是瞬间 提交于 2019-12-07 11:53:35
问题 We are developing an app for Windows 8 in C#. Our app involves drawings the user creates, and we'd like to incorporate their drawings into the live tile. I have found examples of setting text and pictures as your app's live tile. Is there a way to do custom stuff to render lines, etc.? Or is the only way to do what we need by rendering a PNG out to our app's AppData directory? 回答1: You will need to render a PNG or JPG into the apps data directory. The live tile has a fixed number of pre

Can't Receive UDP Windows RT

僤鯓⒐⒋嵵緔 提交于 2019-12-07 10:29:20
问题 I'm writing a Windows Store/Metro/Modern/RT app for Windows 8/RT that needs to receive UDP packets on port 49030, but I can't seem to receive any packets. I've followed the tutorial on using DatagramSocket to the letter, and I'm getting nothing. I know my sender program is sending data, as I can see it on wireshark. I also wrote a test C# console app that uses the regular BSD socket API (System.Net.Sockets.Socket) that properly receives the data over UDP. This is the code that works: Socket s

How to map sqlite tables and columns to c# classes in windows 8

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 10:23:06
问题 I'm building an my first app (I'm a complete noob) in C# for windows 8. And I have some classes that I have created. When the app runs it needs to read data from a sqlite database. I have a class for each table, but I don't know how to map each class property to its respective column in the database. I can't seem to find any info and all the stuff I've seen seems to map them automatically or doesn't mention how it's done e.g. public class Person { [PrimaryKey, AutoIncrement] public int Id {

Windows 8 Metro and Google Analytics

旧街凉风 提交于 2019-12-07 10:21:56
问题 Will it be possible to use the Google Analytics JavaScript library (https://developers.google.com/analytics/devguides/collection/gajs/) for the Windows Metro JavaScript based application to trace views accessed by user? 回答1: In general, if a JavaScript library you want to use is on a CDN or a server external to your app, the answer is no, as Windows apps written with HTML/JavaScript cannot load external JavaScript libraries...if you try, a security exception will occur. Many libraries will

List of assemblies in the .NET for Windows 8 profile

淺唱寂寞╮ 提交于 2019-12-07 10:17:13
问题 I am looking for the list of assemblies in the ".NET for Windows 8" profile. This is the profile used for WIndows 8 Metro-style applications, and like Silverlight doesn't use the full .NET framework. 回答1: .NET for Metro style apps — list of namespaces Converting your existing .NET Framework code — changes to the various APIs. 回答2: I don't see any list currently... and WinRT is expected to change alot till the official release in 2012... current information about assemblies/not available in