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