silverlight

Notification of DataGrid when Collection inside Collection changes

。_饼干妹妹 提交于 2019-12-24 08:36:09
问题 Since hours I am working on a very hard problem: How is a DataGrid that is bound to an ObservableCollection correctly updated when another ObservableCollection that is inside the ObservableCollection the DataGrid is bound to changes ? So far the DataGrid onnly refreshes when i click on the corresponding cell. I have prepared a complete source code example to illustrate the following (very simple) situation: There is a ViewModel that holds a List. This List is an ObservableCollection and hold

Expression Blend Error with design time data (no error in visual studio)

♀尐吖头ヾ 提交于 2019-12-24 08:25:50
问题 I created some design time data from my windows phone 7 application and when I look at designer in Visual Studio (Express), the design time data shows up perfectly fine. However when I try to load the same project in Expression blend 4 I get an error and the design time data doesn't show up. The error that I get is very generic "Error found in 'my xaml class' " The exact line that it points to is: <phone:PhoneApplicationPage ... d:DataContext="{d:DesignData Source=../DesignData

How can I use nested Async (WCF) calls within foreach loops in Silverlight?

雨燕双飞 提交于 2019-12-24 08:20:18
问题 The following code contains a few nested async calls within some foreach loops. I know the silverlight/wcf calls are called asyncrously -but how can I ensure that my wcfPhotographers, wcfCategories and wcfCategories objects are ready before the foreach loop start? I'm sure I am going about this all the wrong way -and would appreciate an help you could give. private void PopulateControl() { List<CustomPhotographer> PhotographerList = new List<CustomPhotographer>(); proxy

How do I initialise a silverlight control without using web service call

限于喜欢 提交于 2019-12-24 08:17:33
问题 I am developing an asp.net mvc web application that makes much use of jquery and the progressive enhancement principle. I have a requirement for a complex control that needs access to .net code in order to function (using reflection across numerous classes). The choices were to duplicate this code in javascript (auto-generate if possible), or use silverlight. I am going with the silverlight option (at least for V1). The pre-silverlight version of my control starts life as some simple html

DataForm commit button is not enabled when data changed

自闭症网瘾萝莉.ら 提交于 2019-12-24 08:16:19
问题 This is a weird problem. I am using a dataform, and when I edit the data the save button is enabled, but the cancel button is not. After looking around a bit I have found that I have to implement the IEditableObject in order to cancel an edit. Great I did that (and it all works), but now the commit button (Save) is grayed out, lol. Anyone have any idea's why the commit button will not activate any more? Xaml <df:DataForm x:Name="_dataForm" AutoEdit="False" AutoCommit="False"

How-to: Load a type from a referenced assembly at runtime using a string in Silverlight

纵然是瞬间 提交于 2019-12-24 08:13:24
问题 I have tried this, specifying the assembly name: Type.GetType(string.Format("{0}.{1}, {0}", typeToLoad.AssemblyName, typeToLoad.ClassName)); Which throws the following: The requested assembly version conflicts with what is already bound in the app domain or specified in the manifest Trying the same without including the trailing assembly name like this: Type.GetType(string.Format("{0}.{1}", typeToLoad.AssemblyName, typeToLoad.ClassName)); -- returns null. So, I am looking for a way to

How do you determine the width of the text in a WPF TreeViewItem at run time?

若如初见. 提交于 2019-12-24 07:51:14
问题 How do you determine the width of the text in a WPF TreeViewItem at run time? I need to calculate an offset so I can draw a line from one leaf to the leaf of a different TreeView. All the 'width' properties return a size that is way bigger than the space taken up by the actual text of the node. It must be possible because the Select feature doesn't highlight the entire row. I'm writing the client in WPF and Silverlight. 回答1: You weren't very specific on the text or the tags, so I'm assuming

Slider controle is not moving automatically?

╄→尐↘猪︶ㄣ 提交于 2019-12-24 07:45:06
问题 I am using Slider control for audio player in silverlight 3.0 application. I can do forward and backward the slider.The problem is the slider is not moving automatically even the audio is playing. How to get it?? 回答1: Sounds to me that you don't have TwoWay binding set up. In you binding statement, use Mode=TwoWay. Maybe I'm not completely understanding your question, but that's the first thing I would look at. 来源: https://stackoverflow.com/questions/2758637/slider-controle-is-not-moving

Silverlight Planeprojection

血红的双手。 提交于 2019-12-24 07:38:07
问题 I have a user control that has a white background with a Zindex = 0. I also have an image on top of the white background with a Zindex = 10. When I use planeprojection to flip the image 180 degrees on the X-axis it just shows my image in reverse. How would I get it to show the white background when it gets flipped? 回答1: PlaneProjection inherently won't show the "back side" of a container. What you need to do: Define two elements in your container: one for the front/visible side and one for

Silverlight 3 List box

て烟熏妆下的殇ゞ 提交于 2019-12-24 07:35:04
问题 How to set the orientation of the List box in Silverlight i.e how to display the data horizontally? 回答1: Modify the ItemsPanel of the ListBox and set it to a StackPanel that's oriented Horizontally: <ListBox> <ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal"/> </ItemsPanelTemplate> </ListBox.ItemsPanel> </ListBox> 来源: https://stackoverflow.com/questions/1165236/silverlight-3-list-box