This example demonstrates how to implement custom attached behavior in order to bind columns from your view-model. You can check the code in MyColumnsBindingBehavior.cs file.