windows-phone-8

WP8 MvvmLight namespace missing and EventToCommand doesn't exist

ぐ巨炮叔叔 提交于 2020-06-25 10:15:06
问题 I am using MVVM Light libraries only (from Nuget package) in my Windows Phone 8 project and I want to use EventToCommand in ToggleSwitch . I have these lines of codes: <toolkit:ToggleSwitch x:Name="LockSwitch" IsChecked="{Binding IsLock, Mode=TwoWay}"> <i:Interaction.Triggers> <i:EventTrigger EventName="Toggled"> <Command:EventToCommand Command="{Binding DataContext.NavigateToArticleCommand, ElementName=LayoutRoot}" CommandParameter="{Binding}" /> </i:EventTrigger> </i:Interaction.Triggers> <

Properly handling HttpClient exceptions within async / await

*爱你&永不变心* 提交于 2020-06-22 06:45:49
问题 I was hoping somebody could enlighten me a little bit on an issue I am facing in regards to async/await exception handling with HttpClient. I have written some code to illustrate, and it is being excecuted on both a Windows Phone 8 device and the emulator: private async void SearchButton_Click(object sender, EventArgs e) { try { HttpClient client = new HttpClient(); System.Diagnostics.Debug.WriteLine("BEGIN FAULTY REQUEST:"); string response = await client.GetStringAsync("http://www

How do you get the button name/tag when the event button.click occurs?

放肆的年华 提交于 2020-03-18 04:12:27
问题 I'm making buttons programatically and adding them to a stack panel so the buttons change each time the user navigates to the page. I'm trying to do something like this where when I click the created button it'll grab the tag of the button and go to the correct page. However, I can't access the button elements using RoutedEventHandler. Here's the code: foreach (item in list) { Button newBtn = new Button(); newBtn.Content = "Button Text"; newBtn.Tag = item.Tag; newBtn.Name = item.Name; newBtn

How do you get the button name/tag when the event button.click occurs?

大憨熊 提交于 2020-03-18 04:11:23
问题 I'm making buttons programatically and adding them to a stack panel so the buttons change each time the user navigates to the page. I'm trying to do something like this where when I click the created button it'll grab the tag of the button and go to the correct page. However, I can't access the button elements using RoutedEventHandler. Here's the code: foreach (item in list) { Button newBtn = new Button(); newBtn.Content = "Button Text"; newBtn.Tag = item.Tag; newBtn.Name = item.Name; newBtn

All files in IsolatedStorageFile store disappear after rebuilding WP8 Silverlight solution

三世轮回 提交于 2020-02-07 05:44:18
问题 I'm developing a WP8 Silverlight app which uses the IsolatedStorageFile store for app's data. At some point I detected that if I issue the Rebuild Solution command in VS.NET, VS uses full deployment of my project to the emulator or an attached device instead of incremental deployment. The typical Build output in this case looks like this: 2> Connecting to Emulator 8.1 WXGA 4.5 inch... 2> The application is already installed on the device. Checking if an incremental deployment is possible... 2

Windows Phone 8.0 certificate pinning

﹥>﹥吖頭↗ 提交于 2020-02-06 15:53:46
问题 How i can do certificate pinning in Windows Phone 8.0 without commercial libraries like SecureBlackbox? I can do it for Windows Phone 8.1, but it doesn't work for WP8.0. Code for WP8.1 private async Task<bool> GetPublicKeysFromServer(string serverUrl) { //clear old cers serverPublicKyes = new List<string>(); Uri serverUri = new Uri(serverUrl); HttpClient httpClient = new HttpClient(); string responseData = string.Empty; HttpResponseMessage response = new HttpResponseMessage(); response =

App submission fails with 1016 related to Microsoft.Advertising.Mobile.resources.dll

独自空忆成欢 提交于 2020-02-05 12:15:46
问题 I'm trying to submit my app to the Windows Phone 8 store, and it fails with the following errors: 1016: A file registered in the app manifest is missing: pl-PL/Microsoft.Advertising.Mobile.resources.dll. Use a different one and then try again 1016: A file registered in the app manifest is missing: it-IT/Microsoft.Advertising.Mobile.resources.dll. Use a different one and then try again 1016: A file registered in the app manifest is missing: ko-KR/Microsoft.Advertising.Mobile.resources.dll. Use

could not install package Facebook 6.4.2

末鹿安然 提交于 2020-02-03 05:15:27
问题 I'm trying to install facebook C# sdk from NuGet Console into my windows phone 8 app, .NET framework 4.0 But it's giving an error! Details is give below : PM> Install-Package Facebook Successfully installed 'Facebook 6.4.2'. Successfully uninstalled 'Facebook 6.4.2'. Install failed. Rolling back... Install-Package : Could not install package 'Facebook 6.4.2'. You are trying to install this package into a project that targets 'WindowsPhone,Version=v8.0', but the package does not contain any

New Live tiles don't work in Windows Phone Silverlight 8.1 apps?

瘦欲@ 提交于 2020-02-02 03:08:13
问题 So when I was watching this video from BUILD I thought it's gonna be easy... But I can't seem to get the tile of my WP Silverlight 8.1 app to change by doing the following. const string xml = "<tile>" + "<visual>" + "<binding template='TileSquareText01'>" + "<text id='1'>testing 123</text>" + "</binding> " + "</visual>" + "</tile>"; var xmlDoc = new XmlDocument(); xmlDoc.LoadXml(xml); var tileNotification = new TileNotification(xmlDoc); TileUpdateManager.CreateTileUpdaterForApplication()

New Live tiles don't work in Windows Phone Silverlight 8.1 apps?

好久不见. 提交于 2020-02-02 03:08:07
问题 So when I was watching this video from BUILD I thought it's gonna be easy... But I can't seem to get the tile of my WP Silverlight 8.1 app to change by doing the following. const string xml = "<tile>" + "<visual>" + "<binding template='TileSquareText01'>" + "<text id='1'>testing 123</text>" + "</binding> " + "</visual>" + "</tile>"; var xmlDoc = new XmlDocument(); xmlDoc.LoadXml(xml); var tileNotification = new TileNotification(xmlDoc); TileUpdateManager.CreateTileUpdaterForApplication()