The following steps can be followed to instantiate the object as a resource in XAML.
Imagine we have a class Person as mentioned below.
/// Interaction logic for MainWindow.xaml
publicpartialclassMainWindow : Window
fullname = value;
Steps to be followed are:
Include the namespace of the class as shown in line5. Notice that it is assigned to xmlns:kishore. Here we are using name resolution kishore with XML namespace. It can be xmlns:local or xmln:src or any other word followed by xmlns:. We have to use the same identifier(kishore or local or src) when we refer (or when want to use) the namespace.
"If leadership serves only the leader, it will fail. Ego satisfaction, financial gain, and status can all be valuable tools for a leader, but if they become the only motivations, they will eventually destroy a leader. Only when service for a common good is the primary purpose are you truly leading." – Sheila Murray Bethel