Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: Child ViewModel Null When Using [Import]

$
0
0
You can use [OnImportSatisfied] on a method and it will identify it to MEF as a callback when all imports have been resolved.
[OnImportSatisfied]
public void Initialize()
{
     ChildProperty.PropertyChanged +=
                (sender, args) =>
                    {
                        // do something here
                    };
}

Viewing all articles
Browse latest Browse all 1760

Trending Articles