setting is_selected and clearing selected_rows when update popup closes
This commit is contained in:
1 parent
a7da930e69
commit
44e7cfb4a5
1 file changed
+4
-1
@@ -1116,8 +1116,11 @@ namespace mbts.spark {
|
||||
RelativeSource = new RelativeSource(RelativeSourceMode.Self)
|
||||
});
|
||||
popup.Closed += (s, e) => {
|
||||
if (popup.try_find_ancestor_of_type(out MiniOrderBookView mini_ob) && mini_ob.DataContext is OrderBookVM ob_vm)
|
||||
if (popup.try_find_ancestor_of_type(out MiniOrderBookView mini_ob) && mini_ob.DataContext is OrderBookVM ob_vm) {
|
||||
ob_vm.is_attaching_orders = false;
|
||||
ob_vm.selected_rows.ForEach(r => r.is_selected = false);
|
||||
ob_vm.selected_rows.Clear();
|
||||
}
|
||||
};
|
||||
|
||||
var the_whole_thing = new Grid();
|
||||
|
||||
Reference in new issue
Block a user