注意到没有,我们没有设置Click事件,因为它是默认的,不用我们另起代码写,比如下面的代码就会自己启用点击事件:
<ImageButton Content="{DynamicResource History.PrintSetting.Operate.Content}" Width="100" Height="30" Canvas.Right="200" Canvas.Left="246" Canvas.Top="5" FontSize="18" IsDefault="True" Foreground="#606467" DefaultImage="{StaticResource Public.EmptyButton122x52.Enable.Icon}" PressedImage="{StaticResource Public.EmptyButton112x52.Touches.Icon}" Command="{Binding OperateCommand}"></ImageButton>
我们现在来关注Loaded、MouseDoubleClick、SelectionChanged事件:
<ListView x:Name="lvPatientList" Style="{StaticResource ListViewStyle_HistoryPage1}" ItemContainerStyle="{StaticResource ListViewItem