What Changed
The MenuItemsPosition
enum is no longer used in the ItemsPosition property. This property now accepts the ItemPosition enum that contains the following values: Start
, Center
, End
.
In the previous version, the MenuItemsPosition
enum contained the SpaceAround
value. The latter allowed you to stretch menu items. Now you can use a new ItemsStretched property.
Reasons for Change
We were forced to make these changes due to the implementation of a new functionality in this release: new properties that allow you to specify an individual item's position and stretch individual items. The DxMenu and DxMenuItem class now contains similar properties:
How to Update Existing Apps
If you used the ItemsPosition
property in application code, change its value from MenuItemsPosition.*
to ItemPosition.*
.
Razor@*old code*@
<DxMenu Title="DevExpress"
ItemsPosition="MenuItemsPosition.Start">
...
</DxMenu>
@*new code*@
<DxMenu Title="DevExpress"
ItemsPosition="ItemPosition.Start">
...
</DxMenu>
If you specified the MenuItemsPosition.SpaceAround
value, remove the ItemsPosition
property and set the DxMenu.ItemsStretched
property to true
.
Razor@*old code*@
<DxMenu Title="DevExpress"
ItemsPosition="MenuItemsPosition.SpaceAround">
...
</DxMenu>
@*new code*@
<DxMenu Title="DevExpress"
ItemsStretched="true">
...
</DxMenu>