How to create an object in UserControl.Resources?

I am creating a list and want to have data about the development time in it.

If I have a class in my namespace, how do I create an instance and an object of this class in XAML User Management Resources please?

Malcolm

+3
source share
1 answer
<UserControl.Resources>
    <my:CustomObject xmlns:my="clr-namespace:MyNamespace" 
                     x:Key="MyCustomObj"
                     Property="Value"
    />
</UserControl.Resources>
+3
source

Source: https://habr.com/ru/post/1705496/


All Articles