silverlight-toolkit

Silverlight Toolkit - Create a chart like Google realtime

风流意气都作罢 提交于 2019-12-22 05:41:06
问题 I want to create a chart that looks as much as possible like Google Realtime Timeline ideally it should support pan & zoom with dynamic labels for axes instead of clicking on links. Is there any way to do it? Thanks. 回答1: Sometimes it seems to me that writing blog posts take more time than writing the code. Here is the link to my implementation of this timeline control: http://vortexwolf.wordpress.com/2011/04/20/silverlight-timeline-chart/ Screenshot: Download the code at my post and write

TimePicker without the TextBox

房东的猫 提交于 2019-12-21 21:38:42
问题 I want to use only the chooser dialog (shown below) from the TimePicker control included in the Silverlight Toolkit for Windows Phone. Normally this dialog only appears when a user clicks on the TimePicker control listbox. I would like to bypass the listbox altogether and launch the chooser dialog when a button is pressed. Is this possible or would I have to create a custom control for myself. 回答1: Create class that inherited from TimePicker , and use ClickTemplateButton() to simulate click

How can I get Silverlight 4 Tools to work in Web Developer 2010 Express?

我只是一个虾纸丫 提交于 2019-12-21 07:11:59
问题 I installed Windows 7 . I then installed Web Developer 2010 Express from here with the Web Platform Installer . I then installed the the April 15 release of Silverlight 4 Toolkit from here. I then added this reference : alt text http://www.deviantsart.com/upload/ijk0lm.png Then in my XAML, I reference it like this but it gives me no intellisense and tells me that I am missing an assembly reference : alt text http://www.deviantsart.com/upload/cd4vrj.png update: xmlns:tk="clr-namespace:System

Silverlight Toolkit ; Pie Chart Colors

不问归期 提交于 2019-12-21 05:22:17
问题 I have a huge problem that I can't figure out. Let's say that I have five different fruits, and I want each of them to be associated with a certain color. Let's say that I have three "baskets" which contain zero or more of said fruits. When I Make Pie charts for my three baskets, Each wedge is just some random color that is presumable picked by the control. How would I say, make the blueberries blue, bannanas yellow, etc. in the chart? I know this is a weird question, but I can't think of a

Silverlight async unit testing

你。 提交于 2019-12-21 02:53:09
问题 I'm having a weird issue with Silverlight Unit Test Framework. The very first method executed fails, every time. I have a second test with the exact same code, and it passes. The strange thing about the first time it's called is that it actually waits for the timeout and then executes the repository call (underneath it's an HTTP PUT if you care). Here's the code - the first one fails every time, second one passes every time: [TestMethod] public void AuthShouldSucceed() { var autoResetEvent =

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

对着背影说爱祢 提交于 2019-12-18 05:09:13
问题 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:

Silverlight 5 + AutoCompleteBox = Bug

此生再无相见时 提交于 2019-12-17 20:51:51
问题 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,

How to make context menu work for windows phone?

女生的网名这么多〃 提交于 2019-12-17 16:53:23
问题 I am using ContextMenu from Windows Phone Control toolkit. Wondering how do I know which list item in the list is pressed? It seems I can know which context menu is selected but I have no way to know which list item is operated on. Please help. Thanks! <DataTemplate x:Key="ListItemTemplate"> <StackPanel Grid.Column="1" VerticalAlignment="Top"> <TextBlock Tag="{Binding Index}" Text="{Binding SName}" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" /> <toolkit

Silverlight DescriptionViewer prevent Tooltip to disappear on click

陌路散爱 提交于 2019-12-13 05:34:35
问题 The Silverlight 4 DescriptionViewer Control displays a Description in a Tooltip: The syntax is pretty easy: Add Namespace xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" and the following XAML to your UserControl: <dataInput:DescriptionViewer Description="Some hints on user input etc." /> Unfortunately, some users click on the displayed Icon (since it even hovers by default) which instantly closes the Tooltip (the actual and only information

It's possible to make the Panorama control on WP7 non-circularly?

馋奶兔 提交于 2019-12-13 04:45:48
问题 I'm using a Panorama control on a WP7 design, and I want to know if there's some way to deactivate the circular (or round) navigation on it? Basically what I would is to end the horizontal scrolling to right on the last item and vice-versa. 回答1: Even if it was possible, such app would most likely get rejected at Marketplace review. The strength of a system lies in uniformity. Don't try to reinvent the wheel. Users expect panoramas to loop. 来源: https://stackoverflow.com/questions/11224507/its