# TextControl.DrawingActivated Event

> Occurs when a drawing has been activated. The event handler receives an argument of type DrawingEventArgs containing data related to this event. A drawing is activated, when the user clicks the drawing with the mouse. The user can alter the drawing's contents, when it is activated. When the user clicks on the drawing's border, it is selected. A selected drawing can be sized, moved or copied to the clipboard.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.DrawingActivated Event
- **371 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingactivated-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingactivated-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingactivated-event/llms-full.txt

---

### Description

Occurs when a drawing has been activated. The event handler receives an argument of type [DrawingEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingeventargs/llms-full.txt) containing data related to this event. A drawing is activated, when the user clicks the drawing with the mouse. The user can alter the drawing's contents, when it is activated. When the user clicks on the drawing's border, it is selected. A selected drawing can be sized, moved or copied to the clipboard.

### Syntax

```csharp
public event DrawingEventHandler DrawingActivated;
```

```vbnet
Public Event DrawingActivated As DrawingEventHandler
```

### Examples

The following example records useful context when drawing activated occurs.

```csharp
textControl.DrawingActivated += (sender, e) =>
{
    Console.WriteLine($"Drawing Activated at {DateTime.Now:u}");
};
```

```vbnet
AddHandler textControl.DrawingActivated,
    Sub(sender, e)
        Console.WriteLine($"Drawing Activated at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [TextControl.DocumentTargets Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/documenttargets-property/llms-full.txt)
- **Next:** [TextControl.DrawingClicked Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingclicked-event/llms-full.txt)
