Monday, September 17, 2012

IIS Self-Signed Certificate for SharePoint 2007 Site

See sites such as this one. Basically create the web app in CA setting port to 443 and SSL. Create the Site coll. Then in IIS 7, select the site, click Bindings, then add a self signed certificate.

Friday, September 14, 2012

Thursday, September 6, 2012

Binding Mode Redundant for ItemsSource

Was wondering whether I need to set binding mode on DataGrid columns. The answer is no:

there is no need for this to be TwoWay. ItemsSource bindings work by reference, so when Add/Delete/Edit takes place on an editable datagrid, the chages reflect back to the source observable collection automatically (inspite of the binding mode).
WPF-it http://stackoverflow.com/questions/7505487/refresh-datagrid-automatically-when-its-itemssource-changed

Saturday, September 1, 2012

Event Forwarder

Example of event forwarder in ICommand implementations see ref1  ref2 in BCL and in RelayCommand:


public event EventHandler CanExecuteChanged
{
add { CommandManager.RequerySuggested += value; }
remove { CommandManager.RequerySuggested -= value; }
}