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

            WriteObject(window);
        }
Exemplo n.º 2
0
 // this will open a window you have created.
 // call [GUI]::ShowWindow($Main_Window)
 public static void ShowWindow(Window window)
 {
     AvaloniaBootstrapper.Start(window);
 }
Exemplo n.º 3
0
 // 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
 }
Exemplo n.º 4
0
 protected override void ProcessRecord()
 {
     AvaloniaBootstrapper.Start(Window);
 }
Exemplo n.º 5
0
        protected override void ProcessRecord()
        {
            var window = AvaloniaBootstrapper.Load(Xaml);

            WriteObject(window);
        }