silverlight-toolkit

LongListSelector not working (not navigating to other pages)

牧云@^-^@ 提交于 2019-12-13 04:05:50
问题 I have implemented a LongListSelector for my Windows Phone 7 app. However when I tap an item it doesn't navigate to the desired page. Does anyone know why and how this can be fixed? Below is my code. Each page has it's own uri and I want to navigate to different pages. All help would be very much appreciated. Many thanks Code: Imports System.Linq Imports Microsoft.Phone.Controls Partial Public Class Victoria_line Inherits PhoneApplicationPage Public Sub New() InitializeComponent() Dim source

Cannot find a Resource with the Name/Key

天大地大妈咪最大 提交于 2019-12-12 14:16:18
问题 I'm trying to unit test a user interface using the Silverlight 4 Toolkit. When I attempt to instantiate the UserControl, it's throwing an exception because in the XAML of the UserControl it's using a Style defined App.xaml. Is there a way to load the resource somehow before I instantiate the UserControl? Am I going about this the wrong way? Here's the unit test code: [TestMethod] public void ExerciseTimePeriodUserInterface() { CustomUserControls.TimePeriodFilter timePeriodFilter = new

Silverlight 4 Overriding the DataForm Autogenerate to insert Combo Boxes bound to Converters

非 Y 不嫁゛ 提交于 2019-12-12 12:14:12
问题 I've been working towards a solution for some time and could use a little help. I know I've seen an example of this before, but tonight I cannot find anything close to what I need. I have a service that provides me all my DropDownLists, either from Cache or from the DomainService. They are presented as IEnumerable, and are requested from the a repository with GetLookup(LookupId). I have created a custom attribute that I have decorated my MetaDataClass that looks something like this: [Lookup

Select the nearest point in a Silverlight Toolkit chart

你离开我真会死。 提交于 2019-12-12 01:29:13
问题 I have a LineSeries chart. By series.IsSelectionEnabled = true; when I move the mouse over the points, I can select that node. But how can I do it when the mouse is not exactly over the point but when it's near it (above or under)? Thanks. PS: One more thing. How can I change the color of the column when the mouse is over it so the user can tell which one of the columns he/she is going to select. 回答1: I have created the example of the chart with the single LineSeries . You can click anywhere

Silverlight. Fix needed. Dragging stack panel item to the right moves it underneath other items

三世轮回 提交于 2019-12-11 20:09:17
问题 I have stack panel with custom controls in it. I attach standard MouseDragElementBehavior to each item. When I drag to the right the item moves underneath the other items. What would be a viable solution to create better user experience - to show better visual cue - how the item moves and where is it going to be dropped. 回答1: After a bit of tinkering I realised that nothing can be dragged within stack panel to the right not being coverd by other elements .. unless you drag the very right item

Changing image source when Hubtile “resets”

故事扮演 提交于 2019-12-11 18:03:50
问题 So I wanted to make Hubtile's Image Source change when the Image itself is not visible. Can't find the code of any events which are called then. Is there a trigger that I can use to do this? 回答1: Was browsing my old questions. For this I made a custom Visual state manager which checked the Hubtile state every state changed. When the state was as hidden(or whatever the state name is when the image on the hubtile is hidden) it changed the image on it. 来源: https://stackoverflow.com/questions

RIA Services: Enumerate Deleted Entities

北战南征 提交于 2019-12-11 14:03:40
问题 My RIA service context class has an entity set TaskToOperationAssociations which contains a list of Task to Operation associations. Is there a way to "find" an association entity which has been removed from the collection? I can see that the context has a reference to the removed Association in it's private fields (it obviously needs to keep track of it so the delete operation can be submitted). Here's an example... If I have Task "A" (with Id=T1) which is associated to Operation X, Y and Z

Customize the look of the Silverlight Control Toolkit drag / drop

戏子无情 提交于 2019-12-11 12:35:47
问题 Is there a way to override the template of or restyle the carrot (and even completely remove as I need in one case)? The carrot being the position marker where the drop will occur. I'd also like the ability to change the icons used during dragging - I've seen an infinity symbol, an arrow, and a strike-through circle, for which all I'd like to use custom icons. Unfortunately, I'm also confused as to when a given icon displays itself. 回答1: Just reviewing the docs it would appear that the

ListPicker SelectedIndex Not Shown Correctly in WP7

橙三吉。 提交于 2019-12-11 12:14:06
问题 I have a strange problem with the ListPicker element in WP7. The Problem Setting a ListPicker 's SelectedIndex via a Binding doesn't change the default item shown after it loads. Example As a test, I've quickly modified Microsoft's SettingsSample to include a ListPicker . You can download it at: http://www.mediafire.com/?w0n0ymkh4dwe9b3 This is our collapsed ListPicker : ----------------- | Times New Roman | ----------------- And this is ListPicker when it's expanded: ----------------- |

Silverlight BusyIndicator background color for the message box

不羁岁月 提交于 2019-12-11 11:21:54
问题 In Silverlight, I need the message box of a BusyIndicator to be transparent. I found a question asking the same but without any solution: Silverlight BusyIndicator Background Colour Part of the code I have is as follows: <toolkit:BusyIndicator x:Name="WorkingLayout" Height="80"> <toolkit:BusyIndicator.BusyContent> <StackPanel> <TextBlock Text="Wait please..." HorizontalAlignment="Center"></TextBlock> <Button x:Name="CancelButton" HorizontalAlignment="Center" Content="Cancel" Width="100" Click