silverlight

Question about ViewModelLocator in Mvvm Light

Hi, I have just started to use and learn mvvm pattern with the help of MVVM Light toolkit. I want to use MVVM Light in my project but I dont know how to use ViewModelLocator. I am not getting what it is used for. Kindly suggest with samples or examples. Thanks ...

Creating Heat Maps for Bing Maps' Silverlight application

Looking for resources as much as anything. I have a nice, simple Silverlight-based Bing Maps application that puts pins into the map. Now I have a lot of pins, I'd like to instead create heat maps on-the-fly. I'm trying to look for resources that explain how to go about this, but can't find anything. So, any ideas? ...

Can I replace WPF by Silverlight

Could Silverlight and WPF be interchangeable? I mean, using Silverlight for Windows applications and WPF for web applications. ...

WPF OnKeyUp in UserControl not firing

I have Window with UserControl. I subscribed for OnKeyUp event but it does not firing. Inside UserControl constructor i use method this.Focus(); But still onkeyup does not firing. What is wrong and what i can to do to catch this event? ...

What unit testing tools should I use for Silverlight 4?

I'm starting up a brand new project using VS2010 and Silverlight 4. This is my first Silverlight project and I'm at a loss as to what tools I should use for both mocking and unit testing. There's Rhino.Mocks 3.5 for Silverlight, but the author marked it as an alpha release. Moq claims Silverlight support, but I've not used it before. ...

Silverlight: Lazy loading from nHibernate

I've recently been using/working on an open source project for Flex/Java/BlazeDS which facilitates lazy loading of Hibernate entities & collections in Flex. (Ie., solves the org.hibernate.LazyInitializationException exception when serializing) This issue has long been a problem for Flex/Java/Hibernate developers. dpHibernate solves th...

Add RubberBand on Silverlight Image Control

I want to have a rubberband on a silverlight image control, in order to select zones on an image and copy it. Thanks for your help. (No specific version of SL required) Guys??? Where are the experts? any ideas? remarks, anything....???? ...

Binding the Silverlight's Border.Clip RectangleGeometry.Rect property

I have the following XAML: <Border x:Name="ClippingBorder" VerticalAlignment="Stretch" BorderThickness="0"> <Border.Clip> <RectangleGeometry RadiusX="4.4" RadiusY="4.4" Rect="{Binding ClippingRectangle}"/> </Border.Clip> </Border> And the following codebehind: private Rect clippingRectangle; public Rect Clippi...

silverlight page caching

I'm having trouble figuring out how to cache pages already visited in my silverlight application. I have an array of URIs declared like so: let pages : UriUserControl array = [| new Module1.MyIdeas() :> UriUserControl ; new Module1.Page2() :> UriUserControl ; new Module1.Page3() :> UriUserControl ; new ...

Drag and Drop Text on Image in silverlight

I have a application in which i want that on the right there would be image.On the left there would be a textbox and button.After user enters anything in the textbox and click on the button.The text should appear on the image in the form of draggable panel by which user could position the text on the image. How could i do this? Plz h...

How to group items in a list by their first letter in Silverlight?

I have a ListBox to which I bound a sorted list of strings. I would like to display the list with dividers (headers) that announce the new letter - something like the 'Contacts' list on the iPhone. Does anybody know how to achieve this goal? Perhaps using ListBox is not the right idea. I am doing this with VS Express 2010 for Windows...

How do you evaluate code maintainability of HTML5 vs. Silverlight

Comparison of HTML5 and Silverlight as Web development platform is a popular topic, and arguments often focus on readiness of HTML5 or additional step to install Silverlight plug-in. But let's say there are no such issues: all browsers have good support for HTML5, and all browsers come with built-in Silverlight. I know it's false assumpt...

F# and MSBuild Tool (silverlight)

We are trying to use Static Resources within a 100% F# Silverlight application. Embeded within the XAML of the referencing control, everything works. But once I pull them out I am a loss. C# applications set the build action as: MSBuild:MarkupCompilePass1 Two questions 1) does VS 2010 support this tool yet in f# silverlight projects...

Silverlight: How do I get a user's domain and username?

For an internal application, how can may Silverlight application detect the user's domain and username? ...

Silverlight/VB 6 Integration

VB 6 can host web pages, which means it can also host Silverlight apps. Communication from VB 6 to Silverlight can easily be done via URLs. But is there a way for the Silverlight app to send messages back to VB 6? ...

Silverlight and TCP

Is it possible for Siverlight to communicate directly with an open TCP port on the user's machine? ...

Silverlight control resize problem

Hi All I noticed Silverlight control resizing when page loades (it enlarges) why is this happening and how to fix this problem? ex) http://joel.neubeck.net/2008/04/silverlight-3d-flip-animation/ (not my work BTW) Thank you! ...

Animating a databound progressbar in Silverlight declaratively (no code-behind)

How does one animate a ProgressBar whose Value property is databound? <ProgressBar Height="25" Margin="5" Maximum="100" Value="{Binding CurrentProgress}"> My data source would probably "jump" from value to value, usually from user input; for example - user performs action, and the progress bar jumps 20 points. I would want to be able ...

Scrolling a TextBlock

Hey everyone, I have a TextBlock and a Textbox in the same location. Depending on what mode the user is in, I make one visible and the other collapsed. This is working fine, but how can I make the Textblock scrollable? I figured I should use a ScrollViewer, but I don't know why it's not working. I've tried messing around with the heigh...

WPF/Silverlight Programmers: Is MVVM Overkill?

Hello, I just have mixed feelings about MVVM. It seems I need to code so much to get the most remedial things to work. I miss events (commanding is such a pain), and I miss having a reference to the view! I was just wondering about your feelings of MVVM vs the plain old code behind way. What do you like better and/or what do you normal...