Advanced Forum Search Results
-
Have a look at my post
http://weblogs.asp.net/manishdalal/archive/2009/10/01/silverlight-3-custom-sorting-with-paging-support.aspx
-
Bind directly to the base object
Binding Converter={StaticResource backgroundConverter}
This way you will have access to entire object and can lookup any property on the object.
Alternatively use the ViewModel pattern and bind to a custom property that directly returns background color
-
Use DataGridTemplateColumn and incorporate Border in the CellTemplate. Then you can bind Background to data property that return proper color or alternatively use a IValueConverter.
Here is an example from one of my blog post
<data:DataGridTemplateColumn Width="6" MinWidth="6" MaxWidth="6" ...
-
Just move DataSource that is bound to ComboBox outside of DataForm, and directly bind to DomainContext entities. Have a look at
http://weblogs.asp.net/manishdalal/archive/2009/07/03/silverlight-3-combobox-control.aspx (sample updated Sep 21 2009)
-
SDDP,
I have updated ComboBox post with newer sample source code (See page Address Form DDS) You need to make sure that you are using same DomainContext. One opiton to share domain context in XAML is to create domain context as resouce and assign to DataSouce domain context as resource lookup. However do note that there is a marked delay in ...
-
OK, I found out the cause for the above issue!
It occurs if you install SL2 and SL3 on the same machine. I was using the switch solution that uninstalls SL3/SL2 as needed. But that does not seem to work!!! Even after uninstalling SL2/SL3, files are still present in the assembly cache (download). And VS must be ...
-
Add Service Reference produces different output for SL2 vs. SL3 beta when it comes to reusing types in referenced assemblies. For SL2, it works properly and no type definition is generated for types already found in referenced assemblies. However for SL3 (beta), it always adds new type definition (in Reference.cs) even though type is already ...
-
I just tested by remvoing the workaround and ComboBox now works properly. Also the bug with changing ComboBox list size seems to have been fixed as well! It now displays properly evertime list changes!
-
Hi Romanot,
To get mutil row selection, set
SelectionMode = DataGridSelectionMode.Extended
and use SelectedItems to get list of selected rows
-
Hi Hoangtuit,
In edit button clik, you will get reference to datagrid item(Resource). Once you have that, you will either need to new up ResourceType based on information from Resouce or use LINQ to find ResourceType form ResourceTypeList that is bound to ComboBox and then set SelectedItem on ComboBox.
I ...