windows-phone-8

Change service reference URL in code

独自空忆成欢 提交于 2020-01-21 10:48:25
问题 I'm working in a Windows Phone 8 project and in order to use some webservices I added a service reference with a specific URL . My problem is the URL because it changes fom time to time so I need to let the user insert the new URL from some menu when the app is running. I know how to change it in Visual Studio but now I need to change it in code when the app is running..so my question is: how do I change the URL in code? I have done some search and the file "app.config" seems to do the job

WP8 how to create base-page & use it

吃可爱长大的小学妹 提交于 2020-01-21 08:23:19
问题 I've googled, but did not get any useful resources, so i decided to ask. Problem : I have a Windows Phone 8 C#/XAML .NET 4.5 Application , that is going to have several pages ( 15 - 50 ) that are all going to have similar look + same datacontext set to one instance of ViewModel : -------------------------- |logo usermenu(v)| -------------------------- | | | | | | | ..variable.. | | ..content... | | | | | -------------------------- Question : I can't find anything usable in this matter, could

WP8 - access datacontext of parent

此生再无相见时 提交于 2020-01-21 07:13:25
问题 How can I access the datacontext of the parent element in windows phone 8? AncestorType is not available in WP8. <ItemsControl x:Name="Elements" ItemsSource="{Binding MyList}" Grid.Row="2" Grid.Column="3"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <toolkit:WrapPanel /> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <Button Content="e" Width="100" Height="100" Command="{Binding MyCommand" /> </DataTemplate> </ItemsControl.ItemTemplate> <

Handle cancellation of async method

不问归期 提交于 2020-01-21 05:33:05
问题 I'm using Parse as a data store for an app, and I am implementing their Facebook Login functionality. AFAIK, this Login method isn't any different than other async methods so hopefully it applies. So there is a Login.xaml page, that has a button for "Login with Facebook", and tapping this button takes you to the FacebookLogin.xaml page which contains only the WebBrowser control as per the linked Parse documenation. In ContentPanel.Loaded on FacebookLogin.xaml, I can use the following code to

How to use ShareLinkTask namespace in Windows Phone 8.1?

左心房为你撑大大i 提交于 2020-01-21 03:47:07
问题 I am developing an app and i am trying to share my app, in Windows Phone 8 Siverlight and Windows Phone 8.1 Silverlight, i used these codes: ShareLinkTask shareLinkTask = new ShareLinkTask(); shareLinkTask.Title = "Code Samples"; shareLinkTask.LinkUri = new Uri("http://code.msdn.com/wpapps", UriKind.Absolute); shareLinkTask.Message = "Here are some great code samples for Windows Phone."; shareLinkTask.Show() But in Windows Phone 8.1 using Windows Runtime, when i use these codes, it reports an

Iframe causes Can't Verify CSRF Token Authenticity n Rails

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-19 06:21:54
问题 I have a webapp that is loaded through an iframe using phonegap 2.3.0 for Windows Phone 8 SDK. The problem with loading it through the iframe is that it causes Can't verify CSRF token authencity on the Rails side when I send a $.post() request. I tried a couple of approaches such as overwrite the $.post() to use $.ajax() to setHeaderRequest with the token, and also $.ajaxSetup() When I disable protect_from_forgery or verify_authenticity_token , the app loads correctly. I believe the problem

Iframe causes Can't Verify CSRF Token Authenticity n Rails

只谈情不闲聊 提交于 2020-01-19 06:20:26
问题 I have a webapp that is loaded through an iframe using phonegap 2.3.0 for Windows Phone 8 SDK. The problem with loading it through the iframe is that it causes Can't verify CSRF token authencity on the Rails side when I send a $.post() request. I tried a couple of approaches such as overwrite the $.post() to use $.ajax() to setHeaderRequest with the token, and also $.ajaxSetup() When I disable protect_from_forgery or verify_authenticity_token , the app loads correctly. I believe the problem

Iframe causes Can't Verify CSRF Token Authenticity n Rails

丶灬走出姿态 提交于 2020-01-19 06:19:45
问题 I have a webapp that is loaded through an iframe using phonegap 2.3.0 for Windows Phone 8 SDK. The problem with loading it through the iframe is that it causes Can't verify CSRF token authencity on the Rails side when I send a $.post() request. I tried a couple of approaches such as overwrite the $.post() to use $.ajax() to setHeaderRequest with the token, and also $.ajaxSetup() When I disable protect_from_forgery or verify_authenticity_token , the app loads correctly. I believe the problem

Universal App design : how to use these controls Pivot or panorama ,Listview or Listbox?

こ雲淡風輕ζ 提交于 2020-01-17 08:21:30
问题 I have just started to develop in universal app. I have developed app in Windows 8 store apps and also developing Windows Phone 8 and Windows Phone 8.1 (SilverLight) Apps. Question is related to universal app in Windows and Single UI which is created in App. Share folder. 1. Is there any control in universal app like Pivot or panorama as like windows phone 8 and windows phone 8.1 (silverlight) have ? 2. which is best to design for data binding Listview or Listbox ? 3. In c# we can write like

Universal App design : how to use these controls Pivot or panorama ,Listview or Listbox?

橙三吉。 提交于 2020-01-17 08:21:21
问题 I have just started to develop in universal app. I have developed app in Windows 8 store apps and also developing Windows Phone 8 and Windows Phone 8.1 (SilverLight) Apps. Question is related to universal app in Windows and Single UI which is created in App. Share folder. 1. Is there any control in universal app like Pivot or panorama as like windows phone 8 and windows phone 8.1 (silverlight) have ? 2. which is best to design for data binding Listview or Listbox ? 3. In c# we can write like