windows-phone-8.1

Binding selected items in nested ListBox with SelectionMode=“Multiple” and BindableSelection extension

怎甘沉沦 提交于 2020-01-07 09:05:18
问题 I'm developing a Windows Phone 8.1 app with MVVM pattern (I'm using Prism as a framework) The goal is to get the selected items in a few lists, like that: I have following XAML: <ListView x:Name="abc" ItemsSource="{Binding Symbols}"> <ListView.ItemTemplate> <DataTemplate> <StackPanel> <ListBox SelectionMode="Multiple" ItemsSource="{Binding List}" Extensions:ListViewExtensions.BindableSelection="{Binding SelectedItems, ElementName=abc, Mode=TwoWay}"> ... and in the ViewModel: public List

Can't use videoBrush windows phone 8.1. Visual studio 2013 doesn't see System.Windows.Media

烈酒焚心 提交于 2020-01-07 08:25:15
问题 Visual studio 2013 doesn't see System.Windows.Media . I tried to find PresentationCore.dll (like in this case), but i don't have any folder named Framework . When i try to get this folder from a different source (friend's notebook), I can use System.Windows.Media , but it doesn't compile, because this file has a different architecture. I tried to repair .NET but it had no effect. If I cannot install this feature, how can I get an image from the camera in real time? 回答1: You should use

Cordova build For Windows

馋奶兔 提交于 2020-01-07 08:02:34
问题 I am successfully able to build for android, now I want to build apps for windows. What is the process of setting up the build environment for windows? I do not want to work with Visual Studio, can I install windows SDK as a stand alone and work with it using the command line? If I take a look at the Docs here it does not go into any detail https://github.com/apache/cordova-windows The same is mentioned here as well https://cordova.apache.org/docs/en/latest/guide/platforms/win8/index.html If

Error when Play file .mp3 (StorageFile ) with BackgroundMediaPlayer in isolated storage windows phone 8.1 rt

人走茶凉 提交于 2020-01-07 07:49:07
问题 I use Windows Phone 8.1 Runtime I get my song in isolated storage My code : storageFile is song in isolated storage IRandomAccessStream stream = await storagefile.OpenAsync(FileAccessMode.Read); BackgroundMediaPlayer.Current.SetStreamSource(stream); BackgroundMediaPlayer.Current.Play(); When I play it,but it not work , like photo (try emulator and device lumina 520) http://photoshare7.com/image/f5a _message: Unable to cast object of type 'Windows.Media.Playback.MediaPlayer ' to type 'Windows

Halt / stop a ScrollViewer from scrolling when using a FlipView

风流意气都作罢 提交于 2020-01-07 06:43:40
问题 Moving on from this question where I wanted to fire an event when a FlipView changed even if manipulations wren't complete. I have VerticalSnapPointsType set to SnapPointsType.MandatorySingle and once the event, from the initial question, fires, I'd like to halt scrolling. Currently the event fires every time the FlipView is changed but right when the animation stops, the user can flip again, even if I set IsHitTestVisible to false. If I CancelDirectManipulations() I get the desired effect

Halt / stop a ScrollViewer from scrolling when using a FlipView

痴心易碎 提交于 2020-01-07 06:43:13
问题 Moving on from this question where I wanted to fire an event when a FlipView changed even if manipulations wren't complete. I have VerticalSnapPointsType set to SnapPointsType.MandatorySingle and once the event, from the initial question, fires, I'd like to halt scrolling. Currently the event fires every time the FlipView is changed but right when the animation stops, the user can flip again, even if I set IsHitTestVisible to false. If I CancelDirectManipulations() I get the desired effect

Segoe UI Symbol smiley is sometimes colorful, sometimes not

谁都会走 提交于 2020-01-07 04:51:48
问题 I have the following problem with my smileys: <!-- Displays a colorful smiley --> <PivotItem Header="Add 😶" FontFamily="Segoe UI Symbol"> <!-- Displays a black & white smiley --> <TextBlock Text="😶" FontFamily="Segoe UI Symbol"/> How do I get a nice colorful smiley in a TextBlock? Is it a particularity of the TextBlock? Should I use another component to display this text... and if so, which one? Thanks! Edit1: the top (yellow and white) smiley is the one of the pivot item, the red and

Segoe UI Symbol smiley is sometimes colorful, sometimes not

本小妞迷上赌 提交于 2020-01-07 04:51:07
问题 I have the following problem with my smileys: <!-- Displays a colorful smiley --> <PivotItem Header="Add 😶" FontFamily="Segoe UI Symbol"> <!-- Displays a black & white smiley --> <TextBlock Text="😶" FontFamily="Segoe UI Symbol"/> How do I get a nice colorful smiley in a TextBlock? Is it a particularity of the TextBlock? Should I use another component to display this text... and if so, which one? Thanks! Edit1: the top (yellow and white) smiley is the one of the pivot item, the red and

Post request in web view windows phone - using C#

孤者浪人 提交于 2020-01-07 03:01:24
问题 I am trying to achieve the same thing, but I am getting exception when I call the InvokeScript method, Please help. I used this link (Post data with a request in a Windows Store app WebView - using C#) to code, Here is my JV webview.NavigateToString(@"<html> <head> <script type='text/javascript'> function doSomething(userIdValue, sessionIdValue) { document.getElementById('Username').value = userIdValue; document.getElementById('Password').value = sessionIdValue; document.getElementById(

How does the timeout apply on StreamSocket.readAsync()?

丶灬走出姿态 提交于 2020-01-07 00:52:15
问题 I have created the streamSocket that received the stream of media. I want to read the stream on this socket and also want to apply readTimeout. So that I have applied it using CancellationTokenSource. As per my requirement, if I cant read within timeout limit, I dont want to close this socket. However, applying cancellation token causes the socket close in my program. Is there any way to apply time out without closing the socket? await socket.InputStream.ReadAsync(readBuffer, 8,