Skip to content

HideToolBar

Apostolis Bekiaris edited this page Aug 12, 2019 · 32 revisions

GitHub issues GitHub close issues

About

The HIdeToolBar package can be used to hide the Nested ListView toolbar. The module extends the model with the IModelListView.HideToolBar attribute. The implemented scenarios are described in the details section.

Installation

  1. First you need the nuget package so issue this command to the VS Nuget package console

    Install-Package Xpand.XAF.Modules.HIdeToolBar.

    The above only references the dependencies and nexts steps are mandatory.

  2. Ways to Register a Module or simply add the next call to your module constructor

    RequiredModuleTypes.Add(typeof(Xpand.XAF.Modules.HIdeToolBarModule));

Versioning

The module is not bound to DevExpress versioning, which means you can use the latest version with your old DevExpress projects Read more.

The module follows the Nuget Version Basics.

Dependencies

.NetFramework:

DevExpress.ExpressApp Any
System.Reactive 4.1.6
System.ValueTuple 4.5.0
Xpand.XAF.Modules.Reactive 1.2.46
Xpand.VersionConverter 1.0.34

Issues-Debugging-Troubleshooting

To Step in the source code you need to enable Source Server support in your Visual Studio/Tools/Options/Debugging/Enable Source Server Support. See also How to boost your DevExpress Debugging Experience.

If the package is installed in a way that you do not have access to uninstall it, then you can unload it with the next call when XafApplication.SetupComplete.

((Xpand.XAF.Modules.HideToolBarModule) Application.Modules.FindModule(typeof(Xpand.XAF.Modules.HideToolBarModule))).Unload();

Details

The module satisfies the following conditions:

  1. For all Nested Frames with HIdeToolBar attribute enabled a signal will be created out of the Frame.TemplatedChanged and the Frame.TemplateViewChanged events. For each signal emit the the ToolBar will be hidden.
  2. For Windows platform in addition to the ToolBar the DevExpress.ExpressApp.Win.SystemModule.ToolbarVisibilityController will be disabled which controls the Show Toolbar context menu.

image

Tests

The module is tested on Azure for each build with these tests

Examples

The module is integrated with the ExcelImporter.

Next screenshot is an example from ExcelImporter from the view that maps the Excel columns with the BO members. On the right side the nested ListView has the HideToolBar set to true.

image

You can’t perform that action at this time.