# TXBarcodeCore.ViewChanged Event

> Occurs when changes to the barcode settings require updating the barcode view.

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

---

### Description

Occurs when changes to the barcode settings require updating the barcode view.

### Syntax

```csharp
public event TXBarcodeCore.ViewChangedEventHandler ViewChanged;
```

```vbnet
Public Event ViewChanged As TXBarcodeCore.ViewChangedEventHandler
```

### Examples

The following example records useful context when view changed occurs.

```csharp
tXBarcodeCore.ViewChanged += (sender, e) =>
{
    Console.WriteLine($"View Changed at {DateTime.Now:u}");
};
```

```vbnet
AddHandler tXBarcodeCore.ViewChanged,
    Sub(sender, e)
        Console.WriteLine($"View Changed at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [TXBarcodeCore.UpperTextLength Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/txbarcodecore/uppertextlength-property/llms-full.txt)
- **Next:** [WPF.Barcode.ImageFormat Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/wpf-barcode-imageformat/enumeration/llms-full.txt)
