diff options
| author | j-p <jp.bruyere@live.be> | 2015-09-16 18:52:02 +0200 |
|---|---|---|
| committer | j-p <jp.bruyere@live.be> | 2015-09-16 18:52:02 +0200 |
| commit | bc96190ec69756fb6decc0f7c9b12bd1b82feb1b (patch) | |
| tree | 3a25795e14e6001ebad5325078a722f2436a3f8e | |
| parent | 3aba832ca7c6f9da0e9be8f5060013a2bbc6d345 (diff) | |
Update README.md0.2
| -rw-r--r-- | README.md | 30 |
1 files changed, 28 insertions, 2 deletions
@@ -19,6 +19,32 @@ FEATURES - Templated controls, with dynamic binding. - Inlined delegate in XML +Example +------- + +``` +<Window Width="800" Height="600" Title="Decks"> + <HorizontalStack> + <ListBox Height="0" Width="150" Background="0,5;0,5;0,5;0,5" Name="deckList" + Data="{DeckList}" HorizontalAlignment="Left" ValueChanged="onDeckListValueChange" + ItemTemplate="#Magic3D.ui.DeckItemTemplate.goml"> + <Template> + <Border BorderWidth="1" MinimumSize="0;100" Height="{TemplatedHeight}" Width="{TemplatedWidth}"> + <HorizontalStack Margin="1" Height="{TemplatedHeight}" Width="{TemplatedWidth}"> + <Scroller Name="scroller1" Height="{TemplatedHeight}" Width="{TemplatedWidth}" + Margin="2" VerticalScrolling="true" ScrollY="{../scrollbar1.Scroll}"> + <VerticalStack Width="{TemplatedWidth}" Height="-1" Name="List" Margin="0" VerticalAlignment="Top"/> + </Scroller> + <Scrollbar Name="scrollbar1" Scroll="{../scroller1.ScrollY}" MaximumScroll="{../scroller1.MaximumScroll}" + Orientation="Vertical" Width="10" Height="{TemplatedHeight}" /> + </HorizontalStack> + </Border> + </Template> + </ListBox> + <HorizontalStack Width="0" Height="0" Background="DimGray" Name="hsDeck"/> + </HorizontalStack> +</Window> +``` Building ======== @@ -44,10 +70,10 @@ xbuild /p:Configuration=Release GOLib.sln # Build on Mono (Linux / Mac OS X) ``` #####GOLib in action + +   - - |