mono pastebin

mono pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

C# mono pastebin View Help

Posted by ceronman on Fri 8th Aug 11:43
download | new post

  1. // Compile me: gmcs -pkg:gtk-sharp-2.0 -pkg:gtksilver -pkg:silverdesktop test.cs
  2.  
  3. using System;
  4. using System.Windows;
  5. using System.Windows.Controls;
  6. using System.Windows.Shapes;
  7. using System.Windows.Media;
  8. using Gtk;
  9. using Gtk.Moonlight;
  10.  
  11. public static class MoonTest {
  12.  
  13.         public static void Main ()
  14.         {
  15.                 Gtk.Application.Init ();
  16.                 GtkSilver.Init ();
  17.        
  18.                 Window window = new Window ("My Canvas");
  19.                 GtkSilver silver = new GtkSilver(300, 300);
  20.                 Canvas canvas = new Canvas();
  21.                 silver.Attach(canvas);
  22.        
  23.                 SolidColorBrush brush = new SolidColorBrush();
  24.                 object v = brush.GetValue(UIElement.ZIndexProperty);
  25.  
  26.                 window.Add(silver);
  27.                 window.ShowAll ();
  28.                 Gtk.Application.Run ();
  29.         }
  30. }

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@


(sorry about this, spam sucks)



Remember my settings