silverlight-toolkit

Removing (collapsing) DataPoints in a LineSeries?

家住魔仙堡 提交于 2019-11-28 13:46:54
I'd like to remove the datapoint markers from a LineSeries in my Silverlight chart. The only way i found on the web is to set the VisibilityProperty to Collapse. //not working in the current SL toolkit release var collapseDataPointSetter = new Setter(Control.VisibilityProperty, Visibility.Collapsed); But this isn't working for the current release of the SL toolkit. How can i remove or hide DataPoint Markers in the current release? pantarhei, Use the following chart styles (with referenced templates) to hide the data points. I have included styles for both the LineSeries and the AreaSeries.

Creating a table with Silverlight for Windows Phone 7

穿精又带淫゛_ 提交于 2019-11-28 11:50:24
I'd like to create a table on WP7. This is my current approach using a ListBox with a Grid as the data template. <ListBox x:Name="ResultsList" Margin="12,0" Grid.Row="1"> <ListBox.Resources> <DataTemplate x:Key="ResultsListItem"> <Grid d:DesignWidth="385" Height="28"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="88"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <TextBlock x:Name="textBlock1" Margin="0,0,24,0"/> <TextBlock x:Name="textBlock2" Margin="0,0,24,0" VerticalAlignment="Top" Grid.Column="1"/> <TextBlock x:Name="textBlock3" Margin="0,0,24,0

How to make context menu work for windows phone?

别等时光非礼了梦想. 提交于 2019-11-28 01:38:04
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:ContextMenuService.ContextMenu> <toolkit:ContextMenu> <toolkit:MenuItem Header="Add to playlist" Click="Move_Click"/

Multiple Series Charts with WPFtoolkit

守給你的承諾、 提交于 2019-11-27 16:33:03
问题 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. 回答1: 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

ContextMenu on tap instead of tap and hold

六月ゝ 毕业季﹏ 提交于 2019-11-27 16:13:51
问题 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"

Limit date range in a DatePicker

£可爱£侵袭症+ 提交于 2019-11-27 08:26:13
问题 First of, is there any real documentation of the toolkit ? What I would like is to specify a range of selectable dates. For example I don't want to display dates before today. If the user select a start date of Jan. 27th 2012, I want to allow only dates after these for the return date 回答1: Documentation is a little bit sparse for the toolkit - your best bet is to look in the source of the sample app but they don't cover all the scenarios. The default control doesn't seem to support a minimum

Removing (collapsing) DataPoints in a LineSeries?

会有一股神秘感。 提交于 2019-11-27 07:50:39
问题 I'd like to remove the datapoint markers from a LineSeries in my Silverlight chart. The only way i found on the web is to set the VisibilityProperty to Collapse. //not working in the current SL toolkit release var collapseDataPointSetter = new Setter(Control.VisibilityProperty, Visibility.Collapsed); But this isn't working for the current release of the SL toolkit. How can i remove or hide DataPoint Markers in the current release? 回答1: pantarhei, Use the following chart styles (with

Creating a table with Silverlight for Windows Phone 7

安稳与你 提交于 2019-11-27 06:30:46
问题 I'd like to create a table on WP7. This is my current approach using a ListBox with a Grid as the data template. <ListBox x:Name="ResultsList" Margin="12,0" Grid.Row="1"> <ListBox.Resources> <DataTemplate x:Key="ResultsListItem"> <Grid d:DesignWidth="385" Height="28"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="88"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <TextBlock x:Name="textBlock1" Margin="0,0,24,0"/> <TextBlock x:Name="textBlock2"

Silverlight 4: Chart Toolkit Color Set

守給你的承諾、 提交于 2019-11-26 17:21:13
问题 Im migrating my Chart code from visifire to Toolkit. I would like to know the counter part of ColorSet property[sample value Caravan,Picasso..] of Visifire to Toolkit. Is there any? TIA 回答1: At first you need to copy color codes from a Visifire color set. They are defined in the file (Visifire source code)\Common\SLVisifireCharts\ColorSets.xaml or here. The counterpart of the ColorSet property is the Palette property, which takes complex dictionary of resources. Here is the example for the