silverlight-4.0

Using Obscure and UnObscure…Am I doing this right?

微笑、不失礼 提交于 2019-12-12 04:17:10
问题 WP 7.5 app. I have two Storyboard animations - one on image and another on Text. Issue1: When I move to next page and go back, the image and text blinks. Solution1: So I added OnNavigateFrom and explicity Stop the animations and also reset any properties involved in animations to 0. Issue2: Now say the screen goes to lock-mode and when I unlock it, since I set opacity of one of my element to 0 in OnNavigatedFrom the element is hidden, which actually should be visible until the user moves to

Silverlight OOB WebBrowser Exception

我只是一个虾纸丫 提交于 2019-12-12 03:54:20
问题 I've got an oob app with a webbrowser on it. The webbrowser source is databound with a URI defined by me. The URI has a path to a webpage from my server that displays a PDF file from its hardrive. Note that all this is done on a local network. URI example: uri = new Uri(@"http://ServerName/ProjectName/PDFViewer.aspx?pdf=somePDF.pdf"); Page code-behind: protected void Page_Load(object sender, EventArgs e) { string myURL = Request.Url.ToString(); string[] ParamArray = Regex.Split(myURL, "pdf=")

right click on grid row

南笙酒味 提交于 2019-12-12 03:53:07
问题 problem is , that whenever the grid's row is right clicked the selected item is null.how do i make a the grid's row selected when any row was right clicked? thanks Jamal 回答1: I think the solution may have a problem. Every time a row is loaded it will add an event handler, so if the row is ever reused it can accumulate event handlers. I would recommend removing the event handler when the row is unloaded. Here's my suggested code: private void dg_LoadingRow(object sender, DataGridRowEventArgs e

Citation for Silverlight 4 backward compatibility?

夙愿已清 提交于 2019-12-12 03:46:47
问题 I have a strong impression that the Silverlight 4 client runtime will run a Silverlight 3 application perfectly well, but for the life of me I can't find a definitive statement from Microsoft to that effect. Can anyone provide a reference? 回答1: There are quite a few citations. Here's one from Tim Heuer, the Silverlight PM. http://timheuer.com/blog/archive/2010/04/15/silverlight-4-breaking-changes-backward-compatibility.aspx Yes, this is the situation we refer to as backward compatibility.

Join two tables and filter result using EF 4 and RIA services

不羁的心 提交于 2019-12-12 03:18:06
问题 Public Function LoadSiteInfo(ByVal sId As Integer) As IQueryable(Of Site) Return Me.ObjectContext.Sites.Include("SiteData").Where((Function(f) f.SiteID = sId) AndAlso Function(x) x.SiteData.SiteUpdateDate < today)) End Function So, I'm trying to filter on SiteId from the Sites table, ANDALSO on the SiteUpdateDate in the SiteData table, it's the last part where I cannot get the syntax correct - it's just saying that SiteUpdateDate attribute is not a member of ObjectContext.Site, which is

Programmatically selecting hyperlinkbuttons

牧云@^-^@ 提交于 2019-12-12 03:12:15
问题 I have a project to be done in Silverlight. The project has a grid with 31 hyperlinkButtons that are named hyperlinkButton1-31 corresponding to the no. of days in january. I'm trying write a conditioned statment that will change the background color of a specific hyperlinkbutton in a specific day, or even better if i can select or highlight it. So if the day is 15 of january then the background property of hyperlinkButton15 will be black. The code which i think it should do it but it is

SharePoint: 401 Auth error while adding file to SharePoint library from Silverlight

落花浮王杯 提交于 2019-12-12 02:42:12
问题 I am trying to add a XML file to a library in SharePoint 2010 site from a silverlight application. I am following the steps as in https://sharepoint.stackexchange.com/questions/1837/how-can-i-upload-a-file-to-a-sharepoint-document-library-using-silverlight-and-cl and http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/f135aaa2-3345-483f-ade4-e4fd597d50d4 and How can I upload a file to a Sharepoint Document Library using Silverlight and client web-services?. But I am

Endpoint not found

余生颓废 提交于 2019-12-12 02:42:05
问题 I have created a new WCF RIA service with OData exposed. I wanted to test it out. My project name was ChinookSample and the namespace was ChinookSample.Web.Services When I try to browse... http://localhost:52878/Services/ChinookSample-Web-services-dsAlbumAndArtist.svc I get the service page, but the moment I go for... http://localhost:52878/Services/ChinookSample-Web-services-dsAlbumAndArtist.svc/OData I get EndPoint not found . I have checked my Web.Config and that has the OData defined.

ComboBox selectedValue in Datagrid control in a Silverlight Page

我的未来我决定 提交于 2019-12-12 02:10:10
问题 I have a Silverlight Page where i have the a button control and a Datagrid. The Click event on the Silverlight Page navigates to a Silverlight Child Window. The DataGrid on the Silverlight Page displays the Orders of all Customers. The Silverlight Child Window has a dataform and textfields and a combo box of customers. There is no issue with saving the data on the ChildWindow. The issue starts when i click OK on the ChildWindow. The datagrid on the Silverlight page is populated with the

How to clear the values inside a dynamic object?

北战南征 提交于 2019-12-12 01:45:53
问题 I am converting dataset to a Dynamic collection and binding it, this is working fine.Now when i need to add a new object which is empty to the collection . what i am trying is getting the ItemsSource of the datagrid and getting the first object inside the list. But it has some values inside it. How can i remove the values and bind a empty object using reflection. Here is my code, IEnumerable<object> collection = this.RetrieveGrid.ItemsSource.Cast<object>(); List<object> list = collection