windows-phone

Manipulation events of MediaElement not fire when on FullWindows mode

筅森魡賤 提交于 2019-12-12 04:08:04
问题 When I set player not in fullscreen (player.IsFullWindows = false), event work normally but when change player to full screen all manipulation event not work. Anyone have solution? <MediaElement Name="player" Margin="10,5" ManipulationCompleted="player_ManipulationCompleted" ManipulationDelta="Grid_ManipulationDelta" ManipulationMode="TranslateX" > 回答1: I can reproduce this scenario by enabling both the IsFullWindow="True" and the AreTransportControlsEnabled="True" . I think it makes sense,

Windows Phone Device Unique Id

折月煮酒 提交于 2019-12-12 04:03:18
问题 I have a windows phone 7 app which is live in store which is using DeviceExtendedProperties.GetValue("DeviceUniqueId") to fetch id and I am updating it in store with new windows phone 8 app and using same method. In both cases I am getting different id? I want the id to be same in both the cases. 回答1: Per this blog post: For Windows Phone 8 apps running on Windows Phone 8 devices and later, the DeviceUniqueId value is unique per device and per app publisher, which means that two apps

No networking in background timer task in Windows Phone 8.1 app running on Windows 10 Mobile

吃可爱长大的小学妹 提交于 2019-12-12 03:53:14
问题 A windows phone 8.1 app is running fine on windows 10 mobile except when it tries to do a http call in a background timed task. The background task is using common code which works fine when the app is active, so the code works, and the requested url also works fine when the app is active. The http client used is Windows.Web.Http.HttpClient . I suspect there could be a missing declaration required for windows 10 mobile. 'backgroundTaskHost.exe' (CoreCLR: DefaultDomain): Loaded 'C:\windows

Using GotFocus and TextChanged simultaneously - Windows Phone

早过忘川 提交于 2019-12-12 03:28:33
问题 I have an AutoSuggestBox which is set to handle the events GotFocus & TextChanged simultaneously. I have cleared the text from the text box in GotFocus event. Now the problem is that when I select any of the suggestions in AutoSuggestBox , after selecting it calls the GotFocus event handler and clears the selected text from it. This is the MainPage.xaml code using the AutoSuggestBox: <AutoSuggestBox x:Name="auto_text_from" HorizontalAlignment="Left" VerticalAlignment="Center" PlaceholderText=

How to access isolated storage file from HTML or Javascript for Windows Phone and PhoneGap Application

元气小坏坏 提交于 2019-12-12 02:56:01
问题 I am using PhoneGap to develop application for Windows, Android and iOS platform. I have one problem and need expert assistance from you guys. I have created one plugin for Windows Phone. Plugin is basically download images from URL and stored in isolated storage folder inside Downloads folder this is working successfully. Now my problem is does there any way to access isolated storage files from javascript. for example i have downloaded one image and stored in isolated storage ("Download

How to navigate to Windows Phone 8 start screen using C#

馋奶兔 提交于 2019-12-12 02:48:30
问题 I have built a very basic sound board app by following video tutorial series on channel 9 [http://channel9.msdn.com/Series/Windows-Phone-8-Development-for-Absolute-Beginners]. Each page in the app displays a list of sound tiles, which on tap plays associated sound. I have extended the app to allow user to tile the individual sound to phone's start screen. Everything works fine upto this point. Now whenever user taps the sound from start screen, I want app tile to just play the sound, however

Windows Phone Application Bar TextBox

删除回忆录丶 提交于 2019-12-12 02:47:01
问题 I was wondering, if it is somehow possible to add a TextBox in the Application Bar area (the same way the Internet Explorer does), but I didn't find any information source about this. Have you any idea, how to accomplish this task? 回答1: You will not be able to add UIElements inside ApplicationBar as it is not derived from UIElement. Alternatively, you can try adding a Grid at the bottom of the screen and color it similar to the ApplicationBar. Then add a TextBlock inside the Grid. This is

Catching unhandle exception in C++/CX

不问归期 提交于 2019-12-12 02:43:42
问题 Is it possible to catch unhandle exception in C++/CX? I found that if crash happened in C++/CX my app will terminate immediately (Application_UnhandledException not get called). What's more, I found Win32 api SetUnhandledExceptionFilter is not avaliable which is Windows API for catching unhandle exception. 回答1: If by exception you mean structured exceptions, you probably should use __try, e.g. something like this (untested code below): __try { someCode(); } __except( EXCEPTION_EXECUTE_HANDLER

Change the ListBox Item Border Color

☆樱花仙子☆ 提交于 2019-12-12 02:09:55
问题 I have list box with style added to it. Here is my code: <!-- Style for list item selector --> <Style x:Key="ListItemSelectorStyle" TargetType="ListBoxItem"> <Setter Property="Background" Value="Transparent"/> <Setter Property="BorderThickness" Value="1" /> <Setter Property="Padding" Value="0" /> <Setter Property="HorizontalContentAlignment" Value="Center"/> <Setter Property="VerticalContentAlignment" Value="Center"/> <Setter Property ="Foreground" Value="Black" /> <Setter Property="Template"

WP7, WP8 How to set several ResourceDictionaries to use custom FontFamilies

喜你入骨 提交于 2019-12-12 01:57:24
问题 I want to set custom fonts for some controls, so if I set a font inside the only one ResourceDictionary and use it in styles then everything works just fine . But this approach is not fine for me, because I need to have font declarations in a separate dictionary then styles that are using them. In App.xaml I have made several Resource Dictionaries <Application ...> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Resources