silverlight-3.0

Multiple Out-of-Browser Applications in One Application

坚强是说给别人听的谎言 提交于 2019-12-05 13:27:08
I'm looking at a scenario where I need to create a single "master" Silverlight application and then add "child" applications for an out-of-browser Silverlight application. The scenario is something like this. A user will visit a gameboard web site and choose a game to play. Let's call it Checkers. He likes it, so then he installs the out-of-browser app to his desktop. He then finds Chess, and installs that too. For both games, while played on the site, he has stats (games played, win/loss records, etc.). For each game on the site, he navigates to a different page. But now he wants to play

Access Element inside Silverlight DataTemplate

帅比萌擦擦* 提交于 2019-12-05 11:42:57
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.Items.ElementAt(0).FindName("myTextBlock")).FontWeight = FontWeights.Bold; Does anyone have a solution

Silverlight 3 alternative to FileVersionInfo.GetVersionInfo

白昼怎懂夜的黑 提交于 2019-12-05 11:39:44
Within a Silverlight 3.0 application I want to use the AssemblyFileVersion to display the version information of the application. This is not the same as the AssemblyVersion and is typically retrieved in a .NET application using code such as: var executingAssembly = Assembly.GetExecutingAssembly(); var fileVersionInfo = FileVersionInfo.GetVersionInfo(executingAssembly.Location); var versionLabel = fileVersionInfo.FileVersion; Unfortunately Silverlight 3.0 runtime does not include the FileVersionInfo class. Is there an alternative way to access this information? Here's a way to do it with

Simpler Explanation of How to Make Call WCF Service without Adding Service Ref

女生的网名这么多〃 提交于 2019-12-05 07:07:57
问题 In Understanding WCF Services in Silverlight 2, the author, David Betz, explains how to call a web service without adding a service reference in the client application. I have a couple of weeks experience with WCF, so the article was over my head. In particular, although the author gave a lot of code snippets, but does not say what goes where. In the article, he provides two different code snippets for the web.config file, but does not clarify what's going on. Looking at the source code there

Domain Service vs WCF Service?

时光毁灭记忆、已成空白 提交于 2019-12-05 06:01:50
Im slowly delving into Silverlight and after a good while trying I am finally able to return my own Custom Object from my web to my silverlight client, use a Siverlight enabled WCF service. Now, im a little at a loss between the differences of a Domain Service, and a WCF Service. Ive worked through the tutorials where a Domain Service is tied to a data context then bound to siliverlight controls. Great :) However, where i hit a rock was trying to return anything bar IQuerryable; as String, my own simple type etc. I found a few tutorials such as this showing to mark a function with the

Silverlight user authentication

若如初见. 提交于 2019-12-05 05:53:27
I am currently developing a Silverlight 3 app that needs some sort of user authentication, because the data pulled from a WCF service is user specific. Target audience is the regular Internet - so there is no AD to authenticate against. Here are some of the questions I have concerning that situation: Is there a framework or other mechanism that would support me? Would you recommend authentication within the Silverlight app or via outside mechanisms like forms auth? Which is more secure? What about out-of-browser support? I used ASP.NET's authentication. Just use a MembershipProvider (or

Silverlight local storage

你说的曾经没有我的故事 提交于 2019-12-05 01:34:05
问题 As you may know Silverlight has support for local storage. We are looking at creating Sl application that will work in off line mode. This application may require quite a bit of data to be cached on the client side. Obvious solution - use local storage with some sort of XMl based structure won't work as our PoC showed due to performance issues. We are looking at several 3rd party solutions that implement light database engines on top of SL local storage. If you have solved this problem in the

Does Silverlight 3 Change the MVC vs. Silverlight question?

被刻印的时光 ゝ 提交于 2019-12-04 20:38:25
问题 I'm starting a new project soon and investigating whether or not to use MVC, Silverlight or both. This question Silverlight vs. ASP.NET MVC was a good starting point. But looking over the SL3 beta, it looks like there are two things that change the landscape just a bit. First, the navigation feature which is a direct feature of Silverlight and now there is the .NET RIA Services. While not actually part of Silverlight, it's fairly integrated and seems to bridge the gap between client and

Showing lines with different colors on a Silverlight Toolkit’s LineChart?

为君一笑 提交于 2019-12-04 19:31:52
Hy, I have a chart,wich is created in runtime,this could be Line, Bar or Pie type. Basically what i want is to have more contrast on the lines on the chart,this means i should use different colors on the lines. For Bar chart i use the StylePalette property to set wich colors will used in the chart,and it's working fine,but for Line it has no effect. As a Line chart i tried this: For the line i want to use lets say 2 colors. Style style = new Style(typeof(Control)); Setter st = new Setter(Control.ForegroundProperty, new SolidColorBrush(Colors.Red)); style.Setters.Add(st); Style style2 = new

Using MergedDictionaries in generic.xaml in Silverlight 3

谁都会走 提交于 2019-12-04 18:54:42
问题 In WPF it was possible to organise the XAML for multiple user controls by keeping the markup in separate XAML files in the themes folder and then using MergedDictionaries to import them into generic.xaml: <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="MyFirstControl.xaml" /> <ResourceDictionary Source="MySecondControl.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> With the availability of the Silverlight 3 beta introducing