windows-phone-8

How can I serialize a class to XML using Windows Phone 8 SDK?

穿精又带淫゛_ 提交于 2020-01-15 10:55:29
问题 I've got one attribute (_XMLPlaylist) that I want to serialize in a XML-file likeshown in the code: private void btn_Save_Click(object sender, RoutedEventArgs e) { _Playlist.Pl_Name = tb_Name.Text.ToString(); _XMLPlaylist.Playlists.Add(_Playlist); IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication(); using (IsolatedStorageFileStream isoStream = new IsolatedStorageFileStream(StudiCast.Resources.AppResources.Playlists, FileMode.CreateNew, isoStore)) { using

Moving Object in ScrollViewer

本小妞迷上赌 提交于 2020-01-15 08:00:56
问题 I'm using the MVVM setup, for my app and I'm using an scrollViewer to scroll around an map. On this map I have an unit which I'd like to move around when I select it. However when I select the unit my ScrollViewer is still activated, is there an way to work around the scrollViewer or deactivate it such that I can move the unit around. I already tried changing the ManipulationModeProperty to Control, but thius makes the unit lag when I move it around. My ScrollViewer is: <ScrollViewer Width=

Rotating webbrowser from current orientation is stretching(zooming) the webbrowser contents Windows phone

本秂侑毒 提交于 2020-01-15 05:49:27
问题 I have a webbrowser which is in portrait mode. I am loading the webbrowser using this.webBrowserControl.Source = new Uri("http://google.com"); When the content is loaded the view looks like this there is rotate button provided, so if user is in portrait mode and user presses rotate button then I am rotating the webview using transform and setting its height and width so that it can occupy the whole screen pageWidth = 480; pageHeight = 800; RotateTransform transform = new RotateTransform();

Updating live tiles for windows phone 8 periodically

拜拜、爱过 提交于 2020-01-15 05:35:08
问题 I need to update my application's tile periodically with the count the amount of inbox items. Anyone can give me a reference or relevant link to a example or tutorial? I get my data from a webservice. I went on google, and all the examples is on button click. I need one that does this automatically every few minutes/hours? This is for the windows phone 8 start screen of the phone. thanks in advance! 回答1: This is probably the best tutorial I have seen for live tiles in wp8: http://www

targeting WP 8.0 app to WP8.1 app?

大城市里の小女人 提交于 2020-01-15 04:57:17
问题 I installed Visual Studio 2013 (With Update 2) and i was working on my Project in VS2012 for Windows Phone 8.0 And now i decided to Upgrade it to a Windows Phone 8.1 app so i followed the instructions and Targeted the app ! and everything's done successfully , BUT! the app now is (Windows Phone Silverlight 8.1) Picture: unlike other people who targeted to (Windows Phone 8.1) , there is a huge difference between the two types of the projects I can't use the new XAML controls - Windows.UI.XAML

targeting WP 8.0 app to WP8.1 app?

白昼怎懂夜的黑 提交于 2020-01-15 04:57:07
问题 I installed Visual Studio 2013 (With Update 2) and i was working on my Project in VS2012 for Windows Phone 8.0 And now i decided to Upgrade it to a Windows Phone 8.1 app so i followed the instructions and Targeted the app ! and everything's done successfully , BUT! the app now is (Windows Phone Silverlight 8.1) Picture: unlike other people who targeted to (Windows Phone 8.1) , there is a huge difference between the two types of the projects I can't use the new XAML controls - Windows.UI.XAML

How to use a method in MainPage from app.xaml.cs with variable appbar pivot

試著忘記壹切 提交于 2020-01-15 03:30:09
问题 Im using a pivot control with a variable appbar. As I see, the appbar is linked to a resource in app.xaml.cs where you put the info of the buttons and methods of it. It looks like this: <shell:ApplicationBar x:Key="AppBar1" IsVisible="True" IsMenuEnabled="False"> <shell:ApplicationBarIconButton IconUri="/Images/iconos/appbar.places.png" Text="TEXT" Click="ApplicationBarIconButton_Click11" /> <shell:ApplicationBarIconButton IconUri="/Images/iconos/appbar.calendar.month.png" Text="TEXT" Click=

How to access the camera from my Windows Phone 8 app (XAML and C#) and save the taken picture in a determined folder?

余生长醉 提交于 2020-01-15 02:45:44
问题 I want the Windows Phone 8 app that I am building at this moment to access the camera for taking a photo when a concrete button on the screen is pressed and then save the image that has been taken into a determined folfer (a folder created into the Windows Phone project by me, not the Windows Phone default image gallery). Could you help me accesing the camera, taking the picture and saving it into the folder created by me, please? I am using XAML and C#. Thank you so much!!! 回答1: I would

Detect if wcf service is activated

ⅰ亾dé卋堺 提交于 2020-01-14 10:46:47
问题 I'm making a WP8 application. I noticed that if the server is working everything works good, but if the server is down I get an exception. How can I check in the code if the wcf service is activated before using his methods? 回答1: Implement a no-op method in your web-service and call it with a low timeout. If it works, the service is up. If the call fails for whatever reason, the service is down. Actually, why is the server even down regularly? Maybe it is easier to ensure that it is available

HTML CSS - Font size oversized when shown on windows phone

余生颓废 提交于 2020-01-14 10:43:12
问题 I'm actually creating a newsletter. When i open the email into outlook, outlook web access, the layout is exactly the same as the one i built. Yet when I open the same email in my windows phone 8 font size is not respected and the email has no longer the same layout. Do you have any kind of suggestion ? I have this css instruction in my tag. (-ms-text-size-adjust: none;) body { background-color: #f9fbf4; margin: 0; padding: 0; -ms-text-size-adjust: none; } I also put this kind of css in the