ListView.MouseDoubleClick

  private void ruleListView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            ListViewItem item = Utilities.GetVisualParent<ListViewItem>((UIElement)Mouse.DirectlyOver);
            if (item == null) return;
            Cdsrule rule = item.Content as Cdsrule;
            if (rule != null)
            {
                cdsruleG = rule;
                EditCdsrule(rule);
            }
        }

 

posted @ 2014-01-23 19:08  quietwalk  阅读(1182)  评论(0编辑  收藏  举报