<ListBox Name="ListBox1" ItemsSource="{Binding histList, Mode=OneWay}" Margin="10,10,10,10" Height="197" VerticalAlignment="Center" > <ListBox.ItemTemplate> <DataTemplate> <CheckBox Content="{Binding FilterName, Mode=TwoWay}" /> </DataTemplate> </ListBox.ItemTemplate> </ListBox>
namespace ReportsUIScreens { public partial class EditStyle : ChildWindow { private List<filterHistory> histList; public EditStyle(List<filterHistory> histListLink) { InitializeComponent(); histList = histListLink; this.ListBox1.ItemsSource=histList; } private void OKButton_Click(object sender, RoutedEventArgs e) { //HERE'S WHERE I WANT TO DELETE this.DialogResult = true; } ......... ......... ......... } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)