windows-phone-8.1

Execute a Windows Phone 8.1 Application after deactivation

倾然丶 夕夏残阳落幕 提交于 2019-12-11 10:49:39
问题 I know about the Windows Phone 8.1 Applications lifecycle: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff817008%28v=vs.105%29.aspx But, is it possible to keep active the application when it is not used (after deactivation)? Is it possible to realize a WP8.1 App that sends some data to a Server at predetermined time intervals? Is it possible to execute code in the App, when it is deactivated? 回答1: As you have tagged your question for WP8.1, apart from Silverlight apps, there

Access camera preview-stream on Windows Phone 8.1

老子叫甜甜 提交于 2019-12-11 10:45:25
问题 I'm trying to create a basic camera application (for my first application targeted towards WP). And I want to, of course, preview the camera data to the screen before taking a shot. But the only samples I see online from MSDN etc are too old (many objects have been removed, ie the libraries are being updated frequently making the articles obsolete) I'm having a problem just getting started with the preview-stream. It would be greatly appreciated if someone with knowledge could give me some

Monitoring SIM changes in Windows Phone 8.1

烈酒焚心 提交于 2019-12-11 10:38:38
问题 I am working on a windows phone project using C# and Xaml... I will like to get the sim information and also track SIM changes in windows 8.1 回答1: It seems that the Windows Phone SDK does not allow interaction with the SIM for security reasons. I haven't found a definitive source that says so, but the third I would say is a safe bet. Sources on StackOverflow "Windows Phone 8 SIM interaction" accepted answer by Den Delimarsky: No , the Windows Phone SDK does not offer capabilities to interact

AppxManifest - difference between identity and mp:PhoneIdentity

我们两清 提交于 2019-12-11 10:25:42
问题 When I create an appx app with VS2013 for Windows Phone, the AppxManifest.xml contains the following two entries: <Identity Name="Something.Arbitrary" Publisher="CN=GUID-GUID-GUID" Version="1.0.0.0" /> <mp:PhoneIdentity PhoneProductId="5fbbac69-e356-41ee-af0d-0aab0eb96d7c" PhonePublisherId="00000000-0000-0000-0000-000000000000" /> What is the difference between the two Identity Name and PhoneIdentity values? 回答1: mp:PhoneIdentity is used, if you update your app coming from an older version, e

Out of memory Exception while scaling image

邮差的信 提交于 2019-12-11 10:23:00
问题 I am new on Windows phone development. I am scaling an image, first time it scale image good but when I am choose another picture and implement scale on image so I get a System.OutOfMemoryException . On this line ScaleTransform t = new ScaleTransform() { ScaleX = 5, ScaleY = 5 }; My code where I am trying to scale image. Image uiElement = new Image() { Source = blurImage }; ScaleTransform t = new ScaleTransform() { ScaleX = 5, ScaleY = 5 }; WriteableBitmap writeableBitmap = new

Hyperlink text value in .resw resources

心已入冬 提交于 2019-12-11 10:22:43
问题 I got problem with localizing my Windows Phone 8.1 application. I would like to create checkbox with text "I accept rules", where "rules" is hiperlink to another view. I've no idea how to bind word "rules" with my .resw file. <CheckBox> <TextBlock TextWrapping="WrapWholeWords" x:Uid="/RegisterPage/RulesAccept"> <Hyperlink NavigateUri="" x:Uid="/RegisterPage/RulesAcceptHyperlink"/> </TextBlock> </CheckBox> Now, RulesAccept is "I accept" and "RulesAcceptHyperlink" is "rules" but in my

Image Background for Start Screen in WP 8.1

爱⌒轻易说出口 提交于 2019-12-11 10:14:07
问题 Is it possible to change the background image of the start screen from an app? Example: I have an generated image within the app and want to set it as background image (for tiles) of my start screen in windows phone 8.1 by a simple tap on a button. 回答1: Unfortunately, there is currently no API that allows changing the Windows Phone 8.1 Start Screen background image programmatically. 来源: https://stackoverflow.com/questions/23081357/image-background-for-start-screen-in-wp-8-1

How to “navigate” to Specifically hub position Windows Phone 8.1

房东的猫 提交于 2019-12-11 10:12:26
问题 I have a hub with 5 positions, and i just want to put a button and when i click,go to Specifically position... In Pivot control i can use SelectedItems with Index Position but here... I don't know <Grid x:Name="MainFragment" > <Hub x:Name="hubMain" Header="Você no mundo, o mundo em você!" Margin="1,0,0,0"> <HubSection x:Name="HubOne" Header="A Faculdade dos Guararapes"> <DataTemplate> <Grid> <Border CornerRadius="50" Background="White" Opacity="0.5" > </Border> <Image Source="/Assets/Fg.png"

WP 8.1: DataTemplateSelector isn't working

不问归期 提交于 2019-12-11 10:04:39
问题 I've got a Windows Phone 8.1 Pivot App project . I'm trying to create DataTemplate's selection in a xaml listview but it fail. I can run the app but i got a break: global::System.Diagnostics.Debugger.Break(). Here is some code. My DataTemplateSelector namespace DMI { public class ExploreTemplateSelector : DataTemplateSelector { public DataTemplate FolderTemplate { get; set; } public DataTemplate DocumentTemplate { get; set; } protected override DataTemplate SelectTemplateCore(object item) {

Webview: Bing Map tiles appear to be blurred compared to Google Maps ones

早过忘川 提交于 2019-12-11 09:57:47
问题 I'm doing a bit of a POC for the WP8.1 application written in HTML5/JS that includes the maps in the webviews. Scenario: I have 2 webviews with exactly the same HTML structure I'm referring the webviews to. In one webview I'm loading the bing.html that loads the bing maps. In other webview I'm loading the google maps map via the google.html. bing.html and google.html have the same HTML structure and that is: Bing.html <!DOCTYPE html> <html style="width:100%; height:100%; overflow:hidden;