a very minimal example on how to run WPF window on Revit. There was a discussion on Autodesk RevitAPI Community, on how to implement WPF window within Revit. Link I have written this very minimal example on how things works under the hood, and added 2 examples
-
pick object this will allow user to select an element and show its name on the WPF window
-
Scope to Element a list of elements are shown in the wpf window. User can click on any of those and Revit will instantly scope to the selected elememt. (make sure you are in the 3D view)
Hope this helps newbie Revit API users.