0

I am a user of pyRevit and I am trying to create my own script with UI. I am trying to create listview with view templates in revit. In this listview I want to show Name of the view templates. Currently what I achieved can be shown on attached below image. enter image description here In this windows I need to show exact Name of template, not Autodesk.DB.ViewPlan. Below is a snippet from my .xaml fil regarding listview.

<ListView x:Name="listview" HorizontalAlignment="Left" Height="138" Width="315" ItemsSource="{Binding listview}" SelectionMode="Multiple" SelectedIndex="1" >
   <ListView.View>
       <GridView>
           <GridViewColumn/>
       </GridView>
   </ListView.View>
</ListView>
<Button x:Name="button" Content="Button" Height="30" ClickMode="Press" Click="fun" />

I was trying to used the code DisplayMemberPath="Name" but is doesn't work.

Nawed Nabi Zada
  • 2,819
  • 5
  • 29
  • 40
Kml123 P
  • 1
  • 1

0 Answers0