windows-runtime

Get unread emails from exchange in Windows 8 Store App

微笑、不失礼 提交于 2020-01-25 05:43:55
问题 I want to write an App (Windows Store App) which should display all my unread emails. I did my research at google and msdn but found nothing suitable. The problem is as follow, my development pc does not have any connection to a exchange server, so I had to write an app (C#/XAML) which should later on work: On every PC in the organisation Uses the default credentials of the user Displays the unread emails Is it possible to get these information (Emails) by asking the EWS? Is there a WinRT

How to check status of bluetooth in Windows Runtime?

天涯浪子 提交于 2020-01-25 03:55:30
问题 There are some odd ways, like checking for pair devices and catching exceptions to see it if is on or not. if ((uint)ex.HResult == 0x8007048F) { var result = MessageBox.Show("Bluetooth is turned off.\nTo see the current Bluetooth settings tap 'ok'", "Bluetooth Off", MessageBoxButton.OKCancel); } But I see there is a new BluetoothConnectionStatus api but don't know how to use it. How to check bluetooth status in Windows Phone Runtime apps? 回答1: It's probably something like this: using Windows

Remove padding from GridViewItem

点点圈 提交于 2020-01-24 21:09:27
问题 Does anybody know a way to remove all the padding from GridViewItem? I'm using very small items (not too small though, I exaggerated in the picture below) and there's some padding when selecting the items which makes it good really bad and I'd like to take it out. This is what I mean: The code for the image is this: <GridView Margin="120,80,0,0" SelectionMode="Multiple"> <GridView.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel Orientation="Horizontal" /> </ItemsPanelTemplate> <

How can I automatically show a tooltip if the text is too long?

安稳与你 提交于 2020-01-24 12:36:00
问题 In a Windows Store Application I have the following TextBlock: <TextBlock Text="Seriously long text for the purpose of showing tooltip" TextTrimming="CharacterEllipsis" /> How do I automatically show a tooltip when the text is too long to display without an ellipsis? 回答1: Here's my solution, based on this and this. First, create an attached property to enable auto tooltip: public static class TextBlockUtils { public static readonly DependencyProperty AutoTooltipProperty = DependencyProperty

How can I automatically show a tooltip if the text is too long?

℡╲_俬逩灬. 提交于 2020-01-24 12:33:14
问题 In a Windows Store Application I have the following TextBlock: <TextBlock Text="Seriously long text for the purpose of showing tooltip" TextTrimming="CharacterEllipsis" /> How do I automatically show a tooltip when the text is too long to display without an ellipsis? 回答1: Here's my solution, based on this and this. First, create an attached property to enable auto tooltip: public static class TextBlockUtils { public static readonly DependencyProperty AutoTooltipProperty = DependencyProperty

Have no page transition in Windows Phone runtime

我是研究僧i 提交于 2020-01-24 06:44:44
问题 I'm trying to disable Windows Phone runtime's default page navigation animation. All I could achieve, is to change it to either continuum, turnstile or slide, but I'd like the page to change instantaneously. So when I call this.Frame.navigate() it should navigate to the new page without any animation. In Silverlight, this was the default case, no page transitions out of the box. Now I can't get rid of them. The reason why I am trying to accomplish this, is because I'd like to add my own

How to send a simple message from WinRT Client( .NET 4.5) to Desktop Server(.NET 4.0) using Sockets?

大城市里の小女人 提交于 2020-01-23 17:49:09
问题 I am trying to make a Chat Client-Server application using C#. The Client will be a simple metro application (WinRT) and the server will be "oldfashioned" desktop application. Can you provide a simple code how to establish connection between the server and the client at first and then how to send a 'hello world' message from the Client to the Server. I am looking for solution for this problem from 3 days. I read almost anything about StreamSockets, TcpClient and sockets, and still cant handle

How to use ShareLinkTask namespace in Windows Phone 8.1?

左心房为你撑大大i 提交于 2020-01-21 03:47:07
问题 I am developing an app and i am trying to share my app, in Windows Phone 8 Siverlight and Windows Phone 8.1 Silverlight, i used these codes: ShareLinkTask shareLinkTask = new ShareLinkTask(); shareLinkTask.Title = "Code Samples"; shareLinkTask.LinkUri = new Uri("http://code.msdn.com/wpapps", UriKind.Absolute); shareLinkTask.Message = "Here are some great code samples for Windows Phone."; shareLinkTask.Show() But in Windows Phone 8.1 using Windows Runtime, when i use these codes, it reports an

Waiting from a desktop app for events originating from a metro app and vice versa

心不动则不痛 提交于 2020-01-17 14:59:28
问题 We have a metro app and we want to test certain issues that may come up in the app due to multiple operations going on in async. So basically our plan is to have a test app (preferably a desktop app) which can wait on certain events generated from within the metro app.We also want this to be bidirectional that is our desktop test app also generates certain events on which the metro app will wait (We will inject that part in the metro app code).This way we hope to generate more scenarios. The

Waiting from a desktop app for events originating from a metro app and vice versa

南笙酒味 提交于 2020-01-17 14:57:27
问题 We have a metro app and we want to test certain issues that may come up in the app due to multiple operations going on in async. So basically our plan is to have a test app (preferably a desktop app) which can wait on certain events generated from within the metro app.We also want this to be bidirectional that is our desktop test app also generates certain events on which the metro app will wait (We will inject that part in the metro app code).This way we hope to generate more scenarios. The