|
117 | 117 | Margin="25,0"
|
118 | 118 | Background="{DynamicResource SystemAccentColor}" />
|
119 | 119 |
|
120 |
| - <ListBox Name="MasterListBox" |
121 |
| - Grid.Column="2" |
122 |
| - Classes="ModDragDropListBox" |
123 |
| - DragDrop.AllowDrop="True" |
124 |
| - ItemsSource="{Binding Mods, Source={x:Static comp:ProfileManager.Shared}}" |
125 |
| - SelectedItem="{Binding MasterSelected}" |
126 |
| - SelectionMode="AlwaysSelected" |
127 |
| - ToolTip.Tip="All Mods"> |
128 |
| - <ListBox.ItemTemplate> |
129 |
| - <DataTemplate DataType="{x:Type models:Mod}"> |
130 |
| - <Grid ColumnDefinitions="*,Auto,Auto"> |
131 |
| - <TextBlock VerticalAlignment="Center" |
132 |
| - Background="Transparent" |
133 |
| - Text="{Binding Name}" |
134 |
| - TextTrimming="CharacterEllipsis" |
135 |
| - ToolTip.Tip="{Binding Name}" /> |
136 |
| - <Button Grid.Column="1" |
137 |
| - Width="25" |
138 |
| - Height="25" |
139 |
| - Padding="0" |
140 |
| - VerticalAlignment="Stretch" |
141 |
| - Command="{Binding AddToCurrentProfileCommand}" |
142 |
| - ToolTip.Tip="Add to current profile"> |
143 |
| - <pi:Icon Value="fa-solid fa-plus" /> |
144 |
| - </Button> |
145 |
| - <Button Grid.Column="2" |
146 |
| - Width="25" |
147 |
| - Height="25" |
148 |
| - Margin="5,0,0,0" |
149 |
| - Padding="0" |
150 |
| - VerticalAlignment="Stretch" |
151 |
| - x:CompileBindings="False" |
152 |
| - Command="{Binding $parent[UserControl].DataContext.UninstallCommand}" |
153 |
| - CommandParameter="{Binding}" |
154 |
| - ToolTip.Tip="Uninstall"> |
155 |
| - <pi:Icon Value="fa-solid fa-trash-xmark" /> |
156 |
| - </Button> |
157 |
| - </Grid> |
158 |
| - </DataTemplate> |
159 |
| - </ListBox.ItemTemplate> |
160 |
| - </ListBox> |
| 120 | + <Grid Grid.Column="2" RowDefinitions="Auto,*"> |
| 121 | + <TextBox Margin="0,0,0,10" |
| 122 | + Classes="clearButton" |
| 123 | + Text="{Binding FilterArgument}" |
| 124 | + Watermark="Search" /> |
| 125 | + <ListBox Name="MasterListBox" |
| 126 | + Grid.Row="1" |
| 127 | + Classes="ModDragDropListBox" |
| 128 | + DragDrop.AllowDrop="True" |
| 129 | + ItemsSource="{Binding FilteredMods}" |
| 130 | + SelectedItem="{Binding MasterSelected}" |
| 131 | + SelectionMode="AlwaysSelected" |
| 132 | + ToolTip.Tip="All Mods"> |
| 133 | + <ListBox.ItemTemplate> |
| 134 | + <DataTemplate DataType="{x:Type models:Mod}"> |
| 135 | + <Grid ColumnDefinitions="*,Auto,Auto"> |
| 136 | + <TextBlock VerticalAlignment="Center" |
| 137 | + Background="Transparent" |
| 138 | + Text="{Binding Name}" |
| 139 | + TextTrimming="CharacterEllipsis" |
| 140 | + ToolTip.Tip="{Binding Name}" /> |
| 141 | + <Button Grid.Column="1" |
| 142 | + Width="25" |
| 143 | + Height="25" |
| 144 | + Padding="0" |
| 145 | + VerticalAlignment="Stretch" |
| 146 | + Command="{Binding AddToCurrentProfileCommand}" |
| 147 | + ToolTip.Tip="Add to current profile"> |
| 148 | + <pi:Icon Value="fa-solid fa-plus" /> |
| 149 | + </Button> |
| 150 | + <Button Grid.Column="2" |
| 151 | + Width="25" |
| 152 | + Height="25" |
| 153 | + Margin="5,0,0,0" |
| 154 | + Padding="0" |
| 155 | + VerticalAlignment="Stretch" |
| 156 | + x:CompileBindings="False" |
| 157 | + Command="{Binding $parent[UserControl].DataContext.UninstallCommand}" |
| 158 | + CommandParameter="{Binding}" |
| 159 | + ToolTip.Tip="Uninstall"> |
| 160 | + <pi:Icon Value="fa-solid fa-trash-xmark" /> |
| 161 | + </Button> |
| 162 | + </Grid> |
| 163 | + </DataTemplate> |
| 164 | + </ListBox.ItemTemplate> |
| 165 | + </ListBox> |
| 166 | + </Grid> |
161 | 167 | </Grid>
|
162 | 168 | </UserControl>
|
0 commit comments