# How do I regen in WPF?

 1. [FAQ](/ja/faq)
2. »
3. [Examples](/faq/examples)

The implementation is:

```
m_pDevice->invalidate();
if(m_pDevice->gsModel())
m_pDevice->gsModel()->invalidate(OdGsModel::kInvalidateAll);
```

where m\_pDevice is a derivative of the OdGsDevice class.
