# Graphics3DSelectionChangingEventArgs class

Provides data for the SelectionChanging event, which the Graphics3DControl raises before it applies a selection.

**Namespace:** [`Eremex.AvaloniaUI.Controls3D`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls3D/index.md)  
**Assembly:** `Eremex.Avalonia.Controls3D.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls3D](https://www.nuget.org/packages/Eremex.Avalonia.Controls3D)

## Declaration

```csharp
public class Graphics3DSelectionChangingEventArgs : RoutedEventArgs
```

## Properties

| name | description |
| --- | --- |
| [HitTestResults](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls3D/Graphics3DSelectionChangingEventArgs/HitTestResults/index.md) { get; } | Gets the elements found by the ray cast at the clicked point, ordered from the nearest to the farthest one. |
| [NewValue](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls3D/Graphics3DSelectionChangingEventArgs/NewValue/index.md) { get; set; } | Gets or sets the element that the control is about to select. Set the property to another element to override the pending selection, or to null to clear the selection. |
| [OldValue](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls3D/Graphics3DSelectionChangingEventArgs/OldValue/index.md) { get; } | Gets the element that is selected when the event is raised. |

## See Also

* namespace [Eremex.AvaloniaUI.Controls3D](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls3D/index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls3D.dll -->
