windows-runtime

How to register for Win8 periodic tile notifications?

馋奶兔 提交于 2019-12-09 06:39:49
问题 I am working on a Win8-UI-App (previously called Metro...) and trying to implement Periodic (Documentation for different methods) Tile Updates (Live Tiles) for the first time. I found a couple of very good resources on the internet and was able to do it. Unfortunately the question of where I should register for the notifications remained unsolved: Do I have to register for Notifications every time the app starts (e.g. in the App.xaml.cs OnLaunched() Method)? - Or is there an other, more

Converting a string HEX to color in Windows Phone Runtime c#

风格不统一 提交于 2019-12-09 05:56:21
问题 I am working on a windows phone game, and I got stuck when I wanted to convert a HEX string into Color. On windows phone 8 silverlight it is not a problem but I cannot find a solution in runtime because it doesn't include Color.FromArgb, or Color.FromName functions. Does somebody have a function that converts string HEX to Color? Thanks. 回答1: Color.FromArgb is in the Windows.UI namespace. There isn't a Color.FromName method, but you can use the Colors.< name > properties or you can use

What/Why does WinRT Create New Clean Layout Randomly

自古美人都是妖i 提交于 2019-12-09 05:18:38
问题 So occasionally and seemingly randomly when developing WinRT apps Visual Studio goes through a lengthy process that starts with "Creating a new clean layout..." I would love more information about the build and deployment process involved with WinRT apps. I understand the concept of creating an application that runs in a sort of sandbox environment, but I'm looking for information about that sandbox environment. Also (this may sound silly) but what is different about the executable created

How to disable a Grid (Panel) in XAML Metro app?

我怕爱的太早我们不能终老 提交于 2019-12-09 03:51:11
问题 I want to emulate modal dialog in XAML Metro App. So I was going to set .IsEnabled = false on all controls apart from the one which will pose as a modal dialog. Apparently IsEnabled not in Grid not in Panel not in FrameworkElement. How to disable it not making a user control out of it? I guess Sinofsky cut so many corners that the whole thing is now more like an Escher staircases. I am loosing my faith. Please help 回答1: Sorry, I am a little late to the party... Here is how I created a modal

Not showing items with Visibility=Collapsed in Windows 8.1 GridView

萝らか妹 提交于 2019-12-09 02:47:41
问题 I have a Windows 8.1 application with a GridView bound to a custom (sortable, deduplicated) observable collection. In this collection, I do some heavy filtering and setting an IsHidden flag for every item. In the data template for the item, there is a condition making the item collapsed if IsHidden flag is set to true. <Grid Width="160" Height="280" Visibility="{Binding IsHidden, Converter={StaticResource InvertedBooleanToVisibilityConverter}}"> This approach works in Windows Phone 8.1 XAML,

Local database storage for WinRT/Metro applications [closed]

坚强是说给别人听的谎言 提交于 2019-12-09 02:16:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I am trying to find an API within WinRT that will allow me to create a local database that can be used to store data for an occasionally connected application. I am looking for something like SQL Compact Edition. I have seen various messages on various boards indicating that there

How to build OpenSSL for WP8?

左心房为你撑大大i 提交于 2019-12-09 01:50:30
问题 How to build OpenSSL for WP8? AFAIK, we must replace winsock.h by winsock2.h because WP8 only supports winsock2.h . And maybe we must replaces code to target WinRT architecture on WP8 (ThreadPool, ...) The caveat is that we must build OpenSSL as WP8 static library, so that the output lib can be wrapped by WP8 runtime component, right ? 回答1: here is what you have to do, go to this link and download the VSbuild, now put that into the source files downloaded from the OpenSSL website, the folder

Handling Swipe Guesture in Windows 8 Grid

给你一囗甜甜゛ 提交于 2019-12-08 22:52:47
问题 I am trying to implement a custom control which consists of a grid with some canvas elements as children , When a swipe action is made on the grid , I am intended to preform some operation with the canvas elements . I am unable to handle the swipe for the grid , i have posted the same in the msdn - win8 Dev forum 回答1: I was in the same boat as you guys, since there was no samples out there on how this was done, but after perusing and scrutinizing the MSDN documentation on how a swipe gesture

Windows Phone background task stops prematurely

与世无争的帅哥 提交于 2019-12-08 19:12:18
问题 I'm developing a WP8.1 SL app which uses background tasks (not agents!). My task is triggered by a TimerTrigger - once every 30 minutes (which I believe is the minimum interval for Windows Phone, right?). It is doing a lot of work, and for some reason, sometimes it gets interrupted - that is, it stops in the middle of it. The way I know it's in the middle of it is because I log what's happening and the task's work is basically the same every time. I deployed the app to my device yesterday to

How do you programatically scroll to the bottom of a TextBox in WinRT?

为君一笑 提交于 2019-12-08 18:39:53
问题 I am writing a simple application for WinRT and I am having trouble figuring out a way to automatically scroll to the bottom of a TextBox in my code. I am writing log information to a TextBox and would like it to scroll so that the newest entries are visible in the box, but nothing seems to work. Below are a few things I've tried: Place the TextBox in a ScrollViewer: this.txtLog.Text = this.txtLog.Text + line + "\r\n"; ScrollToVerticallOffset(scrollView.ScrollableHeight); Select the last data