Sample Code Revit Batch Processor 1.1.11 documentation
IsChecked property should be bound similar to this sample code: <GridViewColumn.HeaderContainerStyle>
- <Style TargetType=”GridViewColumnHeader”>
- <Setter Property=”ContextMenu”>
- <Setter.Value>
- <ContextMenu>
- <ItemsControl ItemsSource=”{Binding UniqueFamilyNames}”>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <CheckBox
Content=”{Binding Value}” IsChecked=”{Binding IsChecked, Mode=TwoWay}” <<<— here Command=”{Binding CheckCommand}”/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ContextMenu>
</Setter.Value>
</Setter>
</Style> </GridViewColumn.HeaderContainerStyle>
Bases: ViewModelBase
A filter item for a view model view.
Is used in column context menu filters to filter the view based on the value of the item.
value – the value of the item
refresh_view_method – the method to call to refresh the view
Gets the value of the item displayed in the context menu.
Gets the is checked value of the item.
Based on:
Bases: ViewModelBase
A base class for WPF view models.
Based on:
Bases: INotifyPropertyChanged
A base class for WPF view models.
Raises property changed event for handlers
propertyName (str): the name of the property which has changed
Adds a handler to the property changed event.
Removes a handler from the property changed event.