silverlight-toolkit

Get drop index in Silverlight drag / drop

假如想象 提交于 2019-12-05 18:47:16
This article shows how to implement a copy operation on a drop event. I'd like to do the same but I want my dropped item to appear in the collection according to where it was placed on the UI. So I need the StartIndex much like on a NotifyCollectionChangedEventArgs when an ObservableCollection changes. In the article you'll see that eventually you get a SelectionCollection object whose items have an Index property. But unfortunately this is the index of the source collection (where it was picked) and not the destination collection (where it was dropped). Ok, this is quite ugly, but I didn't

Adding a horizontal line to a Silverlight Toolkit column chart

别等时光非礼了梦想. 提交于 2019-12-05 16:36:04
I am using the Silverlight Toolkit in a WPF project and I would like to add a dashed red horizontal line to a column chart at a Y-axis value that I can specify. I have modified the chart template and successfully added a line, but I'm not sure how to get the line to display at the y-axis value that I want and how to get it to stretch across the entire chart. Here is a picture of the chart I have so far: and here is the chart template XAML code that I am using to generate it: <charting:Chart Name="chartUsageHours" Grid.Column="1" BorderThickness="0" Padding="0" Loaded="chartUsageHours_Loaded">

TiltEffect and LongListSelector

不问归期 提交于 2019-12-05 12:46:45
问题 I am trying to use the TiltEffect from the Silverlight toolkit within a LongListSelector . This is how the element is declared in XAML: <controls:PivotItem Header="Pivot Item"> <controls:PivotItem.Resources> <DataTemplate x:Key="LongListSelectorGroupHeaderTemplate"> <Border Background="{StaticResource PhoneAccentBrush}" Margin="10,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Height="{StaticResource PhoneFontSizeExtraExtraLarge}" Width="{StaticResource

How does Silverlight work? [closed]

末鹿安然 提交于 2019-12-05 11:10:13
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center . Closed 8 years ago . Can anyone point me to a link with detailed description on how Silverlight works. I mean in the sense that, does it run as a separate process or does it run in the same process as browser? Does the silverlight plugin responsible for parsing the XAML and rendering the Silverlight run in the same address space as

Silverlight Toolkit - Create a chart like Google realtime

六月ゝ 毕业季﹏ 提交于 2019-12-05 08:20:35
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. 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 further comments and suggestions there. If there are mistakes - I will correct them. 来源: https://stackoverflow

Showing lines with different colors on a Silverlight Toolkit’s LineChart?

为君一笑 提交于 2019-12-04 19:31:52
Hy, I have a chart,wich is created in runtime,this could be Line, Bar or Pie type. Basically what i want is to have more contrast on the lines on the chart,this means i should use different colors on the lines. For Bar chart i use the StylePalette property to set wich colors will used in the chart,and it's working fine,but for Line it has no effect. As a Line chart i tried this: For the line i want to use lets say 2 colors. Style style = new Style(typeof(Control)); Setter st = new Setter(Control.ForegroundProperty, new SolidColorBrush(Colors.Red)); style.Setters.Add(st); Style style2 = new

TimePicker without the TextBox

余生颓废 提交于 2019-12-04 15:28:54
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. Create class that inherited from TimePicker , and use ClickTemplateButton() to simulate click behavior: public class CustomPicker : TimePicker { public void ClickTemplateButton() { Button button =

how to add context menu to WebBrowser wp7?

人盡茶涼 提交于 2019-12-04 15:14:48
Is it possible to add Context Menu to WebBrowser in WP7?(like IE) silverlight toolkit Context Menu not support WebBrowser!!! The WebBrowser does not support context menus and doesn't function like other Silverlight controls. Therefore, it's not possible to directly add a ContextMenu. However, there are workarounds possible. One of them is to use the InvokeScript method. You should read this thread . Apparently the code at the bottom of the thread works. Note: GINternet is the WebBrowser control's name, so you'll need to change that to yours. public void AttachContextMenu() { try { if

Implement search like the People search

浪尽此生 提交于 2019-12-04 14:49:08
Is there an implementation/example of the Windows Phone native search in the People hup ? (shows a ListBox and typing in the SearchBox will filter the people in the list, and highlighting the matching texts). I was especially looking for a modification of the Windows Phone Toolkit AutocompleteBox. If nothing exists already, what would I need to do to mix the Toolkit LongListSelector with AutoCompleteBox (replacing the autocomplete popup with a filtering of a list) ? I haven't seen anything, because it's so easy to implement. As for implementing it with the LongListSelector and a

Why does Silverlight 4 Tools only give partial intellisense?

我的梦境 提交于 2019-12-04 08:34:05
I finally got Silverlight 4 Toolkit installed , referenced and working after the difficulty of finding the right namespace described in this question . But intellisense doesn't work fully: after I type " tk: ", it doesn't pop up the various controls I have available, but if I type a control name out, e.g. DockPanel , then it works, as shown below. It will even give me intellisense after I type tk:DropPanel, which is odd. How can I get intellisense to work in all cases for the Silverlight 4 Toolkit? I can imagine I need another namespace, but this site says that this reference: is now all you