Tagged Questions
59
votes
8answers
30k views
C# difference between `==` and .Equals()
I have a condition in a silverlight application that comapres 2 strings, for some reason when I use '==' it returns false while .Equals() returns true. Here is the code :
if ...
36
votes
10answers
13k views
Silverlight, Wpf Web App (xbap) or Click Once? Pros and Cons
We are starting a new project and I'm trying to decide which of the Wpf-esque develop/deploy strategies we should go with. In our case we are looking at quite a complex business app that will be used ...
29
votes
3answers
1k views
Silverlight: Glyphs Width
Scenario
I want to use Glyphs on WP7 to create a line of text that is justified, i.e. touches the left and right border of the surrounding rectangle.
My solution
var glyphs = new Glyphs();
...
28
votes
3answers
5k views
MVVM Light: how to unregister Messenger
I love the MVVM Light's Messenger and its flexibility, however I'm experiencing memory leaks when I forget to explicitly unregister the recipients (in Silverlight 4).
The cause is explained here, but ...
27
votes
2answers
8k views
HttpUtility.UrlEncode in Windows Phone 7?
The regular .Net framework contains HttpUtility.UrlEncode in the System.Web Assembly and in Silverlight it appears it was moved to System.Windows.Browser. But in Windows Phone 7 (which I thought was ...
25
votes
5answers
2k views
Line of business applications: Will F# make my life easy?
I develop mainly line of business applications.No scientific operations. No complex calculations. Just tie User Interface to database. The only reason I use threading is to do some work in background ...
25
votes
2answers
6k views
Validation Error Style in WPF, similar to Silverlight
By default, the Validation.ErrorTemplate in WPF is just a small red border without any ToolTip.
In Silverlight 4, the validation error is nicely styled out-of-the-box.
Here is a comparison of a ...
22
votes
2answers
15k views
Understanding the Silverlight Dispatcher
I had a Invalid Cross Thread access issue, but a little research and I managed to fix it by using the Dispatcher.
Now in my app I have objects with lazy loading. I'd make an Async call using WCF and ...
21
votes
7answers
9k views
What is the difference between WPF and Silverlight application? [duplicate]
Possible Duplicate:
WPF vs Silverlight
What is the difference between WPF and Silverlight application? Are they the same?
21
votes
6answers
10k views
Hiding inherited members in C#
I'm looking for some way to effectively hide inherited members. I have a library of classes which inherit from common base classes. Some of the more recent descendant classes inherit dependency ...
21
votes
4answers
9k views
Benefits of MVVM over MVC
Finally getting to do some Silverlight development and I came across MVVM. I am familiar with MVC and the article I was reading said because of XAML, MVC would not work out. Not having too much ...
21
votes
8answers
40k views
Silverlight DataGrid: Export to excel or csv
Is there a way I can export my Silverlight DataGrid data to excel or csv?
I searched the web but can't find any examples!
Thanks a lot
21
votes
4answers
1k views
4 points and Ellipse
I have 4 points.. i can draw a polygon usign this code
var p = new Polygon();
p.Points.Add(new Point(0, 0));
p.Points.Add(new Point(70, 0));
p.Points.Add(new Point(90, 100));
p.Points.Add(new ...
21
votes
7answers
7k views
How to dismiss a popup in Silverlight when clicking outside of the control?
In my Silverlight UI, I have a button that when clicked pops up a control with some filtering parameters. I would like this control to hide itself when you click outside of it. In other words, it ...
19
votes
3answers
29k views
Invalid cross-thread access issue
I have two ViewModel classes : PersonViewModel and PersonSearchListViewModel. One of the fields PersonViewModel implements is a profile image that is downloaded via WCF(cached locally in isolated ...