How to create a unit test for a Silverlight socket server?
I am using the Silverlight UnitTest framework.
Edit:
I have a simple socket server, which listens for messages. When a message is receive, the server responds to the client. The client is in Silverlight.
How can I create a unit test to check if the server response is correct?...
why "Library caching" is disabled when "Out of browser" is enable in silverlight projects? i can choose only one at a time! why!!!?
...
I am showing a set of images in a vertical orientation using stackpanel inside a Scrollviewer. the code is working fine when i changed the orientation to horizontal.
thumbnailViewerScroller1.InvalidateScrollInfo();
thumbnailViewerScroller1.ScrollToVerticalOffset(-50.0);
thumbnailViewerScroller1.UpdateLayout();
thumbnailViewerSc...
Hey Stackoverflowers :)
For our Silverlight Project (SL4) I'm using a Model which might contain Lists (IList<AnotherModel>). According to good practice and rule CA2227:CollectionPropertiesShouldBeReadOnly
the IList properties don't have a public setter. We serialize the Model using the DataContractSerializer which is working. But when ...
When I release a custom control which works in both Silverlight 3 and Silverlight 4 is there any reason to provide a separate binary version targeted at Silverlight 4?
As far as I understand SL4 apps using SL3 controls run normally in SL4 mode but maybe there are some hidden benefits of recompiling controls for SL4 (or gotchas of not d...
I'd like to see if anyone out there can steer me in the right direction for linking up a Silverlight project with an MVC2 one. I know how to get it started but how do I get the .xap to show in the View? Looking for a good tutorial or blog?
...
I've used WCF RIA services with Entity Framework to build a simple application which can display and updates data about school courses. This was done by following the Microsoft tutorials. Now I would like to have a chart which shows a count for how many courses are on a key stage.
Example:
Key Stage 3 - 20 courses
Key Stage 4 - 32 co...
I was debugging in Visual Studio 2010, which we just installed and trying to look at a dictionary in the quick watch window. I see Keys and Values, but drilling into those shows the Count and Non-Public members, Non-Public members continues the trail and I never see the values in the dictionary. I can run test.Take(10) and see the values...
Hi everybody!
In a Silverlight 4 proj i'm using WCF RIA services, MVVM principles and EF 4. I 'm running into this situation:
created an entity called Category and another one called CategoryLocale (automated using VS, no POCO). The relation between them is 1 to N respectively (one Category can have many CategoryLocales), so trough this...
Created a simple Silverlight 4 application (SimpleApp) then added a Silverlight 4 library (LibraryA). Added code to the library (LibraryA) to implement MouseOverBehavior by inheriting from CommandBaseBehavior along with the appropriate attached property class/methods. Added reference in SimpleApp to LibraryA and went to MainPage.xaml to ...
Hi there
I have a silverlight application in vs2010 and iam using silverlight 4.0. I have to show a videoppt in which a video is synchronised with images and it runs as a video powerpoint presentation. Is it possible to preload the images or cache them, so that they get rendered as soon as the video starts. If there is a way out, plz gu...
I'm working on re-writing a WinForms application into Silverlight. One use case in the WinForms app allows users to drag TIFF images (of faxes) from Outlook directly onto an "attach an image or fax to this case" control in the WinForms app. Is there a Silverlight 4 control which allows for the same functionality? It's important to realiz...
hi,
I am new to Silverlight. I need to develop a Silverlight application along with charts.
Any idea how I should develop this thing? Any articles, code which tell me how to do it
that would be really great. Please share your thoughts how i can achieve this.
thank you
...
As of Silverlight 4 it is possible to data bind against a DependencyObject (instead of a Framework element in previous versions). So far so good, but how do I bind agains a collection of DependencyObjects.
The DataContext is not passed from the ObservableCollection to the collection elements, so that the DependencyProperties of the Depe...
hi,
I want to create a collapsible grid in Silverlight 4. once user clicks on row of the datagrid if that row has any child row it should be shown. if again user clicks the same row should hide the child row what was shown eariler.
right now i am able to show data in datagrid once the user clicks any row
i am able get the id of t...
I am using Silverlight 4.0
What is happening is that the ScrollViewer will only scroll when one hovers over controls like textbox, treeviews, etc.
If the mouse is over non control objects (like grids) then the mousewheel scrolling doesn't work.
Is this normal behavior?
...
A short while back i had to display the current version of our Silverlight app. After some googling the following code gave me the desired result:
var fileVersionAttributes = typeof(MyClass).Assembly.
GetCustomAttributes(typeof(AssemblyFileVersionAttribute), false) as AssemblyFileVersionAttribute[];
var version = fileVersionAttribut...
Hey all, I have two functions in a SL project (VS2010) that do almost exactly the same thing, yet one throws an error and the other does not. It seems to be related to the projections, but I am unsure about the best way to resolve.
The function that works is...
public void LoadAllChunksExpandAll(DataHelperReturnHandler handler, string ...
I have this problem in a bigger Project...... so I set up a 'Testpoject' as Proof of Concept:
New Silverlight-Application
Add Listbox
Fill listbox with a few Checkboxes
Register listBox1_MouseLeftButtonDown
register listBox1_MouseRightButtonDown
You will see, that the listBox1_MouseLeftButtonDown won't fire under any circumstances......
Hi,
How should I go about customising the AutoCompleteBox in Silverlight so that while typing I can filter multiple Selector ListBoxes. Basically I want a Popup that contains 'n' ListBoxes vertically stacked and when I type, the filtering operates on all of them simultaneously. I can then select an item from any of the ListBoxes.
Thank...