windows-phone-8.1

Windows.UI.Notifications.ToastNotification API not supported in Windows Phone Silverlight 8.1?

喜你入骨 提交于 2019-12-24 03:33:48
问题 I'm trying to certify my application but I get the following errors: Error Found: The supported APIs test detected the following errors: This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotification. Module=. File=X.Service.dll. This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotification..ctor. Module=. File=X.Service.dll. This API is not supported for this application type - Api=Windows.UI.Notifications

How to install WP 8.0 SDK if WP 8.1 SDK is installed?

落花浮王杯 提交于 2019-12-24 03:30:50
问题 I have the Windows Phone 8.1 SDK on my dev pc installed together with VS 2013. I need to open some WP 8.0 projects in VS 2013, but I can't do that without having WP 8.0 SDK installed. However, when I try to install it from the local ISO, I have the following installation error: ** Setup Blocked ** The product version that you are trying to set up is earlier than the version already installed on this computer. Do I need to remove the WP 8.1 SDK just to install WP 8.0 SDK and then install WP 8

How to install WP 8.0 SDK if WP 8.1 SDK is installed?

空扰寡人 提交于 2019-12-24 03:30:35
问题 I have the Windows Phone 8.1 SDK on my dev pc installed together with VS 2013. I need to open some WP 8.0 projects in VS 2013, but I can't do that without having WP 8.0 SDK installed. However, when I try to install it from the local ISO, I have the following installation error: ** Setup Blocked ** The product version that you are trying to set up is earlier than the version already installed on this computer. Do I need to remove the WP 8.1 SDK just to install WP 8.0 SDK and then install WP 8

How can I deploy my windows phone 8.1 app?

做~自己de王妃 提交于 2019-12-24 00:53:25
问题 I have just updated my Visual Studio Professional 2013 with update 2 RC. I made a simple app to try. I choose to release and click the build button in projects but it isn't work for creating xxxx.appx file. It's creating xxx.exe and other files. How can I create .appx package in 8.1 ? 回答1: Like windows phone 8.0 apps for windows phone store 8.1 apps there is no.xap file is created after running the app.Windows phone store 8.1 apps are deployed through windows store with .appx file.So that you

How to do 0-legged OAuth in Windows Phone 8.1

≡放荡痞女 提交于 2019-12-24 00:37:19
问题 I'm porting an app from Android to Windows Phone 8.1. I need to fetch some data that needs an OAUTh authentication. I did some research and I think i need a 0-legged OAuth authentication, because i only have a key & secret and the url to get the data. In the Android project the code is like this (JAVA): public JSONObject fetchData() { try { OAuthConsumer consumer = new DefaultOAuthConsumer(this.context.getString(R.string.consumer_key), this.context.getString(R.string.consumer_secret)); URL

Flyout changes Page's theme

独自空忆成欢 提交于 2019-12-23 23:39:29
问题 I'm fighting with little problem on WP8.1 - it took some time, but finally I've managed to localize it - let say that we have a button with a flyout: <Grid x:Name="LayoutRoot"> <Button Content="reset" VerticalAlignment="Center"> <Button.Flyout> <MenuFlyout Placement="Top"> <MenuFlyoutItem Text="first item"/> <MenuFlyoutItem Text="second item"/> </MenuFlyout> </Button.Flyout> </Button> </Grid> It works fine, but if we set the DataContext of a page: public MainPage() { this.InitializeComponent(

WP8.1 AppBarButton holding event

空扰寡人 提交于 2019-12-23 22:19:26
问题 How do I detect if AppBarButton is being held? There is a Holding event, but it never fires, even if I set AppBarButton's property IsHoldingEnabled to true. Or even when I set CommandBar's IsHoldingEnabled to true. 回答1: Try this code within your xaml code for your appbar . <page.BottomAppBar> <commandBar> <commandBar.PrimaryCommands> <appBarButton Label="formatting" IsHoldingEnabled="True" Holding="AppBarButton_Holding"> <appBarButton.Icon> <pathIcon HorizontalAlignment="Center"

Handling back button Windows 8.1 Universal app

时光毁灭记忆、已成空白 提交于 2019-12-23 21:51:09
问题 I'm updating my app from Windows Phone 8 Silverlight to Windows 8.1 RT (I think is called that). I've just created my second page and when i go to and press the back button it goes out of my app instead of going back to first page. I don't know why is this happening, default behaviour is going to last page right? I can't find how to override back button event to make a Frame.GoBack() call. Is this a dev preview bug or am I missing something? 回答1: put into the constructor of the second page:

Cannot add instance of type '%0' to a collection of type '%1' error in windows phone 8.1 DatePicker

谁说胖子不能爱 提交于 2019-12-23 21:42:06
问题 Hey I am developing an app in windows phone 8.1 using the MVVM pattern. I want to get the date from the DatePicker on the DateChanged event in the viewModel. After running the program I am getting this error: A first chance exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in App1.exe WinRT information: Cannot add instance of type '%0' to a collection of type '%1'. [Line: 117 Position: 97] An exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in App1

How to change Vertical Alignment of Text in TextBox Windows Phone 8.1

核能气质少年 提交于 2019-12-23 20:37:38
问题 How to set VerticalAlignment of Text which entered in TextBox . TextBox only have TextAlignment property which use to set Text alignment horizontally only. XAML: <TextBox MinWidth="300" MinHeight="45" TextAlignment="Left" VerticalAlignment="Center"/> EDIT After adding VerticalContentAlignment property XAML looks like: <TextBox VerticalContentAlignment="Center" /> <TextBox VerticalContentAlignment="Bottom"/> <PasswordBox VerticalContentAlignment="Stretch"/> Output: Clearly property