【问题标题】:WPF DataGridRow Events - "Selected" event inheritanceWPF DataGridRow 事件 - “选定”事件继承
【发布时间】:2013-04-02 06:57:25
【问题描述】:

我的程序中有这段代码:

        <DataGrid.ItemContainerStyle>
            <Style TargetType="DataGridRow">
                <EventSetter Event="Selected" Handler="Selection_event"/>
            </Style>
        </DataGrid.ItemContainerStyle>

我找不到Selected 事件是从哪里继承的。

DataGridRow Events

UIElement Events

我正在寻找Unselected 之类的东西,想看看Selected 附近有什么活动

【问题讨论】:

    标签: .net wpf xaml events datagrid


    【解决方案1】:

    我找不到 Selected 事件是从哪里继承的。

    DataGridRowIsSelected 属性为true 时,会出现Selected Event。见here

    我正在寻找类似 Unselected 的东西,想看看 Selected 附近有什么活动

    有关 DataGridRow 事件的完整列表,请参阅 here。您正在寻找的是UnSelectedevent,它在行选择被清除时出现。

    【讨论】:

      猜你喜欢
      • 2015-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-21
      相关资源
      最近更新 更多