protected override void ProcessRecord()
        {
            var dataGridType = typeof(DataGrid); // HACK
            var window       = AvaloniaBootstrapper.Load(Xaml);

            WriteObject(window);
        }
 // call [GUI]::CreateWindow([string]$string);
 // will convert xaml string into a Avalonia window.
 public static Window CreateWindow(string Xaml)
 {
     return(AvaloniaBootstrapper.Load(Xaml));
     //returns new [Avalonia.Controls.Window] object
 }
Exemple #3
0
        protected override void ProcessRecord()
        {
            var window = AvaloniaBootstrapper.Load(Xaml);

            WriteObject(window);
        }