windows-phone-8.1

ReadOnlyStream.ReadAsync not working for Windows Phone 8.1

倾然丶 夕夏残阳落幕 提交于 2019-12-12 00:07:01
问题 I have a windows universal application catering to 8.1. I am using StreamContent.ReadAsync for reading data in chunks. My code is something like this using (Stream input = session.GetContentStream(obj, null, bytesWritten, conentStreamLength-bytesWritten).Stream) using (cancellationToken.Register(() => input.Dispose())) { if (output.Length > 0) output.Seek(output.Length, SeekOrigin.Begin); int length = (int)this.document.ContentLength; byte[] buffer = new byte[length]; int read; while ((read =

Can I link multiple contacts to one by programming on WP8.1?

微笑、不失礼 提交于 2019-12-11 22:58:40
问题 In People Hub, user can link multiple contacts to one. Here I want to ask if there is a way or API to made it by programming? 回答1: I find a way, that is you can create some contacts with the same name and the same phonenumbers, the People Hub will link them together automatically. It may need a few time, after that, you can change their any information freely. 来源: https://stackoverflow.com/questions/27351011/can-i-link-multiple-contacts-to-one-by-programming-on-wp8-1

raw frames windows phone 8.1

牧云@^-^@ 提交于 2019-12-11 22:19:44
问题 I need to get raw frames from the Camera in YUV/YCbCr format on windows phone 8.1 ( without Silverlight ), I don't see any example on internet, is it possible using MediaCapture or CameraPreviewImageSource (Nokia SDK) ? Thanks 回答1: The recommended way to process raw video frames on Windows Phone 8.1 is to write a custom MFT plug-in and then add it to the MediaCapture object via AddEffectAsync. The MFT acts as a DSP filter between the decoder and the XAML rich compositor. You can choose the

How to play background music in windows phone 8.1 with xaml and c#?

久未见 提交于 2019-12-11 21:02:50
问题 I've searched a lot, through msdn site, stackoverflow etc.. but i can't make playing a song in background. It stops when change frame, or exiting from the app returning to start, it also starts randomly when it is on lockscreen or in another places.. Can you explain how correctly do this code please? Sorry for bad code but i've started few days ago. this is more or less what i found on microsoft site. There are also no system it doesn't show any control public sealed partial class listView :

Windows phone 8.1 httpClient and session cookies

半腔热情 提交于 2019-12-11 20:17:33
问题 Does httpClient store and resend session cookies? Because using PostAsync I am connecting to (and debugging) a server and after login when I check my status the sessions doesn't exists. And if it is true, how can I say to HttpClient to use cookies? I have been looking for this question and I am only finding people asking how to manipulate cookies, I only want to mantain session cookies. Thank you. The code I use HttpClient httpClient = new HttpClient(); HttpResponseMessage httpResp = await

Windows Phone 8.1 navigate using string instead of a type

穿精又带淫゛_ 提交于 2019-12-11 19:57:11
问题 In Windows Phone 8.1 there is any way to navigate from one page to another using an string instead of a Type? There is no reflection and Frame.Navigate only accepts type. Thank you. 回答1: I agree with Kai Brummund. You should write a NavigationService. A good example of a navigation service is the MVVM light navigation service. Here you can find the source code. 回答2: Or... you just can use MVVMLight which comes with an integrated NavigationService (INavigationService). You set it in

data binding property of a other control to a style while animating it

旧城冷巷雨未停 提交于 2019-12-11 19:29:28
问题 i'm trying to implement a tab style radio button. this style contains a textblock as a child of a grid which changes it's color when checked and the grid is a child of border element. i'm trying to bind the grid's background only when it is in checked state but the button end's up bieng transparent </VisualState> </VisualStateGroup> <VisualStateGroup x:Name="CheckStates"> <VisualState x:Name="Checked"> <Storyboard> <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement

ScrollViewer keeps snapping back to top

对着背影说爱祢 提交于 2019-12-11 19:29:25
问题 So I have this user control that contains a ListView, wrapped by a ScrollViewer. I set up my layout in the DataTemplate and it's displaying fine, but when you try to scroll down, it just snaps back to the top; it won't hold its position. Here is the xaml: <Border BorderThickness="1" BorderBrush="Black" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" Height="80" Width="80" VerticalAlignment="Top"> <Rectangle> <Rectangle.Fill> <ImageBrush Stretch="Fill" ImageSource="{Binding ImageUri}"/> <

Highlight days on WinRTXamlToolkit.Controls.Calendar

老子叫甜甜 提交于 2019-12-11 19:06:24
问题 I wrote a Windows Phone 8.1 (WINRT) App. I need to show Calendar in the page with Highlighted days like holiays. So, I added WinRT XAML Toolkit - Calendar Control from nuget. PM> Install-Package WinRTXamlToolkit.Controls.Calendar <Page x:Class="DrFit.Pages.ActivityTimeTablePage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:DrFit.Pages" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

Read xml file from storage with WP8.1 StorageFile Api

你。 提交于 2019-12-11 19:03:41
问题 My application should read an xml file from storage using the StorageFile API . This has to be done async since he StorageFile API provides only async methods. The Constructor calls the method CallAsyncMethod() which calls and (should) await the LoadXmlFromStorageAsync method. The DataAccess() constructor does not wait for the CallAsyncMethod() and completes BEFORE the XML file is loaded. The xmlData variable is therefore not initialized when i call the GetElement() method. This is because