silverlight-3.0

Why isn't my shared resource file working in my Silverlight RIA project?

浪尽此生 提交于 2019-12-11 14:34:44
问题 I'm working on a Silverlight project with the WCF RIA Services beta. I'm using the BlahDomainService.metadata.cs file to validate a field by adding validation attributes, e.g. [RegularExpression]. It was working so I'm trying to put the Error message in a resource file and now it isn't working. The RegEx validation isn't being run on the client, though it is being run on the server. Any idea what might be causing this? In the generated code file on the client, I see this error: // Unable to

Charting control options for Silverlight for Windows Embedded

北城余情 提交于 2019-12-11 13:11:46
问题 I want to make a charting control for an embedded device using Silverlight for Windows Embedded. Currently i am planning to use line shape for drawing the graph. My question is if its a good approach(performance wise) or should i look for other options. Or if any controls are available for SWE. Thanks 回答1: Silverlight is not a proper answer to drawing charts on an Windows Embedded Compact device. You should go for using (or creating) a native GDI element. If performance is very important (e.g

Getting data out of a Silverlight control

末鹿安然 提交于 2019-12-11 12:32:28
问题 I am relatively new to Silverlight development and I am trying to figure out how to get data out of a silverlight control that I have made. I have a Silverlight control that gathers a bunch of graphical data points. The Silverlight control is embedding in a asp.net webforms application. The page that is displaying the control also does other data specific functions and when the user clicks a button I need to perform some manipulation of the data (both webform data and the data contained in

Silverlight 3 and IMultiValueConverter

自闭症网瘾萝莉.ら 提交于 2019-12-11 11:57:21
问题 As you may know, Silverlight 3 doesn't support IMultiValueConverter and... I badly need it. A Web Service proxy which defines a class structure that I need to display in my UI. The object definition class has a few array property such as string[], int[], etc. When I bind these property to a TextBlock, the Text property of the TextBlock becomes System.String[] or System.Int[]. Instead, I would like to see a list strings or numbers separated by a comma. I thought about using a

How to bind ScaleTransformation.X to slider in Silverlight 3

风流意气都作罢 提交于 2019-12-11 11:47:49
问题 I need to zoom Canvas. In WPF it is possible to bind ScaleTransformation.X to slider.Value. I'm not able to do the same in Silverlight - some errors. Is it supported in SL3? Thank you. 回答1: The reason this doesn't work is that in SL3 the binding target needs to be a FrameworkElement . (This restriction is lifted in SL4 but that doesn't help right now). However the solution just takes a little lateral thinking (or in this case backward thinking). The source object does not need to be a

Can .NET Ria service push data from server to client?

萝らか妹 提交于 2019-12-11 11:13:51
问题 Can the .NET RIA Service automatically push data to the silverlight client without the client polling the server at all? I want a feature similiar to wcf duplex polling. 回答1: Not currently. It's something they are thinking about for version2 apparently. You can do it with WCF: .WCF Duplex with Silverlight 来源: https://stackoverflow.com/questions/1659062/can-net-ria-service-push-data-from-server-to-client

silverlight 3 wcf service configuration — getting maxreceivedmessagesize error

此生再无相见时 提交于 2019-12-11 10:04:26
问题 I'm getting the maxreceivedmessagesize error for messages greater than 64K. The problem is that I've already changed everything in both server and client, and it's not fixing the problem. here's my web.config on the server and then the silverlight client config: <system.serviceModel> <bindings> <basicHttpBinding> <binding name="secureobjectbind" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647"> <readerQuotas maxDepth="2147483647"

Custom property in RIA service not available on client

*爱你&永不变心* 提交于 2019-12-11 08:35:57
问题 I have an entity called StatusUpdates . There is no self join in it. However i want to include a list of InternalStatusUpdates which is of type StatusUpdates (Again i would mention there is no self join in database). So i created a partial class in the same namespace and created a property named InternalStatusUpdates and included [DataMember] attribute on it. But it still doesn't appear on the client. This is my partial class to be specific :- using System; using System.Collections.Generic;

How keep drop down opened in silverlights ComboBox?

一个人想着一个人 提交于 2019-12-11 08:35:04
问题 I use ComboBox control as popup. Item for my ComboBox is Grid. There is TreeView control and two Buttons in grid. Items of TreeView are CheckBoxes. When I click on Buttons or CheckBoxes drop down keeps opened, but when I click on other part of grid drop down i closed. Is there any way to keep it opened until I click outside of ComboBox? I have looked a lot in Google, but haven't found anything. <UserControl.Resources> <common:HierarchicalDataTemplate x:Key="HierarchicalDataTemplate

Pass value to Child Window form Parent Page

可紊 提交于 2019-12-11 07:59:57
问题 I Need pass the Value to child Window.In child window there is two Text boxes.I need to show the value in child window Text box while while its getting opened. I tried the following way,My Child window class as follows, public partial class ChildWindow:ChildWindow { public int abc {get;set;} public string value{get;set;} public ChildWindow() { InitializeComponent(); this.txtbox1.Text = abc ; this.txtbox2.Text = value; } private void OKButton_Click(object sender, RoutedEventArgs e) { this