windows-runtime

Windows Runtime Component + Azure Tables

廉价感情. 提交于 2020-01-17 12:25:10
问题 I want to use Azure tables in my Windows Runtime Component project. It is a Background Agent for my Windows 8.1 RT app. When I try to define my TableEntity derived class: public class CustomEntity : TableEntity I get this error: Windows Runtime class 'CustomEntity' has an invalid base type 'Microsoft.WindowsAzure.Storage.Table.TableEntity'. Classes must derive either from System.Object or from a composable Windows Runtime Class. Implementation inheritance is not allowed. I also tried deriving

Windows Runtime Component + Azure Tables

ⅰ亾dé卋堺 提交于 2020-01-17 12:25:10
问题 I want to use Azure tables in my Windows Runtime Component project. It is a Background Agent for my Windows 8.1 RT app. When I try to define my TableEntity derived class: public class CustomEntity : TableEntity I get this error: Windows Runtime class 'CustomEntity' has an invalid base type 'Microsoft.WindowsAzure.Storage.Table.TableEntity'. Classes must derive either from System.Object or from a composable Windows Runtime Class. Implementation inheritance is not allowed. I also tried deriving

Windows Phone ListView Binding

怎甘沉沦 提交于 2020-01-17 08:09:18
问题 I am trying to create a ListView of items and to be able to delete them. Here is my code. I can't get the list of items to display. I didn't find a simple example of binding ListViews so i can understand the exact concept. Can you tell me what am i doing wrong ? PS. myListOfItems is a list with strings. The project is WP 8.1 WinRT. public class MedClass { public string medName { get; set; } } public class MedClassRoot { public List<MedClass> medNames { get; set; } } public sealed partial

DatagramSocket event MessageReceived dosen't trigger

半世苍凉 提交于 2020-01-17 05:39:04
问题 I have a Console Udp Server based on the System.Net.Sockets UdpClient from which I'm sending Udp Packets to the Ip of my Windows Phone 8.1. The client on the phone uses Windows.Networking.Sockets DatagramSocket, my problem is that the event MessageReceived dosen't happen. Source for DatagramSocket:https://msdn.microsoft.com/library/windows/apps/br241319 回答1: Took me ages to find the solution since it's pretty dumb: The DatagramSocket only starts to receive after it has sent something. (At

DatagramSocket event MessageReceived dosen't trigger

怎甘沉沦 提交于 2020-01-17 05:38:08
问题 I have a Console Udp Server based on the System.Net.Sockets UdpClient from which I'm sending Udp Packets to the Ip of my Windows Phone 8.1. The client on the phone uses Windows.Networking.Sockets DatagramSocket, my problem is that the event MessageReceived dosen't happen. Source for DatagramSocket:https://msdn.microsoft.com/library/windows/apps/br241319 回答1: Took me ages to find the solution since it's pretty dumb: The DatagramSocket only starts to receive after it has sent something. (At

GridViewItem with height greater than its GridView height

僤鯓⒐⒋嵵緔 提交于 2020-01-16 19:29:28
问题 I have GridView with fixed width and height of items. But I want some items to exceed that fixed height to contain more data. 1 I don't want to increase height of GridView - this will cause decreasing of the touch area of other controls that lie under GridView. Is there any solution? Thank you! Concept 1 回答1: I understand that you want variable sized tiles in your grid view just like in the start screen? If so then this article should help http://blogs.u2u.be/diederik/post/2012/03/07

Windows Phone 8.1 WinRT map control Release Handlers

巧了我就是萌 提交于 2020-01-16 12:10:09
问题 I want know when map control from toolbox, release for user drag or some similar gesture. I try all handlers DragLeave , LostFocus etc but never run. I use following code on Map_CenterChanged event handler. My app add pushpin center on app and every time center changed add another DraggablePin where follow center position everytime. Map.CenterChanged += Map_CenterChanged; if (Map.Children.Contains(firstpin)) Map.Children.Remove(firstpin); Map.DesiredPitch = 0; MapControl.SetLocation

AppContainer Integrity Level

↘锁芯ラ 提交于 2020-01-16 05:32:07
问题 I'm currently trying to understand the mechanics behind the AppContainer that is used to sandbox WinRT applications. I've understood that AppContainers have their own integrity level, that blocks any read and write attempts to assets with a higher integrity level. But why can't those apps then don't access the data of other apps running with in the same integrity level? And how does the access to objects work when the app got the corresponding capability? I assume for example, that the camera

When does a PPL task execute on the UI thread?

感情迁移 提交于 2020-01-16 04:14:08
问题 When calling create_task is there a way to ensure that the task doesn't run on the UI thread? I want to be sure I'm not inadvertently calling wait inside a task that somehow managed to execute on the UI thread. 回答1: The create_task function won't spontaneously jump onto the UI thread: if you don't call it from the UI thread it won't execute there. You need to explicitly call the Dispatcher to get back. An apartment aware task (one which returns IAsyncAction or IAsyncOperation) will continue

Scroll WinRT ListView to particular group

孤街浪徒 提交于 2020-01-15 19:18:33
问题 I have a ListView and grouped items inside of it. User has different ways of navigating into the page, and according to the way he navigates, I wish to have a certain group in view when the page opens. I tried setting these: itemGridView.ScrollIntoView(....); itemGridView.SelectedIndex = ....; itemGridView.SelectedItem = ....; where itemGridView is the name of the ListView, but none of that seems to work. Any help appreciated, thanks. 回答1: You could do some visual tree traversing to find the