Breaking Change T975628
Visible to All Users

The MenuItemsPosition enum has been replaced with the ItemPosition enum

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>

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.