├── Designer └── Finds.txt ├── PSGetModuleInfo.xml ├── FastColoredTextBox.dll ├── Examples ├── Window Spy │ ├── Finds.txt │ ├── Events.ps1 │ └── Window Spy.ps1 ├── WPF Window Fuse │ ├── Finds.txt │ ├── Events.ps1 │ └── WPF Window Fuse.ps1 ├── XAMLPad Express │ ├── Finds.txt │ └── Events.ps1 ├── XAMLPad Express.fbs ├── WPF Window Fuse.fbs └── Window Spy.fbs ├── FastColoredTextBoxLicense.txt ├── DPI Scaling.txt ├── famfamfam.md ├── powershell-designer.nuspec ├── license.md ├── WinFormsCreatorLicense.txt ├── README.md ├── powershell-designer.psm1 ├── powershell-designer.psd1 ├── functions └── Dependencies.ps1 └── Designer.fbs /Designer/Finds.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brandoncomputer/powershell-designer/HEAD/Designer/Finds.txt -------------------------------------------------------------------------------- /PSGetModuleInfo.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brandoncomputer/powershell-designer/HEAD/PSGetModuleInfo.xml -------------------------------------------------------------------------------- /FastColoredTextBox.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brandoncomputer/powershell-designer/HEAD/FastColoredTextBox.dll -------------------------------------------------------------------------------- /Examples/Window Spy/Finds.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brandoncomputer/powershell-designer/HEAD/Examples/Window Spy/Finds.txt -------------------------------------------------------------------------------- /Examples/WPF Window Fuse/Finds.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brandoncomputer/powershell-designer/HEAD/Examples/WPF Window Fuse/Finds.txt -------------------------------------------------------------------------------- /Examples/XAMLPad Express/Finds.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brandoncomputer/powershell-designer/HEAD/Examples/XAMLPad Express/Finds.txt -------------------------------------------------------------------------------- /FastColoredTextBoxLicense.txt: -------------------------------------------------------------------------------- 1 | 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 3 | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 4 | IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR 5 | PURPOSE. 6 | 7 | License: GNU Lesser General Public License (LGPLv3) 8 | 9 | Email: pavel_torgashov@ukr.net. 10 | 11 | Copyright (C) Pavel Torgashov, 2011-2016. -------------------------------------------------------------------------------- /DPI Scaling.txt: -------------------------------------------------------------------------------- 1 | For simple projects, add 'DPIAware' to the Tag property on the Form to attempt a scaling fix on high resolution displays. 2 | You may have to multiply resize event values by $ctscale (height, width, top, left or size[] location[]). 3 | Sometimes the export does not include a 'Size' properly in the XML if the control has not been resized. Resize all controls by at least one pixel. 4 | To enable VisualStyle, add 'VisualStyle' to the Tag property on the Form. 5 | See Calc.fbs for an example. 6 | 7 | Tags are comma seperated. -------------------------------------------------------------------------------- /Examples/XAMLPad Express.fbs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | -------------------------------------------------------------------------------- /famfamfam.md: -------------------------------------------------------------------------------- 1 | Original readme (from author of the icons) 2 | ---------- 3 | 4 | Silk icon set 1.3 5 | 6 | _________________________________________ 7 | 8 | Mark James 9 | http://www.famfamfam.com/lab/icons/silk/ 10 | 11 | _________________________________________ 12 | 13 | This work is licensed under a 14 | Creative Commons Attribution 2.5 License. 15 | [ http://creativecommons.org/licenses/by/2.5/ ] 16 | 17 | This means you may use it for any purpose, 18 | and make any changes you like. 19 | All I ask is that you include a link back 20 | to this page in your credits. 21 | 22 | Are you using this icon set? Send me an email 23 | (including a link or picture if available) to 24 | mjames@gmail.com 25 | 26 | Any other questions about this icon set please 27 | contact mjames@gmail.com 28 | -------------------------------------------------------------------------------- /Examples/WPF Window Fuse.fbs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /powershell-designer.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | powershell-designer 5 | 2.7.7 6 | Brandon Cunningham 7 | Brandon Cunningham 8 | false 9 | https://github.com/brandoncomputer/powershell-designer/blob/main/license.md 10 | https://github.com/brandoncomputer/powershell-designer 11 | The best free form designer for powershell. 12 | The best free form designer for powershell. 13 | (c) Brandon Cunningham. Portions (c) Benjamin Turmo, Pavel Torgashov & Mark James 14 | PSModule PSIncludes_Function PSFunction_powershell-designer PSCommand_powershell-designer 15 | 16 | -------------------------------------------------------------------------------- /license.md: -------------------------------------------------------------------------------- 1 | Copyright 2022 Brandon Cunningham 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /Examples/WPF Window Fuse/Events.ps1: -------------------------------------------------------------------------------- 1 | #region Images 2 | 3 | #endregion 4 | 5 | ConvertFrom-WPFXaml -xaml @" 6 | 14 | 15 | 243 | ]]> 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | Check Box 252 | ]]> 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | Item1 261 | Item2 262 | Item3 263 | 264 | ]]> 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | ]]> 274 | 275 | 276 | 277 | 278 | 279 | 280 | Navigate to MSDN 281 | ]]> 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | ]]> 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | Use your Mouse or Stylus to draw on the screen. 298 | 299 | ]]> 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | Item 1 308 | Item 2 309 | Item 3 310 | Item 4 311 | Item 5 312 | 313 | ]]> 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | ]]> 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | ]]> 345 | 346 | 347 | 348 | 349 | 350 | 351 | Radio Button 352 | 353 | ]]> 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | Some Content 364 | 365 | 366 | 367 | ]]> 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | Scrolling is 377 | enabled when it is necessary. 378 | 379 | 380 | 381 | ]]> 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 394 | 398 | 402 | 406 | 407 | 408 | 409 | 410 | Canvas Overview 411 | 412 | 413 | [This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] 414 | The Canvas element is used to position content according to absolute x- and y-coordinates. Canvas provides ultimate flexibility for positioning and arranging elements on the screen. Elements can be drawn in a unique location, or in the event that elements occupy the same coordinates, the order in which they appear in markup determines the order in which elements are drawn. 415 | 416 | This topic contains the following sections. 417 | 418 | 419 | 420 | What Can I Do with the Canvas? 421 | Adding a Border to a Canvas Element 422 | Order of Elements in a Canvas 423 | Creating a Canvas in "XAML" 424 | Creating a Canvas in Code 425 | 426 | 427 | 428 | What Can I Do with the Canvas? 429 | Canvas provides the most flexible layout support of any Panel element. Height and Width properties are used to define the area of the canvas, and elements inside are assigned absolute coordinates relative to the upper left corner of the parent Canvas. This allows you to position and arrange elements precisely where you want them on the screen. 430 | 431 | Adding a Border to a Canvas Element 432 | In order for a Canvas element to have a border, it must be encapsulated within a Border element. 433 | 434 | 435 | ]]> 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | ]]> 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | ]]> 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | Planetary Information 482 | 483 | 484 | Planet 485 | Distance from Sun 486 | Diameter 487 | Mass 488 | 489 | 490 | 491 | 492 | The Inner Planets 493 | 494 | 495 | Mercury 496 | 57,910,000 km 497 | 4,880 km 498 | 3.30e23 kg 499 | 500 | 501 | Venus 502 | 108,200,000 km 503 | 12,103.6 km 504 | 4.869e24 kg 505 | 506 | 507 | Earth 508 | 149,600,000 km 509 | 12,756.3 km 510 | 5.972e24 kg 511 | 512 | 513 | Mars 514 | 227,940,000 km 515 | 6,794 km 516 | 6.4219e23 kg 517 | 518 | 519 | The Outer Planets 520 | 521 | 522 | Jupiter 523 | 778,330,000 km 524 | 142,984 km 525 | 1.900e27 kg 526 | 527 | 528 | Saturn 529 | 1,429,400,000 km 530 | 120,536 km 531 | 5.68e26 kg 532 | 533 | 534 | Uranus 535 | 2,870,990,000 km 536 | 51,118 km 537 | 8.683e25 kg 538 | 539 | 540 | Neptune 541 | 4,504,000,000 km 542 | 49,532 km 543 | 1.0247e26 kg 544 | 545 | 546 | 547 | 548 | Information from the Encarta web site. 550 | 551 | 552 |
553 |
554 |
555 | ]]> 556 |
557 |
558 | 559 | 560 | 561 | 562 | 563 | Hello World! 564 | 565 | ]]> 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | Some text to select... 574 | 575 | ]]> 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | ]]> 588 | 589 | 590 | 591 | 592 | 593 | 594 | TextBox with ToolTip 595 | 596 | useful information goes here 597 | 598 | 599 | ]]> 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 612 | 613 | 614 | 615 | 616 | 617 | 623 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | XAMLPad Express 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | Layout 671 | 672 | 673 | 674 | 675 | 676 | Controls 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | "@ 737 | 738 | $winhost = New-WPFWindow -Title 'XamlPad' -Height 600 -Width 800 -Grid HostGrid 739 | $winhost.Content = ConvertFrom-WPFXaml -xaml $page 740 | 741 | $LayoutListBox.add_SelectionChanged({ 742 | $Details.DataContext = $LayoutListBox.DataContext 743 | }) 744 | 745 | $SecondLayOutListBox.add_SelectionChanged({ 746 | $Details.DataContext = $SecondLayOutListBox.DataContext 747 | }) 748 | 749 | $TextBox1.add_KeyUp({ 750 | $cc.Children.Clear(); 751 | $cc.Children.Add([System.Windows.UIElement] (ConvertFrom-WPFXaml -xaml $TextBox1.Text)) 752 | }) 753 | 754 | $LayoutListBox.add_MouseUp({ 755 | $cc.Children.Clear() 756 | $cc.Children.Add([System.Windows.UIElement] (ConvertFrom-WPFXaml -xaml $TextBox1.Text)) 757 | }) 758 | 759 | $SecondLayOutListBox.add_MouseUp({$cc.Children.Clear(); 760 | $cc.Children.Add([System.Windows.UIElement] (ConvertFrom-WPFXaml -xaml $TextBox1.Text)) 761 | }) 762 | 763 | $rPreview.add_Click({ 764 | $MainGrid.FindName('CodeRow').Height = 0 765 | $MainGrid.FindName('PreviewRow').Height = '*' 766 | }) 767 | 768 | $rXaml.add_Click({ 769 | $MainGrid.FindName('PreviewRow').Height = 0 770 | $MainGrid.FindName('CodeRow').Height = '*' 771 | }) 772 | 773 | $rSplit.add_Click({ 774 | $MainGrid.FindName('PreviewRow').Height = '*' 775 | $MainGrid.FindName('CodeRow').Height = '*' 776 | }) 777 | 778 | $winhost.ShowDialog() -------------------------------------------------------------------------------- /Examples/Window Spy/Window Spy.ps1: -------------------------------------------------------------------------------- 1 | #region VDS 2 | $RunSpace = [RunspaceFactory]::CreateRunspacePool(); $RunSpace.ApartmentState = "STA"; $RunSpace.Open(); $PowerShell = [powershell]::Create();$PowerShell.RunspacePool = $RunSpace; [void]$PowerShell.AddScript({ 3 | 4 | function Add-Tab() { 5 | <# 6 | .SYNOPSIS 7 | Sends the tab key 8 | 9 | ALIASES 10 | Tab 11 | 12 | .DESCRIPTION 13 | This function sends the tab key 14 | 15 | .EXAMPLE 16 | Send-Window (Get-Window notepad) Add-Tab 17 | 18 | .OUTPUTS 19 | String 20 | 21 | .NOTES 22 | Only useful with 'Send-Window'. 23 | #> 24 | [Alias("Tab")] 25 | param() 26 | return "`t" 27 | } 28 | 29 | function ConvertFrom-WinFormsXML { 30 | <# 31 | .SYNOPSIS 32 | Opens a form from XAML in the format specified by 'powershell-designer' 33 | or its predecessor, PowerShell WinForms Creator 34 | 35 | .DESCRIPTION 36 | This function opens a form from XAML in the format specified by 'powershell-designer' 37 | or its predecessor, PowerShell WinForms Creator 38 | 39 | .PARAMETER XML 40 | The XML object or XML string specifying the parameters for the form object 41 | 42 | .PARAMETER Reference 43 | This function recursively calls itself. Internal parameter for child 44 | objects, not typically called programatically. Also this function is 45 | maintained for legacy compatibility PowerShell WinForm Creator, which 46 | does require the call in some instances due to not creating automatic 47 | variables. 48 | 49 | .PARAMETER Supress 50 | This function recursively calls itself. Internal parameter for child 51 | objects, not typically called programatically. 52 | 53 | .EXAMPLE 54 | ConvertFrom-WinFormsXML -Xml @" 55 | 56 |