Scotec.Revit.Wpf 2027.4.0-dev.4

This is a prerelease version of Scotec.Revit.Wpf.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Scotec.Revit.Wpf --version 2027.4.0-dev.4
                    
NuGet\Install-Package Scotec.Revit.Wpf -Version 2027.4.0-dev.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Scotec.Revit.Wpf" Version="2027.4.0-dev.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Scotec.Revit.Wpf" Version="2027.4.0-dev.4" />
                    
Directory.Packages.props
<PackageReference Include="Scotec.Revit.Wpf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Scotec.Revit.Wpf --version 2027.4.0-dev.4
                    
#r "nuget: Scotec.Revit.Wpf, 2027.4.0-dev.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Scotec.Revit.Wpf@2027.4.0-dev.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Scotec.Revit.Wpf&version=2027.4.0-dev.4&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Scotec.Revit.Wpf&version=2027.4.0-dev.4&prerelease
                    
Install as a Cake Tool

Scotec.Revit.Wpf

WPF base classes for Autodesk Revit add-in user interfaces.

Overview

Scotec.Revit.Wpf provides WPF-aware base types for Revit add-in windows, pages, and user controls. These base classes handle correct WPF resource dictionary loading when assemblies are loaded in isolated AssemblyLoadContext instances, ensuring that styles, templates, and resources resolve correctly regardless of how the add-in assembly is loaded into the process.

Key Features

  • RevitWindow: Window subclass that resolves merged resource dictionaries safely within an isolated AssemblyLoadContext. Use instead of Window directly in Revit add-in modal windows.
  • RevitPage: Page subclass with the same resource dictionary safety for page-based navigation UI.
  • RevitUserControl: UserControl subclass for custom controls in an isolated add-in assembly.

Why This Matters

When a Revit add-in is loaded into a custom AssemblyLoadContext (via Scotec.Revit.Isolation), WPF's standard pack://application URI resolution can fail because it targets the default load context. These base classes apply the correct resource loading strategy for isolated assemblies, preventing XamlParseException and missing-style errors at runtime.

Getting Started

Install the NuGet package:

dotnet add package Scotec.Revit.Wpf

Your project must target net8.0-windows or net10.0-windows.

Replace Window with RevitWindow in your add-in:

public partial class MyToolWindow : RevitWindow
{
    public MyToolWindow(MyViewModel viewModel)
    {
        DataContext = viewModel;
        InitializeComponent();
    }
}

License

MIT License https://licenses.nuget.org/MIT

Product Compatible and additional computed target framework versions.
.NET net10.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2027.4.0-dev.9 34 7/3/2026
2027.4.0-dev.4 57 6/20/2026
2027.3.4 104 6/15/2026
2027.3.3 98 6/10/2026
2026.4.0-dev.9 31 7/3/2026
2026.4.0-dev.4 54 6/20/2026
2026.3.4 113 6/15/2026
2026.3.3 97 6/10/2026
2025.4.0-dev.9 32 7/3/2026
2025.4.0-dev.4 50 6/20/2026
2025.3.4 89 6/15/2026
2025.3.3 97 6/10/2026
Loading failed