Skip to content

Commit cf7ad19

Browse files
authored
Merge pull request #2644 from nodatasheet/2476
Add "Associated to Others" to Wipe Family Parameters button
2 parents 1012204 + 6f2ea17 commit cf7ad19

File tree

2 files changed

+722
-626
lines changed

2 files changed

+722
-626
lines changed

pyrevitlib/pyrevit/forms/FamilyParameterItemStyle.xaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
<Border x:Name="IsLabeled" Background="{DynamicResource pyRevitAccentBrush}" Height="16" Margin="5,0,0,0" Padding="8,0,8,0" Visibility="Collapsed" CornerRadius="4">
1111
<TextBlock Text="Used as Label" Foreground="White" FontSize="10"/>
1212
</Border>
13+
<Border x:Name="IsAssociated" Background="{DynamicResource pyRevitAccentBrush}" Height="16" Margin="5,0,0,0" Padding="8,0,8,0" Visibility="Collapsed" CornerRadius="4">
14+
<TextBlock Text="Associated to Others" Foreground="White" FontSize="10"/>
15+
</Border>
1316
</WrapPanel>
1417
<ControlTemplate.Triggers>
1518
<DataTrigger Binding="{Binding Path=istype}" Value="True">
@@ -21,5 +24,8 @@
2124
<DataTrigger Binding="{Binding Path=islabeled}" Value="True">
2225
<Setter TargetName="IsLabeled" Property="Visibility" Value="Visible"/>
2326
</DataTrigger>
27+
<DataTrigger Binding="{Binding Path=isassociated}" Value="True">
28+
<Setter TargetName="IsAssociated" Property="Visibility" Value="Visible"/>
29+
</DataTrigger>
2430
</ControlTemplate.Triggers>
2531
</ControlTemplate>

0 commit comments

Comments
 (0)