windows-phone-8.1

How to cache a page in Windows Phone 8.1

一个人想着一个人 提交于 2019-12-19 08:24:04
问题 Previously in Windows Phone 8.0 apps, we could navigate deeper to the same page this way: NavigationService.Navigate(new Uri("/SamePage.xaml", UriKind.Relative)); Page was cached automatically, so after navigating back, user was on the same position on the list when he left. But in Windows Phone Store Apps we navigate deeper to the same page this way: Frame.Navigate(typeof(SamePage), id); But after navigating back it loads data again so if user was on the middle of a long list, now he is on

How to cache a page in Windows Phone 8.1

北城以北 提交于 2019-12-19 08:21:12
问题 Previously in Windows Phone 8.0 apps, we could navigate deeper to the same page this way: NavigationService.Navigate(new Uri("/SamePage.xaml", UriKind.Relative)); Page was cached automatically, so after navigating back, user was on the same position on the list when he left. But in Windows Phone Store Apps we navigate deeper to the same page this way: Frame.Navigate(typeof(SamePage), id); But after navigating back it loads data again so if user was on the middle of a long list, now he is on

windows phone 8.1 textbox character virtualKey validation

僤鯓⒐⒋嵵緔 提交于 2019-12-19 08:20:49
问题 im develeoping windows phone 8.1 app. In a textbox I want to prevent the user from inputting any non-digital letter only [0-9]. So here is my code: private void NumKeyDown(object sender, KeyRoutedEventArgs e) { bool isNumber = (e.Key == Windows.System.VirtualKey.Number0 || e.Key == VirtualKey.Number1 || e.Key == VirtualKey.Number2 || e.Key == VirtualKey.Number3 || e.Key == VirtualKey.Number4 || e.Key == VirtualKey.Number5 || e.Key == VirtualKey.Number6 || e.Key == VirtualKey.Number7 || e.Key

Setting the GroupStyle.Panel of a ListView on Windows Phone

[亡魂溺海] 提交于 2019-12-19 07:50:12
问题 I'm trying to create a ListView with grouping where the elements in each group are shown horizontally (as a scrollable content). No matter what I tried with the GroupStyle.Panel of the ListView it doesn't seem to have any effect on the list. Here is how my XAML looks: <ListView x:Name="itemListView" Padding="10" SelectionMode="None" IsSwipeEnabled="False" IsItemClickEnabled="True" ItemTemplate="{StaticResource listItemTemplate}"> <ListView.GroupStyle> <GroupStyle> <GroupStyle.Panel>

Setting the GroupStyle.Panel of a ListView on Windows Phone

元气小坏坏 提交于 2019-12-19 07:49:36
问题 I'm trying to create a ListView with grouping where the elements in each group are shown horizontally (as a scrollable content). No matter what I tried with the GroupStyle.Panel of the ListView it doesn't seem to have any effect on the list. Here is how my XAML looks: <ListView x:Name="itemListView" Padding="10" SelectionMode="None" IsSwipeEnabled="False" IsItemClickEnabled="True" ItemTemplate="{StaticResource listItemTemplate}"> <ListView.GroupStyle> <GroupStyle> <GroupStyle.Panel>

Any way to save an UIElement created programmatically in an image file?

柔情痞子 提交于 2019-12-19 04:14:19
问题 I'm trying to save an UIElement created programmatically in a JPG/PNG/BMP image in a Windows Phone 8.1 (C#) application. I'm using the class RenderTargetBitmap using the method RenderAsync() but it only works with UI elements created in the XAML code. When I use it on UI elements created directly in C# I have this exception: "System.ArgumentException (Value does not fall within the expected range.)" Am I doing something wrong or this class doesn't allow rendering of UIElement(s) created

Why isn't the TextBox inside ContentDialog automatically scroll above keyboard

旧街凉风 提交于 2019-12-19 04:11:53
问题 I notice that if the TextBox is in a Page , then everything working perfectly. Whenever the TextBox is focused, it will scroll to the right position above the keyboard so that the user will be able to see the text as he is typing along. Thing is a little bit different for ContentDialog for whatever reason. TextBox is easily covered by the keyboard. Is there any obvious setting that I am missing? I create a default ContentDialog and copied the code to a page. And get the following screenshots.

How to publish Windows Phone 8.1 Silverlight app to Windows Phone store?

五迷三道 提交于 2019-12-19 04:09:17
问题 I created Windows Phone 8.1 Silverlight app, and I can't to upload it into WP store. I want to use Create App Packages tool in Visual Studio 2013 Professional, but it's impossible for Silverlight apps. I read many guides on dev.windows.com. It's necessary to upload only .appx , .appxbundle or .appxupload files, but I have .xap file only in Bin\ARM\Release folder. May anyone help me? 回答1: I'm having the same problem, which I just solved. WP8.1 Silverlight application may not be packaged with

Sharing render to bitmap image in windows phone 8.1

浪子不回头ぞ 提交于 2019-12-18 19:43:45
问题 I want to share my canvas as image in windows phone 8.1.For this I first convert my canvas to an image then share it. I tried my windows 8.1 code .No errors occur but image is not there in share source app only description and title appears. Here is the code: private async void DataTransferManager_DataRequested(DataTransferManager sender, DataRequestedEventArgs e) { e.Request.Data.Properties.Title = "My app"; e.Request.Data.Properties.Description = "app description"; DataRequest request = e

Windows Phone 8.1 (WinRT): Custom Looping Selector

人盡茶涼 提交于 2019-12-18 19:05:31
问题 I want a custom Looping Selector for my Windows Phone 8.1 (WinRT) and I couldn't find any solution for the moment. I want something like this: The Windows Phone Toolkit is for WP8.0 and WP8.1 Silverlight and it doesn't work for WP8.1 (WinRT) apps (And this question is for WP8.1 Silverlight). There are DatePicker & TimePicker controls for WP8.1. Is there any way to custom their data or something to trick the control to my problem? There is a LoopingSelector class but it seems that it is not