windows-runtime

MaxReceivedMessageSize in WCF Hosted Service in console application

烈酒焚心 提交于 2019-12-10 17:50:00
问题 I have a hosted WCF service in my console application as follow: static void Main(string[] args) { Uri baseAddress = new Uri("http://localhost:8080/Test"); // Create the ServiceHost. using (ServiceHost host = new ServiceHost(typeof(TestService), baseAddress)) { // Enable metadata publishing. ServiceMetadataBehavior smb = new ServiceMetadataBehavior(); smb.HttpGetEnabled = true; smb.MetadataExporter.PolicyVersion = PolicyVersion.Policy15; host.Description.Behaviors.Add(smb); host.Open();

Connecting to IMAP via StreamSocket in WinRT / C#

感情迁移 提交于 2019-12-10 17:46:33
问题 Trying to write a simple bit of code to connect to an IMAP server using StreamSocket. It reads the server connect response, but then it won't read anything else. private async void TCPTest(string hostName, string port) { status.Text = "start of TCPTest"; StreamSocket socket = new StreamSocket(); await socket.ConnectAsync(new HostName(hostName), port); string senddata = "A001 login uuu ppp"; status.Text += "\n first reading..."; DataReader reader = new DataReader(socket.InputStream); reader

What is the Windows RT on ARM native code calling convention?

我们两清 提交于 2019-12-10 17:27:34
问题 I couldn't find any documentation on the Windows RT on ARM calling convention used by Visual Studio C++. Is Microsoft using ARM's AAPCS? If Microsoft is using the AAPCS/EABI for Windows RT on ARM, is it also using ARM's C++ ABI (which is derived from the Itanium C++ ABI)? Maybe even the ARM exception handling ABI? Does the calling convention used by Windows RT on ARM differ from that used by other (embedded) ARM Windows variants? Is there a reliable way to detect Windows RT on ARM through

Is there any definitive documentation on the ontology of Windows Runtime (WinRT)?

非 Y 不嫁゛ 提交于 2019-12-10 17:18:27
问题 Is there any definitive documentation on the ontology of Windows Runtime (WinRT)? My primary concern is not the individual functions, but the overall architecture with respect too 'whats in' and 'whats out' and some notes on categorization. 回答1: maybe this? http://msdn.microsoft.com/en-us/library/windows/apps/br211377(v=vs.85).aspx 回答2: On the technical side WinRT uses the same metadata format as .NET, on the non-technical side (i.e. conventions) it looks like they reused many of the API and

How to set vertical offset for popup having variable height

天涯浪子 提交于 2019-12-10 17:10:02
问题 I am developing Windows 8 (I know Windows 8.1 has Flyout control) app using C#/XAML. I want to show a flyout menu like given below. Now originally it has total 10 options but based on context I am showing certain amount of options, so the usercontrols doesn't have fixed height, it's Auto. I followed this article to correctly appear flyout on appbar button click. But it's not useful for me because it's using usercontrol's height and for my case it's NaN . So any one has any better solution to

Could not load file or assembly 'System.Net.Http, Version=4.0.0.0'

丶灬走出姿态 提交于 2019-12-10 16:38:18
问题 I don't know what I did, but I may have removed System.Net.Http 4.0.0.0 from the GAC. I have a Windows Portable Library that targets WinRT that was compiling and working fine, and now I get the following error every time I try and run it Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.":"System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken

How to add / remove default tile / secondary tile for Windows phone 8.1 (universal) applications from code?

烂漫一生 提交于 2019-12-10 16:19:46
问题 n windows phone 8 silverlight application we can add / remove tiles from the code as below ShellTile.Create(tileUri, tileData, true); and we can get the tiles based on the Uri like below ShellTile.ActiveTiles.FirstOrDefault(x => x.NavigationUri.ToString().Contains("/")); How we can do similarly in windows phone 8.1 (universal) applications? I could not get clear information or samples. 回答1: When you want to create a tile, you can do it as in this answer: SecondaryTile tileData = new

How to send and receive push notifications for Windows Phone 8.1

浪尽此生 提交于 2019-12-10 16:15:04
问题 I followed Microsofts article about sending and receiving push notifications on Windows Phone 8.0: https://msdn.microsoft.com/en-us/library/windows/apps/hh202967(v=vs.105).aspx It works fine, but now we are creating a new Windows Phone 8.1 app and try to rewrite the same 8.0 code, but some classes are not available in WP 8.1. Please help me how we can implement these for Windows Phone 8.1. 回答1: Here is my class which I use for receiving push notifications and handling the ChannelUri . Just

MediaElement Source cannot be set after SaveState/LoadState

时间秒杀一切 提交于 2019-12-10 15:58:29
问题 ( Note: All code has been severely simplified. ) Problem MediaElement source not being set after Suspend/Resume. The CurrentState quickly changes to "Closed" after the source is set. I am handling the MediaFailed event — it doesn't fire. I am also handling the MediaOpened event, which doesn't fire either. Details I have the following method which updates the MediaElement's Source. It works really well as long as the app is not trying to resume after having been Suspended. private async void

HTTP subtitles in WinJS video element

不羁的心 提交于 2019-12-10 15:43:44
问题 In the HTML media playback sample there's a code that demonstrates how to add subtitles to the video: <video id="subtitleVideo" style="position: relative; z-index: auto; width: 50%;" src="http://ie.microsoft.com/testdrive/Videos/BehindIE9AllAroundFast/Video.mp4" poster="images/Win8MediaLogo.png" loop controls> <track id="scenario3entrack" src="media/sample-subtitle-en.vtt" kind="subtitles" srclang="en" default> </video> It works fine, but when I change subtitle track src to src="http:/