ctodx

This Blog

News

Favorite Posts

Archives

April 2017 - Posts

  • WinForms Default Settings: Some changes afoot in v17.1

    Default settings: they can be a force for good and then quite quickly they can be a right royal pain. After all, when we supply some advanced functionality as part of our suites and controls, it’s good to have a reasonable default setting for the new property or behavior. The issue then becomes what happens when we add some more behavior and suddenly the current default setting is no longer the optimal or better one. What to do? Alter it and have it result in some breaking change in your app? Mmm.

    Wrenchv17.1 of the WinForms suite of controls brings numerous new features, features that we are starting to describe in blog posts. As part of these new, and we hope, better features, we’re changing some default settings. First, let me list the changes I’m talking about, and then I’ll describe how we’re going to mitigate them.

    • With the Data Grid, Vertical Grid and Tree List end-users will be able to modify unbound columns' expressions by using the advanced Expression Editor dialog, which supports auto- completion and syntax highlighting.
    • Automatic filtering rows for Data Grid and Tree List now allow end-users to change the filtering condition from the default "Equals" (or "Like") to any other condition, e.g. "Starts With" or "Is Not Like".
    • Data Grid now prefers speed rather than absolute precision when calculating the best widths for columns.
    • Excel-inspired filtering menus are now the default filters for Data Grid and Tree List controls.
    • End-users can now hold the "Ctrl" key when dragging Data Grid column headers to the group panel. This allows end-users to apply joint data grouping by multiple columns at once.
    • The default Ribbon style is now "Office 2013".
    • Tree List control now enables filtering and shows its Find panel out-of-the-box.

    I’m sure that you’ll agree that these changes and defaults are very beneficial to your users, but I’m sure there are occasions when you’d rather introduce such changes in a step-wise fashion over a period of time rather than just have them all suddenly appear when you upgrade to v17.1. For new apps, sure, have at it, let’s use them all.

    To help you out, we have also added a new static property: DefaultSettingsCompatibilityMode. To revert all these defaults to their previous values in one go, simply change this property value from Latest to v16. (Refer to this documentation article to see the complete property list this setting affects.) I’m sure you can see where this is going in the future: adding other enumeration values for later version numbers to revert defaults back to a known point.

  • WPF Rich Text Editor: Upcoming Breaking Change

    Starting with v17.1, we are improving how we generate the ribbon for the WPF Rich Text Editor with regard to where we source the images used. Although we shall be maintaining the current behavior alongside the new enhancements for v17.1, this backward compatibility will be removed in v17.2, causing a possible breaking change.

    WrenchCurrently the ribbon generation process uses images from two different sources: the DevExpress.RichEdit.Core.dll assembly, as well as the WinForms Rich Text Editor (no, that is not a typo!). To put it mildly, this is not optimal. In v17.1, we have copied these images to the DevExpress.Images.dll assembly as well, and the new ribbon generation code for the Rich Text Editor will source the images from there. However, this could cause a breaking change since we are referencing an assembly that you may not be deploying as part of your app.

    Please note that the images are exactly the same, they are just provided in a different assembly.

    Of course, this double collection of ribbon images could be a source of future bugs: we have to ensure any new or changed images are compiled into two completely different assembly sets. Indeed you could view this as a special kind of “code duplication”. Hence, in v17.2 we shall be removing these Rich Edit ribbon images from the Core assemblies, and from then on they will only be available from the Images assembly.

    To avoid future problems, when you upgrade to v17.1, please ensure that the DevExpress.Images.dll assembly is included in your build process.

LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2017 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners