silverlight-3.0

Access Element inside Silverlight DataTemplate

北慕城南 提交于 2019-12-10 05:05:38
问题 I have not been able to find a clean solution to the following problem even though there are a few related questions already on SO. If I have a data template that is being used multiple times, for example, a TreeViewItem.HeaderTemplate, how can I change something the template for only some of the TreeViewItems. For example, let's say my TVI HeaderTemplate has a textblock and depending on the string, I want to make the fontweight bold. I want to do something like this: ((TextBlock)myTreeView

Windows Phone 7 Push Notifications Not Showing Up On My Phone

China☆狼群 提交于 2019-12-09 06:27:03
问题 UPDATE: The plot thickens. I changed my channel name and it is suddenly working (which means it wasn't a problem with my push service, since I'm getting the same HTTP response from the Microsoft Push Notification server). To me, however, this is not a solution. How will I be able to test this and KNOW my users are getting their push notifications if I'm getting the same response when it's not working as I do when it is? [ORIGINAL POST] I've been trying to get push notifications sent to my

C# Silverlight 3 - Programmatically Navigate Between Pages?

泪湿孤枕 提交于 2019-12-08 23:54:56
问题 Say I have a C# Silverlight 3 application with a number of pages. The first page is called Home, and the second page is called Details. The only way to navigate to details is programmatically. How do I do this?! Looked everywhere for the answer and all i've found are xaml uri mapper implementations.... Help greatly appreciated 回答1: Have you tried the NavigationService? this.NavigationService.Navigate(new Uri("Details.xaml", UriKind.Relative)); 回答2: c#: this.navContent.Navigate(new Uri(

Is Silverlight isolated storage treated as permanent, or as a cache?

橙三吉。 提交于 2019-12-08 19:41:41
问题 How persistent is isolated storage - does Silverlight treat it like a cache, deleting items when it needs more space, or only when the user or application request it? There also seems to be a wide variety of means to identify isolated storage - machine, application, domain, .... What I'm having trouble with is how these all relate to the user. Is it possible , and if so how, to create and later retrieve an isolated storage file with the following properties: The same file is used, regardless

Bing maps silverlight control custom pushpin

三世轮回 提交于 2019-12-08 13:50:12
问题 I tried to make a custom pushpin for the Bing Maps silverlight control, but I can only add 1 pushpin. At the second pushpin I get the following error: System.ArgumentException: Value does not fall within the expected range. at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.Collection_AddValue[T](PresentationFrameworkCollection`1 collection, CValue value) at MS.Internal.XcpImports.Collection_AddDependencyObject[T](PresentationFrameworkCollection`1 collection,

clientaccesspolicy.xml not being requested via HTTPS

帅比萌擦擦* 提交于 2019-12-08 13:02:34
问题 I have a silverlight app that has been using http to communicate w/self-hosted WCF services during development. I am now securing the services via https. I am getting an error I had back at the beginning of the project: An error occurred while trying to make a request to URI 'https://localhost:8303/service'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to

Silverlight - Taking a “screenshot” from within silverlight itself?

感情迁移 提交于 2019-12-08 12:48:07
问题 This is kind of vague as the control has not been designed yet and I thought I would ask before going with it. I will have a control that shows an object within Silverlight. The user can rotate the object etc. Now, the user needs to be able to copy what they see to an image. Is this possible somehow, or do I have to render it somewhere else? So it's not a screenshot per se, but a printable image of a specific control / area of the screen. 回答1: http://blog.blueboxes.co.uk/2009/07/21/rendering

KeyDown event is not working for Arrow keys, Home, End, PageUp, PageDown and other similar keys in silverlight

。_饼干妹妹 提交于 2019-12-08 07:32:54
问题 I want to override the selection behavior of ListBox Items. We can traverse through ListBox items using Up and Down arrows but I want to traverse the list using Left and Right arrow keys. While I am trying to add the key down event for ListBox, It shows almost all key presses except for Arrow Keys, Home, End and similar keys. I have the following code: private void listArtist_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key.ToString() == "Enter") { // Go to some page }

Silverlight - Access the Layout Grid's DataContext in a DataGrid CellTemplate's DataTemplate?

南笙酒味 提交于 2019-12-08 06:11:11
问题 I am using Silverlight 3 to develop an application. In my app, I have a layout Grid (named "LayoutGrid") in which I have a DataGrid (named "PART_datagrid") with DataGridTemplateColumns. The LayoutGrid is set a DataContext in which there is a Ladders list as a property. This Ladders list is set as the ItemsSource for the PART_datagrid. <Grid x:Name="LayoutRoot"> <DataGrid x:Name="PART_datagrid" ItemsSource="{Binding Ladders}"> ... <DataGridTemplateColumn> <DataGridTemplateColumn.CellTemplate>

Host silverlight 3.0 in wpf application

拜拜、爱过 提交于 2019-12-08 05:12:59
问题 How do I go about hosting a silverlight 3.0 application inside of a wpf application in which I can pass data between the two? It needs to run without internet connectivity. 回答1: I have a project I'm working on to do that. It's very experimental right now...Hell I really haven't even announced it yet. http://silverlightviewport.codeplex.com -Jer 回答2: There is no known control that can do this seamlessly out there as yet. To do something like this, you will need to host a web control and use