Hello nickcole, You can solve your issues, if you change a methods for your actions: Show Hide Category private void ShowHideCategory_Execute(object sender, SimpleActionExecuteEventArgs e) { //GetController var xafariDockingWinWindowController = Frame.GetController();//Set DockVisibility if(xafariDockingWinWindowController == null) return; var manager = xafariDockingWinWindowController.DockManager; foreach (DockPanel dockpanel in manager.Panels) { if (dockpanel.Visibility != DockVisibility.Visible) dockpanel.Visibility = DockVisibility.Visible; else dockpanel.Visibility = DockVisibility.Hidden; } } Top 3 private void Top3_Execute(object sender, SimpleActionExecuteEventArgs e) { if(View.Id== "Product_LookupListView") { //IModelListView model = View.Model as IModelListView; //if(model == null) return; //model.TopReturnedObjects = 3;var view = this.View as ListView; if(view == null) return; //view.CollectionSource.TopReturnedObjects = model.TopReturnedObjects; view.CollectionSource.TopReturnedObjects = 3; this.ObjectSpace.Refresh(); } } All Items private void AllItems_Execute(object sender, SimpleActionExecuteEventArgs e) { if (View.Id == "Product_LookupListView") { //IModelListView model = View.Model as IModelListView; //if(model == null) return; //model.TopReturnedObjects = 0;var view = this.View as ListView; if (view == null) return; //view.CollectionSource.TopReturnedObjects = model.TopReturnedObjects; view.CollectionSource.TopReturnedObjects = 0; this.ObjectSpace.Refresh(); } } We hope you will continue to use our product. Let us know if you need further assistance. Thanks, Sasha. |