Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.UI.Objects.WPF.Xaml package

Submodules

duHast.UI.Objects.WPF.Xaml.XamlLoader module

A class to load xaml files.

Based on:

https://markheath.net/post/wpf-and-mvvm-in-ironpython

class duHast.UI.Objects.WPF.Xaml.XamlLoader.XamlLoader(xaml_path)

Bases: object

Loads a XAML file and provides access to its objects.

Parameters:

xaml_path (str) – The path to the XAML file to load

load_xaml(xaml_path)

Load the XAML file and parse it.

Parameters:

xaml_path (str) – The path to the XAML file to load

Returns:

The root element of the loaded XAML

Return type:

System.Windows.UIElement

Module contents