# encoding: ascii
# api: powershell
# title: Paint board
# description: Just for fun (my original post http://my.opera.com/samplez/blog/2013/03/18/paint-board)
# version: 0.1
# type: function
# author: greg zakharov
# license: CC0
# x-poshcode-id: 4030
# x-archived: 2013-03-21T05:43:32
# x-published: 2013-03-18T17:53:00
#
#
function frmMain_Show {
  Add-Type -AssemblyName PresentationFramework

  $win = New-Object Windows.Window
  $ink = New-Object Windows.Controls.InkCanvas
  #
  #ink
  #
  $ink.MinWidth = $ink.MinHeight = 450
  #
  #win
  #
  $win.Content = $ink
  $win.SizeToContent = "WidthAndHeight"
  $win.Title = "Paint board"
  $win.WindowStartupLocation = "CenterScreen"

  [void]$win.ShowDialog()
}

frmMain_Show
