Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: DevExpress DockLayoutManager and Caliburn.Micro / ContentControl

$
0
0

I have a small WPF application that uses Caliburn Micro to display two user controls with each a label inside. If I run the application I see the two labels.

 

<UserControlxmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"x:Class="WpfApplication1.ShellView"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"mc:Ignorable="d"d:DesignHeight="300"d:DesignWidth="300"><StackPanelWidth="300"Height="300"Background="LightBlue"><ContentControlx:Name="UC1"Height="100"></ContentControl><ContentControlx:Name="UC2"Height="100"></ContentControl></StackPanel></UserControl>

 

The next step is to make the two user controls Dockable by using DockLayoutManager like below, The problem is problem is I see the two dockable panels but I don't see the usercontrols anymore, Why?

 

<UserControlxmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"x:Class="WpfApplication1.ShellView"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"mc:Ignorable="d"d:DesignHeight="300"d:DesignWidth="300"><StackPanelWidth="300"Height="300"Background="LightBlue"><!--<ContentControl x:Name="UC1" Height="100"></ContentControl>
        <ContentControl x:Name="UC2" Height="100"></ContentControl>--><dxdo:DockLayoutManager><dxdo:LayoutGroupOrientation="Vertical"><dxdo:LayoutPanelCaption="Panel1"><ContentControlHeight="100"x:Name="UC1"></ContentControl></dxdo:LayoutPanel><dxdo:LayoutPanelCaption="Panel2"><ContentControlHeight="100"x:Name="UC2"></ContentControl></dxdo:LayoutPanel></dxdo:LayoutGroup></dxdo:DockLayoutManager></StackPanel></UserControl>

Viewing all articles
Browse latest Browse all 1760

Trending Articles



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