26 lines
748 B
C#
26 lines
748 B
C#
using System.Windows.Controls;
|
|
|
|
namespace NavisworksTransport
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for UserControl1.xaml
|
|
/// </summary>
|
|
public partial class SimpleWPFHelloWorldControl : UserControl
|
|
{
|
|
public SimpleWPFHelloWorldControl()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
var textBlock = new TextBlock();
|
|
textBlock.Text = "Hello World from WPF!";
|
|
textBlock.FontSize = 16;
|
|
textBlock.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
|
|
textBlock.VerticalAlignment = System.Windows.VerticalAlignment.Center;
|
|
|
|
this.Content = textBlock;
|
|
}
|
|
}
|
|
} |