Method | Description | |
---|---|---|
CreateElementFromString ( string xaml, bool createNamescope ) : |
Loads XAML within the context of the current GtkSilver widget
|
|
LoadXaml ( string xaml ) : void |
Initializes the Surface widget from the XAML contents in a string This uses the XAML parser to load the given string and display it on the Surface widget. |
|
LoadXamlFromFile ( string file ) : void |
Initializes the GtkSilver widget from the XAML contents in a file This uses the XAML parser to load the given file and display it on the Surface widget. |
|
LoadXap ( string xapPath ) : void |
Initializes the Surface widget from a XAP file This uses the XAP loader to load the given XAP display it on the Surface widget. |
|
MoonlightHost ( ) : System |
Public constructor The size of the internal root canvas is determined by the size of the Surface widget, which can later be changed by using the standard Gtk# APIs (SizeAllocate). The widget is initially empty, you must set the Content method with a System.Windows.FrameworkElement instance (you can create those programatically, or use LoadXaml(System.String), LoadXamlFromFile(System.String), or LoadXap(System.String)). |
Method | Description | |
---|---|---|
OnSizeAllocated ( object o, Gtk.SizeAllocatedArgs args ) : void |
public CreateElementFromString ( string xaml, bool createNamescope ) : |
||
xaml | string | The contents of the string. |
createNamescope | bool | |
return |
public LoadXaml ( string xaml ) : void | ||
xaml | string | The contents of the string. |
return | void |
public LoadXamlFromFile ( string file ) : void | ||
file | string | The name of a file in your file system. |
return | void |
public LoadXap ( string xapPath ) : void | ||
xapPath | string | Path to the XAP file |
return | void |