Replace PropertyGrid.Legacy.Wpf.dll

Grids for WPF Forum

Posted 9 months ago by Li Xiang
Version: 23.1.2
Avatar

The ActiproSoftware.Editors.Interop.PropertyGrid.Legacy.Wpf.dll assembly currently referenced by the WPF project now wants to replace the Legacy version with ActiproSoftware.Editors.Interop.Grids.Wpf.dll, but the content names in the two assemblies are different, I couldn’t find a specific replacement method in the document. Where can I find the upgrade manual or replacement manual for reference?

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ActiProPropGrid="http://schemas.actiprosoftware.com/winfx/xaml/grids"
                    xmlns:gridseditors="http://schemas.actiprosoftware.com/winfx/xaml/gridseditors">

    <Style TargetType="{x:Type ActiProPropGrid:TreeListViewToggleButton}"></Style>
</ResourceDictionary>

As per the above code, in the legacy version DLL, we were able to access the TreeListViewToggleButton. However, after replacing it with the latest version of ActiproSoftware.Editors.Interop.Grids.Wpf.dll and ActiproSoftware.Grids.Wpf.dll, we are encountering an issue where the TreeListViewToggleButton cannot be found. The Product Document we have reviewed so far does not mention whether the TreeListViewToggleButton has been removed or replaced with something else in the newer version.

[Modified 9 months ago]

Comments (5)

Posted 9 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

The newer Grids assembly was introduced in v17.1 and here's a link to its conversion documentation topic.

The conversion documentation doesn't reference the TreeListViewToggleButton type though, possibly since it was a primitive.  In the newer Grids, that button type has been replaced by the ActiproSoftware.Windows.Controls.Grids.Primitives.TreeItemExpansionToggleButton control, which inherits ToggleButton.


Actipro Software Support

Posted 9 months ago by Li Xiang
Avatar

First of all, thank you for your response.

We did go through the mentioned website as part of our research. However, the upgrade information provided in the response is somewhat limited and lacks detailed replacement guidelines. While we can certainly refer to the Product Document for starting a new project from scratch, our current situation involves upgrading code from the Legacy version. This involves dealing with various classes and properties that are present in the Legacy version. We are hoping for a comprehensive manual that can clearly outline the replacements for these classes and properties in the new version. This would greatly assist us in ensuring a smooth transition during the upgrade process.

Posted 9 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

The conversion topic we previously linked to is the only documentation available to specifically assist with the migration.

To better understand the new API, I would also suggest you review the source code of the various samples we provide in the Sample Browser application.  If you are having issues with a specific part of the conversion, looking at an implementation of the same topic in the Sample Browser can help.  Each of the samples are available in our GitHub repository and are included with the offline installer.

If you encounter specific issues during the migration and need assistance, please reach out with details about what you are trying to accomplish we can offer additional guidance.


Actipro Software Support

Posted 9 months ago by Li Xiang
Avatar

Is TreeListViewRowPresenter not available in the new version? Has it been replaced with a different type? Additionally, TreeListViewRowPresenter was not used in the samples of the old version, so we cannot determine the replacement type by comparing old and new version samples. We have found a TreeListViewItemRowPanel, but it has significantly fewer properties compared to TreeListViewRowPresenter. It doesn't seem to closely resemble TreeListViewRowPresenter due to the substantial difference in the number of properties.

Posted 9 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

TreeListViewRowPresenter is only in the old version and was only used in our control templates.  I assume you had a custom item control template and it was part of that?  If so, you would want to look at how item control templates are implemented in the new version and clone one of those templates instead, tweaking them however you need.  They are probably very different from the old ones, but will need to be replicated properly for functionality to work.  You can download the default styles/templates from your account.

Or you can see if a custom item control template is even needed any more for your app and if not, stick with the default.


Actipro Software Support

The latest build of this product (v24.1.2) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.