silverlight

Pros and Cons of JavaFX and Silverlight [closed]

自古美人都是妖i 提交于 2019-12-30 04:37:11
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I know there is already a question about the performance of Flex, JavaFX, and Silverlight. My question is a bit more broad: We are evaluating the merits of JavaFX and Silverlight to serve as the GUI technology that controls/configures our back-end service (currently written

Handling PropertyChanged in a type-safe way

旧街凉风 提交于 2019-12-30 04:32:05
问题 There have been plenty of articles about how to use reflection and LINQ to raise PropertyChanged events in a type-safe way, without using strings. But is there any way to consume PropertyChanged events in a type-safe manner? Currently, I'm doing this void model_PropertyChanged(object sender, PropertyChangedEventArgs e) { switch (e.PropertyName) { case "Property1": ... case "Property2": ... .... } } Is there any way to avoid hard-coding strings in a switch statement to handle the different

Where does business logic sit in MVVM?

馋奶兔 提交于 2019-12-30 04:31:49
问题 I am used to developing with N-Tier architecture, i.e. Data Access Layer, Business Logic Layer, etc Can anyone provide any advice or links about the best location for my business logic? Do I put all of this into classes within the Models folder of my Silverlight application? Paul 回答1: Business logic, as well as the data, is typically part of the Model layer in MVVM. The View is the visuals, and the ViewModel is the "glue" that lets you work with the business specific logic and data. Anything

Silverlight Crossdomain

[亡魂溺海] 提交于 2019-12-30 03:41:50
问题 I've seen a lot of links to MSDN and "works on my machine!" answers so I'd like to ask my question with the exact steps to duplicate what I'm doing. Because we are using an already existing webservice, I'm asking with the context of having a webservice hosted outside of my project, unlike many of the tutorials and videos online. So here goes: *** Create a new ASP.NET webservice project. It will come with an existing Service.asmx file exposing a "HelloWorld" web method. View in browser, hit

Silverlight 4.0 PDF Viewer [closed]

血红的双手。 提交于 2019-12-30 01:51:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Any free control to view PDF for Silverlight? or how to view pdf in silverlight from memory stream? 回答1: Try this question: Previewing PDF and PowerPoint files with Silverlight/Flash Other maybe useful links: http://forums.silverlight.net/forums/p/23986/85909.aspx#85909 http://www.siberix.com/reporting.html#pdf

Async requests to a web service

心已入冬 提交于 2019-12-29 09:40:07
问题 How to make async requests to a webservice from a Thread? 回答1: Here is the short answer without a load of explanations. Before calling the Async method on your Client object make sure you are not running on the UI Thread:- System.Threading.ThreadPool.QueueUserWorkItem( o => { try { svc.SomeMethodAsync(); } catch (err) { // do something sensible with err } }); Now the corresponding completed event will occur on a ThreadPool thread not the UI Thread. 回答2: Here is a solution using WCF. Service

Remove Pages windows phone

大憨熊 提交于 2019-12-29 09:10:11
问题 I have a big project where my application keeps retaining a page which I navigated away from. The page is only used minimal, and have a lot of graphics, I therefore want it to be completely removed from memory. I therefore used the following NavigationService.RemoveBackEntry(); Using the profiler I saw that, the above snippet made sure that I would only have 1 instance of the page. But as it is heavy with graphics I still want it to be completely removed from memory, i.e. no instances in the

I need help converting a c# anonymous method to vb.net

∥☆過路亽.° 提交于 2019-12-29 09:08:29
问题 provider.OptionsSet += delegate { provider.FinishedLoading(); }; 回答1: Nice demonstration how converters get this dramatically wrong, they have for a long time. The += operator isn't VB.NET syntax, AddHandler is required to subscribe events. Where the Do comes from is anybody's guess. The lambda can't be a Function, except for the very rare cases where the delegate type returns a value. Three bugs in one line, you don't stand a chance. You need VS2010 to write a Sub lambda. Like this: Module

remove button highlight on press in silverlight

会有一股神秘感。 提交于 2019-12-29 09:04:45
问题 I have a button to which i add a image as its background but when i press the button i get a square on the background of the button (highlight). How can i remove this? <Button VerticalAlignment="Top" HorizontalAlignment="Left" BorderBrush="Transparent" Click="FirstCubeSelected" x:Name="cube1Button" Padding="0" Margin="1,0,-1,0"> <Image x:Name="buttonImage" Source="/images/cub2onbtn.png" Width="176" Height="176" /> </Button> I usually do this in expression blend but i don't have access to it

Does HTML5 only replace the video aspects of Flash/Silverlight?

a 夏天 提交于 2019-12-29 08:14:10
问题 I see a lot of talk how HTML5 video tag will kill Flash. But while video is the most widely used part of Flash/SL, it's only a small part of their technical abilities. For instance you can write a game using full 3D graphics and socket connections in Flex, and serious business applications, etc. Is the thinking that Javascript will kill those parts of Flash/Flex/SL? Because while that seems feasible now for even quite rich web-apps, what about any kind of high-performance app like real-time