Advanced Forum Search Results
-
I suppose, thinking about it, that there could be a good reason why you might require it to be two way, otherwise you can't actually change the underlying selected item value. However, the problem is that if you do that and you have the setter then Silverlight nulls my selected item property, which is not what I want either. ...
-
I have now tried two way binding. You are correct, it does work. If you remove the setter from the selected item property then it will actually work all the time.
So, hopefully, someone can explain why this extremely odd behavior is happening. There should be no need to set it two way.
...Stefan
-
The new WCF Ria services build now automatically copies your enums from the data access layer down to the Silverlight client. This is good. However, it doesn't copy the description attribute, e.g: public enum ItemPickupEnum
{
[Description("Pickup Only")]
PickupOnly,
...
-
Matthew,
Oh, DLL hell! I thought we'd gotten over that problem! :-) . However, you are absolutely correct - after replacing all those DLLs across the whole project - that problem is now gone! Thanks!
However, I'm now back to the problem I mentioned to Stephen with the [Invoke] operation. I have a class like ...
-
Sorry, just to correct my answer - The selected item is set correctly in my code, but the selected item is not correctly set in the list box.
...Stefan
-
[quote user="FuryDiamond"]Not sure if this will help, but did you initialize the selected index after the listbox is loaded.[/quote]
Thanks for the suggestion. It's actually the other listbox (the first one) that the problem is occurring in. It probably makes life easier to have a default selection in the bottom box, but once you ...
-
I have two Listboxes. There should always be an item selected in the top ListBox, which displays a series of items based on selection in the bottom ListBox. Unfortunately, WPF sets the selected item perfectly, but Silverlight doesn't set the selected item correctly after I change the selection in the bottom ListBox for ...
-
[quote user="samcov"]Stefan, how did you post your code so cleanly?[/quote]
When you click the reply button, the rightmost toolbar button allows you to insert source code. It will format it for you so that it looks okay.
...Stefan
-
Yes, I have a working sample here:
http://forums.silverlight.net/forums/t/145144.aspx
I just had to add a reference to this DLL:
c:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\Microsoft.CSharp.dll
However, the com interop system will only work out of browser and I assume in trusted mode. This is because in theory, ...
-
Yes, I have a working sample. You can find it here:
http://forums.silverlight.net/forums/t/145144.aspx
I just had to reference this dll:
c:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\Microsoft.CSharp.dll
However, the COM interop support is only out of browser. This is comprehendible because a com ...