Пример #1
0
 /// <summary>
 /// Loads the specified resource key. It has to derive from UIElement.
 /// </summary>
 /// <param name="resourceName">Name of XAML resource to load into the view. Provided by implementers.</param>
 private void LoadResource(string resourceName)
 {
     implementorView = ViewContainer.FindResource(resourceName) as UIElement;
     implementorView.DisconnectLogicalParent();
     ViewContainer.Children.Add(implementorView);
 }