windows-8.1

How to set time out for http client request operation in windows phone 8.1/Windows 8.1

大憨熊 提交于 2019-12-08 15:16:47
问题 How to set Timeout property to Windows.Web.Http.HttpClient operation. The code sample I used is below. public HttpClient httpClient; public CancellationTokenSource cts; public void SendRequest(addressUri,postrequestbody) { HttpHelper.CreateHttpClient(ref httpClient); cts = new CancellationTokenSource(); HttpRequestMessage msg = new HttpRequestMessage(new HttpMethod("POST"), new Uri(addressUri)); msg.Content = new HttpStringContent(postrequestbody); msg.Content.Headers.ContentType = new

MediaElement web Video doesn't stop buffering

☆樱花仙子☆ 提交于 2019-12-08 15:02:37
问题 I m using MediaElement to play a web video. When I left the page I noticed in the Task Manager that my app was still using 10% of network and didn't drop till it finished downloading video. I tried doing the following but no luck. //open link; mediaElement.Source = welcomeVideoURL; //when I leave the page OnNavigatedFrom() mediaElement.Stop(); mediaElement.ClearValue(MediaElement.SourceProperty); mediaElement.Source = null; Also tried to set the source to a dummy link but still no luck. I

Clipping Using Ellipse and binding it inside my user control in Windows RT

回眸只為那壹抹淺笑 提交于 2019-12-08 11:25:49
问题 I have an image and I am clipping the mouse area using an Ellipse in which I am quite successful. But I want that ellipse to be a part of my user control and the user control should move along with my finger and the clipping Ellipse should be inside the user control . The complete project can be downloaded from here My UserControl'sXAML is <UserControl x:Class="App78.Magnifier" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006

WebView NavigateWithHttpRequestMessage Post is not delivered to the webserver

↘锁芯ラ 提交于 2019-12-08 10:24:40
问题 This is a follow-up question to the suggestion of user @Kiewic to make a post request using a webview: Post data with a request in a Windows Store app WebView - using C# So I am using this code // defined before: string uri, User user HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, new Uri(uri)); request.Content = new HttpStringContent( String.Format( "language={0}&session_id={1}&user_id={2}", Text.GetLanguage(), user.session_id, user.user_id.ToString() ), Windows.Storage

BIRT Report not running in eclipse after update to windows 8.1

我们两清 提交于 2019-12-08 10:17:54
问题 I am not able to run the birt reports in eclipse after updating to windows 8.1 recently. Eclipse layout view works fine but when I run the report nothing happens. Below is the information I have when I debug report. Please suggest a way to fix this issue Oct 19, 2013 5:09:02 AM org.eclipse.birt.report.debug.internal.core.vm.ReportVMServer start INFO: [Server] client accepted Oct 19, 2013 5:09:02 AM org.eclipse.birt.report.debug.internal.core.vm.ReportVMServer$1 run INFO: [Server] enter

Developing C++/CLI project for Windows 8 Tablet on Windows 7

≡放荡痞女 提交于 2019-12-08 10:15:47
问题 I have a code base of native C++. Recently I incorporated a Windows 8 tablet into the system that we deploy to. I have a .NET managed DLL that accesses the Tablet orientation sensor. This managed code is wrapped by an unmanaged class that I can access from the native C++. The problem is that I cannot run and debug the code on my Windows 7/VS2010 box without getting an Access Violation at the outset. No breakpoints are even hit before the exception. Is there a way to ignore the managed DLL

Microsoft Root Certificate Authority 2010 not valid

纵然是瞬间 提交于 2019-12-08 08:47:33
问题 On my Windows 8.1 machine (freshly installed), the Microsoft Root Certificate Authority 2010 certificate is listed as not valid (as can be seen on the screenshot below). On the other hand, my Windows 10 machine shows this: What can be the reason for such behaviour? 来源: https://stackoverflow.com/questions/32661107/microsoft-root-certificate-authority-2010-not-valid

VS2013 IntelliSense overlapping ReSharper's one

我与影子孤独终老i 提交于 2019-12-08 08:44:24
After installing ReSharper I've noticed a problem with the IntelliSense; In the image it is clearly visible that the IntelliSense of Visual Studio is displayed over the one of ReSharper (which by the way has the focus, so using the arrow keys will move the highlight section of the completion list below). I've tried to do several things without any result (always with VS restart): Switch from ReSharper IntelliSense to VS (back and forth) Limit ReSharper IntelliSense to some selected languages (i.e. C#) Completely disable VS IntelliSense ('Tools | Options | Text Editor | All languages' and

How to disable WebView scrolling in Windows 8.1

╄→尐↘猪︶ㄣ 提交于 2019-12-08 07:40:44
问题 I am developing an app for Windows 8.1. I tried below code it's not working. <WebView Source="http://wikipedia.org" ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollMode="Disabled"/> Is there any JavaScript solution to disable touch, mouse & key board scrolling? 回答1: I have used below given JS for my requirement. Though I am waiting for a better (XAML) solution. function RemoveScrolling() { var styleElement = document.createElement('style'); var styleText = 'body

TextLineBounds snipping bottom of letters

杀马特。学长 韩版系。学妹 提交于 2019-12-08 06:45:49
问题 I'm using TextLineBounds in Windows 8.1 to align text of different font sizes on the baseline, such as With the XAML looking like: <Grid x:Name="PageHeader"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="28" /> </Grid.RowDefinitions> <Grid Grid.Row="0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="15" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="15" /> <ColumnDefinition