|
24 | 24 |
|
25 | 25 | <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,0,0,12"> |
26 | 26 | <TextBlock VerticalAlignment="Center" FontSize="20" FontWeight="Bold" Text="Friends" /> |
27 | | - <TextBlock VerticalAlignment="Center" Text="Filter:" Margin="8,4,8,0" |
28 | | - Visibility="{Binding IsBulkMode, Converter={StaticResource InverseBooleanToVisibilityConverter}}" /> |
29 | | - <ComboBox Width="100" ItemsSource="{Binding FriendFilters}" SelectedItem="{Binding SelectedFriendFilter}" |
30 | | - Visibility="{Binding IsBulkMode, Converter={StaticResource InverseBooleanToVisibilityConverter}}" /> |
31 | | - <ui:Button Margin="8,0,0,0" Command="{Binding RefreshFriendsCommand}" Content="Refresh" |
32 | | - Visibility="{Binding IsBulkMode, Converter={StaticResource InverseBooleanToVisibilityConverter}}" /> |
| 27 | + <TextBlock VerticalAlignment="Center" Text="Filter:" Margin="8,4,8,0" /> |
| 28 | + <ComboBox Width="100" ItemsSource="{Binding FriendFilters}" SelectedItem="{Binding SelectedFriendFilter}"/> |
| 29 | + <ui:Button Margin="8,0,0,0" Command="{Binding RefreshFriendsCommand}" Content="Refresh" /> |
33 | 30 |
|
34 | | - <ui:Button Margin="8,0,0,0" |
35 | | - Command="{Binding StartBulkUnfriendCommand}" |
36 | | - Content="Bulk Unfriend" |
37 | | - Visibility="{Binding IsBulkMode, Converter={StaticResource InverseBooleanToVisibilityConverter}}" /> |
38 | | - |
39 | | - <StackPanel Orientation="Horizontal" |
40 | | - Margin="8,0,0,0" |
41 | | - Visibility="{Binding IsBulkMode, Converter={StaticResource BooleanToVisibilityConverter}}"> |
42 | | - <TextBlock VerticalAlignment="Center" Text="{Binding BulkActionStatus}" Margin="0,0,8,0" /> |
43 | | - |
44 | | - <ui:Button Command="{Binding ToggleSelectAllCommand}" |
45 | | - Content="Select All" |
46 | | - VerticalAlignment="Center" |
47 | | - Margin="0,0,8,0" /> |
48 | | - |
49 | | - <ui:Button Command="{Binding ExecuteBulkUnfriendCommand}" |
50 | | - Content="Unfriend Selected" |
51 | | - Appearance="Danger" |
52 | | - IsEnabled="{Binding IsBulkUnfriendEnabled}" |
53 | | - Margin="0,0,8,0" /> |
54 | | - |
55 | | - <ui:Button Command="{Binding CancelBulkUnfriendCommand}" |
56 | | - Content="Cancel" |
57 | | - Appearance="Secondary" /> |
58 | | - </StackPanel> |
59 | 31 | </StackPanel> |
60 | 32 |
|
61 | 33 | <ItemsControl ItemsSource="{Binding FilteredFriends}" Grid.Row="2" HorizontalAlignment="Stretch"> |
|
124 | 96 | Command="{Binding DataContext.JoinFriendCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" |
125 | 97 | CommandParameter="{Binding}" |
126 | 98 | Height="30" |
127 | | - IsEnabled="{Binding IsOnline}" |
128 | | - Visibility="{Binding DataContext.IsBulkMode, RelativeSource={RelativeSource AncestorType=ItemsControl}, Converter={StaticResource InverseBooleanToVisibilityConverter}}"> |
| 99 | + IsEnabled="{Binding IsOnline}"> |
129 | 100 | <ui:SymbolIcon Filled="True" Symbol="Play24" FontSize="16" Foreground="White" /> |
130 | 101 | </ui:Button> |
131 | | - |
132 | | - <ToggleButton |
133 | | - Content="Select" |
134 | | - Margin="0,8,0,0" |
135 | | - HorizontalAlignment="Stretch" |
136 | | - Height="30" |
137 | | - IsChecked="{Binding IsSelected, Mode=TwoWay}" |
138 | | - Command="{Binding DataContext.ToggleFriendSelectionCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}" |
139 | | - CommandParameter="{Binding}" |
140 | | - Visibility="{Binding DataContext.IsBulkMode, RelativeSource={RelativeSource AncestorType=ItemsControl}, Converter={StaticResource BooleanToVisibilityConverter}}"/> |
141 | 102 | </StackPanel> |
142 | 103 | </Border> |
143 | 104 | </DataTemplate> |
|
0 commit comments