-
-
Notifications
You must be signed in to change notification settings - Fork 298
Getting started
Felix Kaiser edited this page Aug 10, 2021
·
4 revisions
If you are creating a new WPF application, follow these steps:
- Install the Gemini NuGet package.
- Delete
MainWindow.xaml
- you don't need it. - Open
App.xaml
and delete theStartupUri="MainWindow.xaml"
attribute. - Add
xmlns:gemini="http://schemas.timjones.tw/gemini"
toApp.xaml
. - Add
<gemini:AppBootstrapper x:Key="bootstrapper" />
to aResourceDictionary
within<Application.Resources>
.
So the whole App.xaml
should look something like this:
<Application x:Class="Gemini.Demo.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:gemini="http://schemas.timjones.tw/gemini">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary>
<gemini:AppBootstrapper x:Key="bootstrapper" />
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
Now hit F5 and see a very empty application!
By far the easiest way to get started with Gemini is to use the various NuGet packages.
First, install the base Gemini package (note that the package ID is GeminiWpf
, to
distinguish it from another NuGet package with the same name):
Then add any other modules you are interested in (note that some modules have dependencies on other modules, but this is taken care of by the NuGet package dependency system):
- Gemini.Modules.CodeCompiler
- Gemini.Modules.CodeEditor
- Gemini.Modules.ErrorList
- Gemini.Modules.GraphEditor
- Gemini.Modules.Inspector
- Gemini.Modules.Inspector.MonoGame
- Gemini.Modules.Inspector.Xna
- Gemini.Modules.MonoGame
- Gemini.Modules.Output
- Gemini.Modules.PropertyGrid
- Gemini.Modules.SharpDX
- Gemini.Modules.Xna