windows-phone

Playing sound in internet explorer mobile 6

爱⌒轻易说出口 提交于 2019-12-10 22:06:02
问题 we have a web application which is targeted to work on Internet Mobile Explorer 6. We need to play a sound when the user inputs an incorrect ... "input". Any idea what is supported on ie mobile 6 and how I can achieve this ? Thanks in advance. 回答1: I know this question is somewhat old, but I think it still deserves an answer. This is how I got it working. If you are only targeting IE6 Mobile, you could so something like the following in your head tag: <bgsound id="bgSoundId" loop="0" volume=

Converting WriteableBitmap to stream on WP8

南楼画角 提交于 2019-12-10 21:05:56
问题 How can I convert a WriteableBitmap to stream on WP8 platform? Final goal is to dump the image output produced by native code to the CameraRoll library using SavePictureToCameraRoll(filename, stream) 回答1: You can encode your bitmap to stream with WritableBitmap.SaveJpeg method and use this stream as a parameter to MediaLibrary.SavePictureToCameraRoll. Note: before calling MediaLibrary.SavePictureToCameraRoll don't forget to set the stream position to 0 if you're using a MemoryStream. Like

Creating a custom InputScope for Windows Phone 7

前提是你 提交于 2019-12-10 20:54:37
问题 Where can I find a tutorial for creating a custom InputScope? I'd like to create a custom keyboard that displays only the numbers 1-9 on the onscreen keybord (no symbols). 回答1: You cannot create custom input scope, here are the ones supported InputScopeNameValue Enumeration there may be one close to what you want - there are ones with numbers e.g. telephone or number. 回答2: You can't create a custom input scope, but you can process key events, see http://www.atleyhunter.com/2010/11/12/making

Unable to change FontSize of ListPicker FullModeItemTemplate

不想你离开。 提交于 2019-12-10 20:17:17
问题 I have a ListPicker, and when I click on it I have the full screen popup, but the options there are all pretty small, and I can't change the FontSize for whatever reason. Code: <phone:PhoneApplicationPage.Resources> <DataTemplate x:Name="PickerFullItemTemplate"> <StackPanel> <TextBlock Text="{Binding Number}"/> </StackPanel> </DataTemplate> </phone:PhoneApplicationPage.Resources> <toolkit:ListPicker ExpansionMode="FullScreenOnly" Name="Picker" ItemsSource="{Binding Number, ElementName=this}"

Is it possible to serialize/deserialize immutable types with protobuf-net on Windows Phone 7/8?

让人想犯罪 __ 提交于 2019-12-10 20:00:00
问题 Is it possible to serialize/deserialize types with protobuf-net on Windows Phone 7/8? I've tried the code below, it seems Constructor skipping isn't supported (i.e. UseConstructor = false) so I created a parameterless constructor but the deserialization fails with "Attempt to access the method failed: Wp7Tests.ImmutablePoint.set_X(System.Double)" public class ImmutablePoint { public double X { get; private set; } public double Y { get; private set; } public ImmutablePoint() {} public

WP7 Mango: Retemplating PhoneApplicationFrame created “Unspecified Error” exception

时光总嘲笑我的痴心妄想 提交于 2019-12-10 17:50:50
问题 The following used to work in WP 7.0: I'm attempting to re-template the root PhoneApplicationFrame in my Mango beta 2 refresh (7712) project with the following Xaml: <Style TargetType="phone:PhoneApplicationFrame" x:Key="FrameStyle"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <Border x:Name="ClientArea" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Background="{TemplateBinding Background}" BorderBrush="

WP8 - This package is using an app name that hasn't been reserved for this app

别等时光非礼了梦想. 提交于 2019-12-10 17:18:45
问题 I am submitting Windows Phone 8 app to app store, when I click on Review And Submit I get the Error : This package is using an app name that hasn't been reserved for this app In my WPAppManifest.xml file : Display Name is : GS Value // just an example Here GS has full form as Global Service, if I use this name in app list screen the text cuts so I have made it as GS Value. And when I am submitting the app I have reserved the name as Global Service : Value . So my Display name in WPAppManifest

WPF TextBox getting cut off

穿精又带淫゛_ 提交于 2019-12-10 17:17:56
问题 For some strange reason my WPF textbox which is embedded in a scroll viewer get abruptly cut off like in the image below after I have added a lot of text to it. Is there some limit or something that is reached that I can make larger or something? I do not receive any error messages. Here is the relevant Xaml: <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <Button x:Name="Slice_Button" Content="Slice" HorizontalAlignment="Left" Margin="106,0,0,0" VerticalAlignment="Top" Click=

Java client framework / API to call Windows phone push notification service

孤人 提交于 2019-12-10 15:51:49
问题 Does anyone know if there is a Java client framework / API to call Windows phone push notification service? I know there is a JavaPNS project, which is specific to Apple PNS. I am looking for something similar to that, but specific to Windows phone. Any help? 回答1: Java-mpns seems to be close to what you are looking for. https://github.com/notnoop/java-mpns 回答2: I've developed a solution with Spring and Apache Commons HTTP Client for sending RAW messages using WNS (Windows Notification Push

How to get Wi-Fi and mobile network parameters in Windows Phone 7?

送分小仙女□ 提交于 2019-12-10 15:33:45
问题 My app requires the following parameters of mobile network: MCC (Mobile Country Code) MNC (Mobile Network Code) LAC (Location area code) CID (Cell identifier) cell's signal strength And for Wi-Fi: MAC-adress signal strength Also I need a device IP-adress for both variants. Is there any API to get these parameters on Windows Phone 7? I can't find anything. 回答1: Access to this information is not made provided. Presumably due to possible privacy/security related issues. Additionally, if you