windows-phone-8

LayoutTransform not in Windows Phone Toolkit

独自空忆成欢 提交于 2019-12-23 01:24:08
问题 The examples I have found for using a LayoutTransformer with windows phone are all from before they split off the Windows Phone Toolkit from the Silverlight Toolkit. The Windows Phone Toolkit does not have the LayoutTransformer.dll that was referenced. So the question is, what do you use to do a LayoutTransform now? 回答1: Literally, just use the code from the Silverlight toolkit with minor changes. Here's how to do it for Windows 8 (note: this is from my blog). You can reuse this completely ,

Why data binding is not working with PropertyChanged?

本秂侑毒 提交于 2019-12-22 19:25:22
问题 I am new to XAML and Windows 8 phone development and learning about data binding. Here, it is suggested that I need to use, UpdateSourceTrigger=PropertyChanged But when I try to use it in my xaml, it is giving error as 'Requested value 'PropertyChanged' not found.' Instead it is working correctly with, UpdateSourceTrigger=Default I am doing something wrong, or it is deprecated in newer versions. My code sample, <TextBox x:Name="txt1" Height="100" Width="100"></TextBox> <TextBlock Grid.Row="1"

Why data binding is not working with PropertyChanged?

萝らか妹 提交于 2019-12-22 19:23:13
问题 I am new to XAML and Windows 8 phone development and learning about data binding. Here, it is suggested that I need to use, UpdateSourceTrigger=PropertyChanged But when I try to use it in my xaml, it is giving error as 'Requested value 'PropertyChanged' not found.' Instead it is working correctly with, UpdateSourceTrigger=Default I am doing something wrong, or it is deprecated in newer versions. My code sample, <TextBox x:Name="txt1" Height="100" Width="100"></TextBox> <TextBlock Grid.Row="1"

Why data binding is not working with PropertyChanged?

匆匆过客 提交于 2019-12-22 19:23:13
问题 I am new to XAML and Windows 8 phone development and learning about data binding. Here, it is suggested that I need to use, UpdateSourceTrigger=PropertyChanged But when I try to use it in my xaml, it is giving error as 'Requested value 'PropertyChanged' not found.' Instead it is working correctly with, UpdateSourceTrigger=Default I am doing something wrong, or it is deprecated in newer versions. My code sample, <TextBox x:Name="txt1" Height="100" Width="100"></TextBox> <TextBlock Grid.Row="1"

Windows Phone 8: Can't get scrolling div to bounce

Deadly 提交于 2019-12-22 18:49:07
问题 I understand that you are supposed to be able to get scrolling div s to have momentum and bounce at their extreme ends in IE on Windows Phone 8. I have momentum, but I can't get the div to bounce when it reaches the end of a "flick scroll" or swipe-style scroll. Here's the style applied to the div . I've tried it with and without the pan-y value. .scrollDiv { position:absolute; top:0; left:0; padding: 13px; overflow-x:hidden; overflow-y:scroll; -webkit-overflow-scrolling: touch; -ms-scroll

How to Sort a LongListSelector using CollectionViewSource

帅比萌擦擦* 提交于 2019-12-22 18:48:07
问题 I have a LongListSelector that is currently being populated with images from IsolatedStorage . I would like be able to sort these by date in ascending or descending order. I have been referencing http://babaandthepigman.wordpress.com/2011/07/03/wp7-collectionviewsource-sorting-a-listbox/ for assistance. For some reason, I have having trouble binding the ItemsSource of my LongListSelector to the CollectionViewSource to implement the sort feature. PictureRepository.cs (to load the pictures from

How to Sort a LongListSelector using CollectionViewSource

不羁岁月 提交于 2019-12-22 18:47:10
问题 I have a LongListSelector that is currently being populated with images from IsolatedStorage . I would like be able to sort these by date in ascending or descending order. I have been referencing http://babaandthepigman.wordpress.com/2011/07/03/wp7-collectionviewsource-sorting-a-listbox/ for assistance. For some reason, I have having trouble binding the ItemsSource of my LongListSelector to the CollectionViewSource to implement the sort feature. PictureRepository.cs (to load the pictures from

Push Notifications without Azure service?

允我心安 提交于 2019-12-22 18:39:14
问题 We tried hard to manage using background services in WP8, but even with Location Tracking it has lot many limitations. So we chose to go for Push Notifications to work as background service . I have gone through lots of resources talking about Push Notifications with Windows Azure Mobile Service , is there any way we can use Push Notifications using our own server? Secondly, what is exactly MPNS (Microsoft Push Notification Service)? Is it some service running in my mobile? Is it free or paid

Windows Phone 8 - Javascript : back button

眉间皱痕 提交于 2019-12-22 18:29:11
问题 I need to handle the back button in HTML 5 - Javascript application for Windows Phone 8. I found a lot of solutions in C# but no one in Javascript. Does anybody know how to do this ? 回答1: //Hardware back button could be handle using this. var hardwareButtons = Windows.Phone.UI.Input.HardwareButtons; hardwareButtons.addEventListener("backpressed", function (e) { e.handled = true; //handle back button event(won't close the app). history.back(); //go back to history }); 回答2: Here is my code that

Making a StackPanel scrollable in Windows Phone 8

孤者浪人 提交于 2019-12-22 18:27:28
问题 I have a list of controls, put into a stackpanel. These controls are Hubtiles, that are added programatically after a user creates it - a list essentially. I need to make the StackPanel in which they are added, scrollable - what would be the best approach for this? Should i put the stackpanel inside a ScrollView, and then increase the StackPanels height with the actual height of the Hubtile - to make it scrollable, but not so that the user can scroll infinite without something being there. So