private void SetPlugInsGridView() { //Set the Tool Bar look PlugInsGrid.ShowEdit = Visibility.Collapsed; PlugInsGrid.ShowUpDown = Visibility.Collapsed; PlugInsGrid.SetTitleLightStyle = true; GridViewDef view = new GridViewDef(GridViewDef.DefaultViewName); view.GridColsView = new ObservableList <GridColView>(); view.GridColsView.Add(new GridColView() { Field = nameof(PluginPackage.PluginId), Header = "Plugin ID", WidthWeight = 300, BindingMode = BindingMode.OneWay }); view.GridColsView.Add(new GridColView() { Field = nameof(PluginPackage.Folder), Header = "Folder", WidthWeight = 300, BindingMode = BindingMode.OneWay }); view.GridColsView.Add(new GridColView() { Field = nameof(PluginPackage.PluginPackageVersion), Header = "Version", WidthWeight = 300, BindingMode = BindingMode.OneWay }); //view.GridColsView.Add(new GridColView() { Field = "Description", WidthWeight = 300, BindingMode = BindingMode.OneWay }); //view.GridColsView.Add(new GridColView() { Field = "PlugInType", Header = "Type", WidthWeight = 300, BindingMode = BindingMode.OneWay }); PlugInsGrid.SetAllColumnsDefaultView(view); PlugInsGrid.InitViewItems(); PlugInsGrid.DataSourceList = WorkSpace.Instance.SolutionRepository.GetAllRepositoryItems <PluginPackage>(); }
private void SetPlugInsGridView() { //Set the Tool Bar look PlugInsGrid.ShowEdit = Visibility.Collapsed; PlugInsGrid.ShowUpDown = Visibility.Collapsed; PlugInsGrid.SetTitleLightStyle = true; GridViewDef view = new GridViewDef(GridViewDef.DefaultViewName); view.GridColsView = new ObservableList <GridColView>(); view.GridColsView.Add(new GridColView() { Field = "Name", Header = "Name", WidthWeight = 300, BindingMode = BindingMode.OneWay }); view.GridColsView.Add(new GridColView() { Field = "Description", WidthWeight = 300, BindingMode = BindingMode.OneWay }); view.GridColsView.Add(new GridColView() { Field = "PlugInType", Header = "Type", WidthWeight = 300, BindingMode = BindingMode.OneWay }); view.GridColsView.Add(new GridColView() { Field = "PlugInVersion", Header = "Plugin Version", WidthWeight = 300, BindingMode = BindingMode.OneWay }); PlugInsGrid.SetAllColumnsDefaultView(view); PlugInsGrid.InitViewItems(); PlugInsGrid.btnRefresh.AddHandler(Button.ClickEvent, new RoutedEventHandler(RefreshGridDataHandler)); }