0

MVVM のビューである既存の ConfigurationsView を空の DocumentGroup にドッキングしたいと考えています。

これが私の ConfigurationsView の外観です。

<!--ConfigurationsView-->
<UserControl
    x:Class="myWPF.Views.ConfigurationsView"
    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"
    xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    xmlns:mvvm="clr-namespace:myWPF.Mvvm"
    xmlns:utils="clr-namespace:myWPF.Utils"
    xmlns:views="clr-namespace:myWPF.Views"
    mc:Ignorable="d" 
    dx:ThemeManager.ThemeName="Office2007Blue"
    SnapsToDevicePixels="True" UseLayoutRounding="True" >

    <UserControl.Resources>
        <mvvm:DxColumnTemplateSelector x:Key="ColumnTemplateSelector"/>
    </UserControl.Resources>

    <Grid>
        <dxg:GridControl x:Name="GridControl" ShowBorder="False" 
            ColumnsSource="{Binding Path=GridColumns}"
            ColumnGeneratorTemplateSelector="{StaticResource ColumnTemplateSelector}" 
            TotalSummaryGeneratorTemplate="{StaticResource SummaryTemplate}"
            TotalSummarySource="{Binding SummaryColumns}"
            ItemsSource="{Binding GridItems}"
            SelectedItem="{Binding SelectedGridItem}">

            <dxg:GridControl.View>
                <views:TableView x:Name="TableView" FontSize="11" ShowGroupPanel="False"  ShowAutoFilterRow="True"
                    AllowBestFit="True" AllowEditing="False" NavigationStyle="Row" AutoWidth="False" AllowColumnFiltering="True" 
                    AllowFilterEditor="True" ShowTotalSummary="False" GroupSummaryDisplayMode="AlignByColumns" >
                </views:CvaTableView>
            </dxg:GridControl.View>
        </dxg:GridControl>

        <!-- Overlay a label with some hint text if there's a warning to show -->
        <utils:SplashScreen DataContext="{Binding}" />

    </Grid>
</UserControl>

この既存のパネルを、複数の既存のパネルのコンテナーとして機能する空の DocumentGroup に追加したいと考えています。ドキュメント パネルのサンプルのほとんどは、DocumentPanels をドッキングする方法のみを説明しており、既存のビューは説明していません。助けてください。

ありがとう!

4

0 に答える 0