|
using System.Windows;
using Catel.Windows;
namespace Catel.Articles.Base.UI.Windows
{
/// <summary>
/// Interaction logic for ControlExampleWindow.xaml
/// </summary>
public partial class ControlExampleWindow : DataWindow
{
/// <summary>
/// Initializes a new instance of the <see cref="ControlExampleWindow"/> class.
/// </summary>
public ControlExampleWindow()
: base(DataWindowMode.Close)
{
// Intialize component
InitializeComponent();
}
/// <summary>
/// Loads a framework element.
/// </summary>
/// <param name="frameworkElement">The framework element.</param>
public void LoadFrameworkElement(FrameworkElement frameworkElement)
{
// Clear current
contentGrid.Children.Clear();
// Add control
contentGrid.Children.Add(frameworkElement);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.