silverlight

Is it possible to seletively color a wrapping TextBlock in Silverlight/WPF

故事扮演 提交于 2019-12-23 09:59:44
问题 For instance, if I have a TextBlock: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." I want the

Displaying ® symbol in Silverlight

人走茶凉 提交于 2019-12-23 09:58:07
问题 Folks! I am trying to display ® and superscript TM symbols in my silverlight app. I want to save the text containing the symbols in a resx file. Things i have tried: Copy paste the ® symbol from any document to resx file. ® symbol gets displayed in the resx file. But, when running the silverlight app, xamlparseexception is thrown. Use unicode text &#174 instead of ® symbol in the resx file. Same xamlparseexception thrown. My resx file encoding is utf-8. Appreciate your thoughts! EDITED:

Silverlight that degrades to html

非 Y 不嫁゛ 提交于 2019-12-23 09:53:06
问题 I am interested in creating a website entirely in silverlight (personal reasons) but I don't want people who don't yet have silverlight (a good many) to have to install a plugin just to view my site. The solution I am leaning towards is to start with a flat html/css version of the site and present the silverlight version only to people who already have it installed. My question is this: Is my reasoning misguided. Is there a better way to go about this. And what is the best way to avoid having

Sharing service interfaces and model in Silverlight, using WCF

流过昼夜 提交于 2019-12-23 09:49:50
问题 Say I have the following interface that I want to share between my server (a regular web service) and my client (a silverlight 2.0 application): public interface ICustomerService { Customer GetCustomer(string name); } My web service implements this interface, and references a class library where Customer type is defined. Usually, if you want to consume this service from a WCF client, say a winforms app, you could share your model assembly and your service contract interfaces. Then, by using a

Buffer size in WCF service

半世苍凉 提交于 2019-12-23 09:42:14
问题 We have a WCF service which executes certain stored procedures and returns the results to the silverlight client. Some of the stored procedures return upto 80K rows. Given below are the settings in web.config for Service <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> <behaviors> <serviceBehaviors> <behavior name="MyService.MyServiceBehavior"> <serviceMetadata httpGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="true"/>

Why is multibinding supported in WPF, but not silverlight?

时间秒杀一切 提交于 2019-12-23 09:38:07
问题 Multibinding is a pretty powerful feature in WPF, why is it not supported in silverlight? They never got around to adding support to it? It's too big to fit in the .NET framework? Will it be coming in Silverlight 5? Anyone know the answers? Thanks! 回答1: It's not supported out of the box, but you can throw together an approximation that will maybe do what you want: look here and here Microsoft has a good page on what's coming up in Silverlight but no mention of multibinding. 来源: https:/

Curious to mscorlib reference

北慕城南 提交于 2019-12-23 09:34:59
问题 I am curious as to the mscorlib reference in different project templates. When I create a WPF project, I cannot find the mscorlib file in the reference folder. I think it is referenced by default. When I create a Silverlight project, I can find it in the folder. It links to the Silverlight framework. Then I tried to delete it and of course it cannot be compiled. Then I tried to re-add this assembly to the reference again; it cannot be added and cannot be compiled anymore. It's weird. When I

Unable to call Assembly.GetName() from my Silverlight application

拟墨画扇 提交于 2019-12-23 09:31:56
问题 I want to display my application version number within my application, and the simplest way to do this is to use the version number for the assembly. var assembly = System.Reflection.Assembly.GetExecutingAssembly(); var name = assembly.GetName(); return String.Format("Version {0}.{1}", name.Version.Major, name.Version.Minor); I can get the executing assembling without problem, but the call to GetName() returns a MethodAccessException with this message Attempt by security transparent method

Controlling rendering order (ZOrder) in Silverlight without using the Canvas control

我的梦境 提交于 2019-12-23 09:27:53
问题 I'm programmatically adding a UserControl to another in Silverlight 2 by adding it to the parent control's "Children" collection. At first this works fine. If I do something else to the window (in my case I'm scrolling the entire panel out of view then back into view) then it apparently changes the render order and causes my control to be behind the others. I'm searching for a way to control this behavior, to force my window to be on top. The Canvas control has a ZOrder property that allows

Create video file on Windows Phone 7

陌路散爱 提交于 2019-12-23 09:25:53
问题 Is it possible to create programmatically video file (e.g. .wmv, .avi, etc.) (merge BMP and .wav files) on Windows Phone ? I found a lot of 3rd party utilities, but actually they are C++ based and won't work on Windows Phone Platform . Many thanks, Any help will be appreciated. 回答1: I wouldn't suggest going this route.. a phone is a light weight device. if you want to do these, would suggest uploading them and doing it elsewhere. once done, the results are downloaded. 回答2: Even if it was