Skip to content

Commit

Permalink
update readme and screeshot
Browse files Browse the repository at this point in the history
  • Loading branch information
inorton committed Jul 22, 2011
1 parent 4c7bb3c commit 330251d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 23 deletions.
Binary file modified Examples/hello/hello.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 10 additions & 23 deletions README.md
Expand Up @@ -3,7 +3,9 @@ MoonDesk / MoonBase - (c)2011 Ian Norton

MoonDesk is a small set of wrapper libraries to make it easier to write
GUI applications that use silverlight controls that will run on linux
as desktop applications.
as desktop applications. With a little care and some projects that share
source files you can make a WPF and Moonlight version of your program
(see the included hello example)

Using MoonBase
--------------
Expand All @@ -22,30 +24,23 @@ that comes with it)
Gtk.Application.Init();
MoonBase.Init();

var host = new MoonWindow();
AWindow win = new AWindow();
ViewLoader loader = new ViewLoader( win.Host );
// construct silverlight directly
host.Content = new Button(){ Content = "Hello" };

// or load from a xaml resource file and create your view model at the same time
var resolver = new Resolver()
var mvvm = resolver.LoadXaml<MyViewModelClass>("MyXamlAssembly;MyNamespace/Views/MyView.xaml");
host.Content = mvvm.View as FrameworkElement;
host.Show();
// load from a xaml resource file and create your view model at the same time
VVM foo = loader.LoadViewViewModel<MyViewModelClass>("MyXamlAssembly;MyNamespace/Views/MyView.xaml");
win.Content = foo.View;

Gtk.Application.Run();
return 0;
}
}

MoonDesk itself isn't really aiming to provide a windows/mono portable gui
toolkit but should let you share more code between windows and linux versions
of GUI applications.
MoonDesk alone isn't enough to build a cross-platform xaml based app but should help along the way.

### Examples

There are two included examples.

#### hello

<img src="https://github.com/inorton/MoonBase/raw/master/Examples/hello/hello.png" alt="hello screenshot"/>
Expand All @@ -55,14 +50,6 @@ a simple command binding that increments a value in the view model.
Also shows binding other controls into containers using ContentControl
( rather like frame src= in html )

#### slpbrowser

<img src="https://github.com/inorton/MoonBase/raw/master/Examples/slpbrowser/slpbrowser.png" alt="slp browser screenshot"/>

A more complex example, requires slp-sharp. An asynchronous mvvm
program that uses the service discovery protocol (SLP) to refresh
a list on screen without blocking the gui.

BSD License
------------

Expand Down

0 comments on commit 330251d

Please sign in to comment.