private void SetActionsGrid()
        {
            PlugInsActionsGrid.ShowEdit   = Visibility.Collapsed;
            PlugInsActionsGrid.ShowUpDown = Visibility.Collapsed;
            PlugInsActionsGrid.ShowTitle  = Visibility.Collapsed;

            //if (mPluginPackage.TextEditors().Count() == 0)
            //{
            //    TextEditorTab.Visibility = Visibility.Hidden;
            //    ActionsTab.Visibility = Visibility.Collapsed;
            //    PlugInsActionsGrid.ShowTitle = Visibility.Visible;
            //    PlugInsActionsGrid.SetTitleLightStyle = true;
            //}

            GridViewDef view = new GridViewDef(GridViewDef.DefaultViewName);

            view.GridColsView = new ObservableList <GridColView>();
            view.GridColsView.Add(new GridColView()
            {
                Field = "Description", Header = "Action Type", AllowSorting = true, WidthWeight = 300, BindingMode = BindingMode.OneWay
            });
            view.GridColsView.Add(new GridColView()
            {
                Field = "UserDescription", Header = "Description", WidthWeight = 300, BindingMode = BindingMode.OneWay
            });
            PlugInsActionsGrid.SetAllColumnsDefaultView(view);
            PlugInsActionsGrid.InitViewItems();


            PlugInsActionsGrid.DataSourceList = mPluginPackage.GetStandAloneActions();
        }
        private void SetActionsGrid()
        {
            PlugInsActionsGrid.ShowEdit   = Visibility.Collapsed;
            PlugInsActionsGrid.ShowUpDown = Visibility.Collapsed;
            PlugInsActionsGrid.ShowTitle  = Visibility.Collapsed;

            if (mPlugInWrapper.TextEditors().Count() == 0)
            {
                TextEditorTab.Visibility              = Visibility.Hidden;
                ActionsTab.Visibility                 = Visibility.Collapsed;
                PlugInsActionsGrid.ShowTitle          = Visibility.Visible;
                PlugInsActionsGrid.SetTitleLightStyle = true;
            }

            GridViewDef view = new GridViewDef(GridViewDef.DefaultViewName);

            view.GridColsView = new ObservableList <GridColView>();
            view.GridColsView.Add(new GridColView()
            {
                Field = "Description", Header = "Action Type", AllowSorting = true, WidthWeight = 300, BindingMode = BindingMode.OneWay
            });
            view.GridColsView.Add(new GridColView()
            {
                Field = "UserDescription", Header = "Description", WidthWeight = 300, BindingMode = BindingMode.OneWay
            });
            PlugInsActionsGrid.SetAllColumnsDefaultView(view);
            PlugInsActionsGrid.InitViewItems();

            ObservableList <PlugInAction> list = new ObservableList <PlugInAction>();

            if (mPlugInWrapper.Actions != null)
            {
                foreach (PlugInAction Action in mPlugInWrapper.Actions)
                {
                    list.Add(Action);
                }
                PlugInsActionsGrid.DataSourceList = list;
            }
            else
            {
                //TODO : handle if no Actions Found
            }
        }