windows-phone-8

Lock app with password

℡╲_俬逩灬. 提交于 2019-12-23 05:21:06
问题 In WP application we need to provide user option to lock app with password. As I understand WP app lifecycle, I need to put navigation to LockPage in App.Application_Activated, App.Application_Deactivated and start page, but I can not use NavigationService in App class... I do not want to put navigation code to lock page in each other pages, or there is no other options? 回答1: I writed own solution, but may be it is not so elegant as it could be. App locking logic: User enable app locking with

Scrolling page with keyboard shown

淺唱寂寞╮ 提交于 2019-12-23 05:17:26
问题 I have an issue: I have a fixed height page in a scroll view: Here is the page When i popup the keyboard: Now the keyboard has 50% of the screen, i want the visible part of the page to scroll - how to make it. Because if the user wont tape on the page - keyboard wont close, some user will try to scroll till they get to the Send button. Here is my xaml: <ScrollViewer HorizontalAlignment="Stretch" Grid.Row="1" VerticalAlignment="Stretch" Margin="0,0"> <Grid Margin="0" Grid.Row="1"

Dynamically add text in an image on Xaml/Windows Phone

喜你入骨 提交于 2019-12-23 04:53:44
问题 I have a XAML ListBox where I am implementing an Image beside that a block of text is there. I want to display a count text in that image. For example for the first block in the image I want to display 1, for the 2nd block I want to display 2. This goes on. Below is the snippet. Can anybody please help me how can I write the count numbers in the image? <StackPanel Grid.Column="0"> <Image Source="/Assets/Images/pin.png"></Image> </StackPanel> <TextBlock Name="locationID" Visibility="Collapsed"

Windows Phone Facebook app not returning access token after V 8.3.1.0 Update

前提是你 提交于 2019-12-23 04:53:39
问题 I allow my windows phone app users to login using their Facebook account. To authenticate the user and get the access token, I follow the steps provided in this link. It opens up the installed Facebook app on windows phone, authenticates the user and returns an access token. This was working until Facebook recevied V 8.3.1.0 update. Now it opens up the facebook app and comes back with following error: /Protocol?encodedLaunchUri=msft-< my_app_id >://authorize?error=&error_code=2005&error

when keyboard is show, scrolling is limited

痴心易碎 提交于 2019-12-23 04:41:23
问题 I have a problem with scrolling in windows phone. I have a lot of elements on page so to add ability to scroll I put this on ScrollViewer. Hovewer, when I foucesd on some text block and the keyborad shows up, the scroll in working but it cuts the top and bottom of the page so it's can't be reach by user. Have you had similar problem with your apps and know how to fix this ? I wil be really grateful for any help Link to image when I put screenshot with my problem The picture contains four

when keyboard is show, scrolling is limited

一个人想着一个人 提交于 2019-12-23 04:41:22
问题 I have a problem with scrolling in windows phone. I have a lot of elements on page so to add ability to scroll I put this on ScrollViewer. Hovewer, when I foucesd on some text block and the keyborad shows up, the scroll in working but it cuts the top and bottom of the page so it's can't be reach by user. Have you had similar problem with your apps and know how to fix this ? I wil be really grateful for any help Link to image when I put screenshot with my problem The picture contains four

Hide On Screen Keyboard without using .Focus() on another element

怎甘沉沦 提交于 2019-12-23 04:33:47
问题 I am developing an application for WindowsPhone 8 platform which mimics the functionality of on-screen key pad . I want to use TextBox to display characters on the screen and I want to input text using another keypad which is implemented using buttons and events. There is a problem because when I tap on the TextBox the on-screen key pad always appears on top of everything. The only way I know to disable the on-screen key pad is using .Focus() method in events. This is not suitable for me

wp8:Handle Toast notification when application is in backgroung

时光总嘲笑我的痴心妄想 提交于 2019-12-23 04:28:55
问题 While my app is running I can receive toast notification,on ShellToastNotificationReceived(object sender, NotificationEventArgs e) event handler as keys in e.Collection. If my app is not running and a toast notification arrives, a toast is displayed but how i can i handle this notification? I mean which event is fire when my application is not running and notification arrives. I know background agent but its not fulfill my requirement Thanks. 回答1: Windows Phone platform is responsible to

How to override Accent color and Default background color windows phone 8

二次信任 提交于 2019-12-23 04:26:30
问题 I want to change the Accent color in my whole application to a custom color. Currently it's coming whatever is selected in "Settings" Also need to change the default background color for pages 回答1: You can put this in App.xml.cs constructor //This will change the default accent color (App.Current.Resources["PhoneAccentBrush"] as SolidColorBrush).Color = Colors.Green; //This will change the default background color for pages (App.Current.Resources["PhoneBackgroundBrush"] as SolidColorBrush)

How to refresh LongListSelector after delete an item

好久不见. 提交于 2019-12-23 03:48:18
问题 I have a LongListSelector like that <phone:LongListSelector Name="ListRecentFiles" LayoutMode="Grid" ItemsSource="{Binding}" GridCellSize="140,140" SelectionChanged="ListRecentFiles_SelectionChanged"> <phone:LongListSelector.ItemTemplate> <DataTemplate> <Grid Background="Red" Margin="0,0,5,5"> <TextBlock Text="{Binding NoteTitle}" Style="{Binding PhoneTextNormalStyle}" /> <toolkit:ContextMenuService.ContextMenu> <toolkit:ContextMenu x:Name="ContextMenu"> <toolkit:MenuItem x:Name="Delete"