Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: Simple layout

$
0
0
I need to move my WPF application to use AvalonDock so that I can have my application offer floating and docked windows. I have downloaded the toolkit and I have a very simple test bed to test if I can do what I need using AvalonDock. Here is my very simple main window:
<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:avalonDock="http://schemas.xceed.com/wpf/xaml/avalondock"
    xmlns:local="clr-namespace:DebugBar" 
    Title="MainWindow" Height="350" Width="525">
   <Grid>
        <avalonDock:DockingManager x:Name="dockingManager">
            <avalonDock:LayoutRoot>
                <avalonDock:LayoutRoot.LeftSide>
                    <avalonDock:LayoutAnchorSide>
                        <avalonDock:LayoutAnchorGroup>
                            <avalonDock:LayoutAnchorable Title="Core Registers">
                                <local:cpuCoreAndRegisters x:Name="ctrlCoreRegisters" Margin="0" 
                                HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
                            </avalonDock:LayoutAnchorable>
                            <avalonDock:LayoutAnchorable Title="I/O View">
                                <TextBox/>
                            </avalonDock:LayoutAnchorable>
                        </avalonDock:LayoutAnchorGroup>
                    </avalonDock:LayoutAnchorSide>
                </avalonDock:LayoutRoot.LeftSide>
            </avalonDock:LayoutRoot>
        </avalonDock:DockingManager>
    </Grid>
</Window>
I want my main window to only have the dockable/floating windows, no other view is required. Is there a way to have the window fill the whole application view when it is made visible? Ideally I would like the application to just have a series of TABs down the left. Click on or hovering over a TAB should fill the whole application window.
Thanks,
Sid.

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>