silverlight-toolkit

WP7 Toolkit Update Removed GetItemsInView() from the LongListSelector

喜你入骨 提交于 2019-12-01 02:50:48
问题 With the latest update to the Windows Phone Toolkit they have overhauled the internals of the LongListSelector for the Mango release. One of the changes was removing support for the GetItemsInView() function (it now returns an empty list). This function previously returned a list of items that were currently visible on the screen. I was using this to get a reference to the topmost visible item when navigating away from a page so that I could support recovery after a tombstone by using

Restore Scroll Position in LongListSelector after tombstone

拟墨画扇 提交于 2019-11-30 21:06:55
I'm trying to work with the LongListSelector control from the WP7 Silverlight Toolkit. It's taken a bit of work, but I finally have it working with my app. Unfortunately, I am having some trouble properly handling the tombstoning process. When the application tombstones (or the user navigates to another page by selecting an item in the list), I save a copy of the topmost visible item in the list. I save it to both a class variable and to the app state collection. ICollection<object> visibleItems = myLongList.GetItemsInView(); _lastItem = null; if (visibleItems.Count > 0) _lastItem =

Windows Phone 7 Page Transitions very slow using Toolkit

萝らか妹 提交于 2019-11-30 20:05:42
I have the problem that whenever I use the Page Transitions from Windows Phone 7 Toolkit, the transitions are very slow and the whole app seems to have framed drops. The animations are "stuttering". Is anyone else experiencing this? I'm using the TransitionFrame class as RootFrame and in the .xaml pages I'm using code like <toolkit:TransitionService.NavigationInTransition> <toolkit:NavigationInTransition> <toolkit:NavigationInTransition.Backward> <toolkit:TurnstileTransition Mode="BackwardIn"/> </toolkit:NavigationInTransition.Backward> <toolkit:NavigationInTransition.Forward> <toolkit

How to set WrapPanel itemsource to list?

北城以北 提交于 2019-11-30 08:45:16
I want to show in WrapPanel a list of images. How can I do that or maybe I shall use other control ? You can absolutely use the WrapPanel to show a list of images, scrolling vertically or horizontally. To get the kind of panoramic tile effect like in People hub with your images, you could do something like this: <controls:PanoramaItem Header="something" Orientation="Horizontal" Margin="0,-15,0,0" > <ListBox Name="SomeList" Margin="0,0,-12,0" ItemsSource="{Binding SomeItemsList}" > <ListBox.ItemsPanel> <ItemsPanelTemplate> <toolkit:WrapPanel x:Name="wrapPanel" Width="700" /> <

Restore Scroll Position in LongListSelector after tombstone

…衆ロ難τιáo~ 提交于 2019-11-30 05:28:29
问题 I'm trying to work with the LongListSelector control from the WP7 Silverlight Toolkit. It's taken a bit of work, but I finally have it working with my app. Unfortunately, I am having some trouble properly handling the tombstoning process. When the application tombstones (or the user navigates to another page by selecting an item in the list), I save a copy of the topmost visible item in the list. I save it to both a class variable and to the app state collection. ICollection<object>

Windows Phone 7 Page Transitions very slow using Toolkit

元气小坏坏 提交于 2019-11-30 04:13:36
问题 I have the problem that whenever I use the Page Transitions from Windows Phone 7 Toolkit, the transitions are very slow and the whole app seems to have framed drops. The animations are "stuttering". Is anyone else experiencing this? I'm using the TransitionFrame class as RootFrame and in the .xaml pages I'm using code like <toolkit:TransitionService.NavigationInTransition> <toolkit:NavigationInTransition> <toolkit:NavigationInTransition.Backward> <toolkit:TurnstileTransition Mode="BackwardIn"

How to stop the WP7 pivot control handling the Flick Gesture event in Silverlight Toolkit

允我心安 提交于 2019-11-29 08:00:39
I have a Pivot Control in my WP7 app that by nature responds to left and right swipes to move between the pivot items. I then want to use the Flick Gesture on a UserControl (a small UI segment on my page) for something else. My user control does handle the event but so does the Pivot control, so it navigates to the next item. I have not figured out how to stop the event when the usercontrol handles it. Is it possible to use a sub control with the flick gesture within a WP7 Pivot Control? eg: private void glBlinds_Flick(object sender, FlickGestureEventArgs e) { //do stuff e.Handled = true; }

Multiple Series Charts with WPFtoolkit

試著忘記壹切 提交于 2019-11-29 02:16:56
Does anyone of you know the way to create multiple series charts with wpftoolkit? In a nutshell what I want is to have more dependent values for the same independent value. So far I couldn't find any comprehensive mechanism to get this working. Any help is deeply appreciated. Tom Dudfield You might want to consider the alternatives , from past experience the charting components in the WPF Toolkit are extremely rigid and hard to extend. I've also had numerous issues with bugs in the toolkit and active development seems to have completely ground to a halt. There are some very good free

ContextMenu on tap instead of tap and hold

好久不见. 提交于 2019-11-29 01:50:33
I need to open up a menu and since WP7 is not designed to perform such actions, I am taking help of Toolkit. Following is the sample code: <Border BorderThickness="3" Padding="6"> <toolkit:ContextMenuService.ContextMenu> <toolkit:ContextMenu> <toolkit:MenuItem Header="item1" Click="Item1_Click" /> <toolkit:MenuItem Header="item2" Click="Item2_Click" /> <toolkit:MenuItem Header="item3" Click="Item3_Click" /> </toolkit:ContextMenu> </toolkit:ContextMenuService.ContextMenu> <TextBlock Text="Tap" /> </Border> Now this works fine as long as user does a press and hold action. But I can't ask the

Silverlight 5 + AutoCompleteBox = Bug

孤街醉人 提交于 2019-11-28 13:54:50
Just installed SL5 and the toolkit, that were released few days ago. The bug happens when you set the Text property of the AutoCompleteBox to string.Empty. It causes the AutoCompleteBox to be in a buggy state. To reproduce the bug: add an AutoCompleteBox and a Button to the main page. Register to the TextChanged and Click events. This is the code-behind: public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); } private void button1_Click(object sender, RoutedEventArgs e) { auto.Text = string.Empty; } private void auto_TextChanged(object sender, RoutedEventArgs