JeroenZenM
JeroenZenM

Reputation: 5

Where is UserControl<TViewModel> in catel 5.12

I've some nested UserControls on an MVVM/WPF project using .NET 6.0 and Catel 5.12.22 Google led me to this, all be it an old article https://www.codeproject.com/Articles/129920/Catel-Part-3-of-n-The-MVVM-Framework#mapping

I can't find the UserControl anymore in the Catel 5.12

Lots of dead links to old documentation currently, so please advise where I can find this, or how it works now.

Jeroen

Upvotes: 0

Views: 48

Answers (1)

Geert van Horrik
Geert van Horrik

Reputation: 5724

The UserControl still exists in Catel.

Here is the full documentation.

To use it in xaml, use this code:

<catel:UserControl x:Class="Catel.Views.MyControl"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:catel="http://schemas.catelproject.com">
    
    <!-- For the sake of simplicity, content is left out -->
    
</catel:UserControl>

Upvotes: 1

Related Questions