void SelectionTreeDataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            FeatureModel nfm = (FeatureModel)e.NewValue;

            if (nfm != null)
            {
                TreeModel tm = new TreeModel();
                tm.Features      = nfm.FeatureList;
                ColumnTree.Model = tm;
            }
        }
        private void Control_Loaded(object sender, RoutedEventArgs e)
        {
            FeatureModel fm    = this.DataContext as FeatureModel;
            TreeModel    model = new TreeModel();

            model.Features = fm.FeatureList;

            ColumnTree.Model = model;

            // Move the localised menu item entries
            foreach (MenuLabel item in fm.ContextMenuEntries)
            {
                MenuLabelList.Add(new MenuLabel {
                    Text = item.Text
                });
            }

            this.DataContextChanged += new DependencyPropertyChangedEventHandler(SelectionTreeDataContextChanged);
        }