Skip to content
apobekiaris edited this page Oct 17, 2020 · 104 revisions

GitHub issues GitHub close issues

About

The HideToolBar package uses the the IModelListView.HideToolBar attribute to hide the toolbar.

Details

This is a platform agnostic module that 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](https://user-images.githubusercontent.com/159464/58032948-418c4500-7b2c-11e9-96bc-f853bd4b9287.png) ### Tests The module is tested on Azure for each build with these [tests](https://github.com/eXpandFramework/Packages/tree/master/src/Tests/Xpand.XAF.s.HideToolBar.HideToolBar). All Tests run as per our [Compatibility Matrix](https://github.com/eXpandFramework/DevExpress.XAF#compatibility-matrix) ### 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


Possible future improvements:

  1. Any other need you may have.

Let me know if you want me to implement them for you.

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: net461

DevExpress.ExpressApp Any
Fasterflect.Xpand 2.0.7
JetBrains.Annotations 2020.1.0
System.Reactive 4.4.1
System.ValueTuple 4.5.0
Xpand.Extensions.Reactive 2.202.58
Xpand.Extensions.XAF 2.202.58
Xpand.XAF.Modules.Reactive 2.202.58
Xpand.VersionConverter 2.202.10

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 at the constructor of your module.

Xpand.XAF.Modules.Reactive.ReactiveModuleBase.Unload(typeof(Xpand.XAF.Modules.HideToolBar.HideToolBarModule))