31 references to SelectionMode
PresentationFramework (31)
src\Framework\System\Windows\Controls\ListBox.cs (27)
57
SelectionMode
mode = (
SelectionMode
) SelectionModeProperty.GetDefaultValue(DependencyObjectType);
152
typeof(
SelectionMode
),
155
SelectionMode
.Single,
162
public
SelectionMode
SelectionMode
164
get { return (
SelectionMode
) GetValue(SelectionModeProperty); }
182
SelectionMode
value = (
SelectionMode
)o;
183
return value ==
SelectionMode
.Single
184
|| value ==
SelectionMode
.Multiple
185
|| value ==
SelectionMode
.Extended;
188
private void ValidateSelectionMode(
SelectionMode
mode)
190
CanSelectMultiple = (mode !=
SelectionMode
.Single);
287
if (SelectionMode ==
SelectionMode
.Single)
320
if (((Keyboard.Modifiers & ModifierKeys.Control) == (ModifierKeys.Control)) && (SelectionMode ==
SelectionMode
.Extended))
333
if (((Keyboard.Modifiers & ModifierKeys.Control) == (ModifierKeys.Control)) && (SelectionMode ==
SelectionMode
.Extended))
434
case
SelectionMode
.Single:
446
case
SelectionMode
.Multiple:
450
case
SelectionMode
.Extended:
640
if (listBox.SelectionMode ==
SelectionMode
.Extended)
649
if (listBox.SelectionMode ==
SelectionMode
.Extended)
667
case
SelectionMode
.Single:
682
case
SelectionMode
.Multiple:
686
case
SelectionMode
.Extended:
876
case
SelectionMode
.Single:
884
case
SelectionMode
.Multiple:
888
case
SelectionMode
.Extended:
src\Framework\System\Windows\Controls\ListView.cs (1)
44
SelectionModeProperty.OverrideMetadata(typeof(ListView), new FrameworkPropertyMetadata(
SelectionMode
.Extended));
src\Framework\System\Windows\Controls\Primitives\Selector.cs (3)
303
SelectionMode
mode = (
SelectionMode
)GetValue(ListBox.SelectionModeProperty);
304
newSync = (mode ==
SelectionMode
.Single) &&