silverlight-3.0

live broadcasting video?

泪湿孤枕 提交于 2019-12-08 04:37:58
问题 I am using VSTS 2008 + .Net 3.5 + C# + Silverlight 3.0 + Microsoft Expression 3 + ASP.Net + IIS 7.0. I want to show my desktop lively to other users. In more details, suppose a case when a teacher is showing Demo or ppt on her/his desktop, the information on desktop could be broadcasted lively so that other users could see what the teacher is showing on her/his desktop. It is better that end user could see the broadcast live information through browser. Any samples or document which could be

can't pass collection class as parameter to RIA Services

浪子不回头ぞ 提交于 2019-12-08 04:16:12
问题 I'm having a problem passing an list of application-defined objects to RIA services. I get a compile error saying "Error Parameter 'filters' of domain operation entry 'GetPagedExams' must be one of the predefined serializable types." Here's the query in the DomainService: [Query] public IQueryable<ExamEntity> GetPagedExams(int first, int pageSize, List<FilterOptions> filters, List<string> sortDescriptions) { return Context.Exams.GetPagedExams(first, pageSize, filters, sortDescriptions).Data

Silverlight- bad mouse position when embedded in html page when Firefox has zoom

只谈情不闲聊 提交于 2019-12-08 03:16:48
问题 We have a Silverlight control embedded in an html page. When I zoom the html page in FireFox 3.5 (ctrl - +) and then try to click on something in the Silverlight control the mouse input is not taken at the correct place. I have to click above the control to get it. This behavior can be seen here: http://silverlight.codeplex.com/ Any idea how to fix this? 回答1: There are numerous reports of the issue and some possible fixes. See these links: http://forums.silverlight.net/p/227806/614938.aspx "I

How to use something similar to DynamicObject in Silverlight 3 / WP7?

故事扮演 提交于 2019-12-08 02:58:03
问题 How can you use Dynamic Language Runtime (DLR) or something else to mimic System.Dynamic.DynamicObject in SILVERLIGHT 3 (!) and WP7 (no C# 4.0!).. What I want to do is implement automatic dynamically created properties for databinding. 回答1: The DLR can be used with WP7. Iron Ruby supports Windows Phone 7 from version 1.1. DynamicObject was available as an extension prior to .Net 4.0 If you're happy using a language other than C# then this could be an option. There's a good article on using

How can I combine some UserControls in SilverLight?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 02:53:56
问题 Maybe it is a simple question, but I can’t find the answer. I have three User controls that are different only with colour. There is code one of them: <UserControl x:Class="SilverlightApplication14.NodePicture" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:SilverlightApplication14"> <UserControl.Resources> <local:NodeViewModel x:Key="Children" /> </UserControl.Resources> <Grid x:Name=

Silverlight Listbox Item Style

纵然是瞬间 提交于 2019-12-08 00:42:45
问题 How would one go about styling a listbox such that the selection has a different text color than the default view? I've looked at this in several ways and because the ContentPresenter lacks a Foreground property. The default control template of the listbox provides several rectangles which one can use to adjust the highlight color. For example, with the default style a rectangle called BGColor3 has its opacity adjusted to get a highlight effect. Here is the bulk of my control template: <Grid>

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

∥☆過路亽.° 提交于 2019-12-07 20:46:28
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 } else { MessageBox.Show(e.Key.ToString()); } } I am clueless about this. Please help. Thanks, Subhen

Is there anyway to change title of OpenFileDialog in Silverlight 3?

感情迁移 提交于 2019-12-07 16:30:57
问题 I'm using OpenFileDialog in a Silverlight 3 application (sample code below). OpenFileDialog dialog = new OpenFileDialog(); dialog.Multiselect = false; dialog.Filter = "XML Schemas (*.xsd)|*.xsd"; dialog.ShowDialog(); It was a surprise to me that there's no such property like 'Title' to define Title of the dialog. So I wonder if there's a workaround allowing to set custom title for this dialog. Thanks in advance. 回答1: No there is no work around (in SL4 either). Microsoft seem to have taken the

Clipboard Support in Silverlight 3

早过忘川 提交于 2019-12-07 13:38:31
问题 I'm looking at developing a Silverlight application that displays a lot of information in a DataGrid. I want to somehow give the users the ability to copy this into Excel via the clipboard. Is this even possible in Silverlight 3? 回答1: No, this feature isn't available in SL3. Please read (Links talk about version 2, but that hasn't changed ever since): Copy text to clipboard? Storing text in the clipboard using Silverlight 2 回答2: OK, I've figured out how to do it, but it's not exactly elegant.

Silverlight Loading Reference Data On Demand from a 'dumb' server

对着背影说爱祢 提交于 2019-12-07 12:27:05
问题 I have a text file with a list of 300,000 words and the frequency with wich they occur. Each line is in the format Word:FequencyOfOccurence. I want this information to be accessible from within the C# code. I can't hard code the list since it is too long, and I'm not sure how to go about accessing it from a file on the server. Ideally I'd ideally like the information to be downloaded only if it's used (To save on bandwidth) but this is not a high priority as the file is not too big and