32 references to ItemActivation
System.Windows.Forms (10)
System\Windows\Forms\Controls\ListView\ListView.cs (10)
51private ItemActivation _activation = ItemActivation.Standard; 242[DefaultValue(ItemActivation.Standard)] 244public ItemActivation Activation 256if (HotTracking && value != ItemActivation.OneClick) 1063Activation = ItemActivation.OneClick; 2825else if (_activation is ItemActivation.OneClick or ItemActivation.TwoClick) 5621case ItemActivation.OneClick: 5624case ItemActivation.TwoClick:
System.Windows.Forms.Tests (22)
System\Windows\Forms\ListViewTests.cs (22)
26Assert.Equal(ItemActivation.Standard, control.Activation); 177[EnumData<ItemActivation>] 178public void ListView_Activation_Set_GetReturnsExpected(ItemActivation value) 194[InlineData(ItemActivation.Standard, 0)] 195[InlineData(ItemActivation.OneClick, 1)] 196[InlineData(ItemActivation.TwoClick, 1)] 197public void ListView_Activation_SetWithHandle_GetReturnsExpected(ItemActivation value, int expectedInvalidatedCallCount) 230Activation = ItemActivation.OneClick 232Assert.Equal(ItemActivation.OneClick, listView.Activation); 236listView.Activation = ItemActivation.OneClick; 237Assert.Equal(ItemActivation.OneClick, listView.Activation); 242[InvalidEnumData<ItemActivation>] 243public void ListView_Activation_SetInvalidValue_ThrowsInvalidEnumArgumentException(ItemActivation value) 250[InvalidEnumData<ItemActivation>] 251public void ListView_Activation_SetHotTrackingInvalidValue_ThrowsInvalidEnumArgumentException(ItemActivation value) 261[InlineData(ItemActivation.Standard)] 262[InlineData(ItemActivation.TwoClick)] 263public void ListView_Activation_SetHotTrackingNotOneClick_ThrowsArgumentException(ItemActivation value) 270Assert.Equal(ItemActivation.OneClick, listView.Activation); 2254Assert.Equal(ItemActivation.OneClick, listView.Activation); 2261Assert.Equal(ItemActivation.OneClick, listView.Activation); 2268Assert.Equal(ItemActivation.OneClick, listView.Activation);