[DX_WPF] DiagramControl Container Collapse
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:prism="http://prismlibrary.com/"
xmlns:dxdiag="http://schemas.devexpress.com/winfx/2008/xaml/diagram" x:Class="PMArchitectureVisualizer.Views.TestDeviceView"
prism:ViewModelLocator.AutoWireViewModel="True">
<Grid>
<dxdiag:DiagramControl
AllowCollapseContainers="True"
SelectedStencils="BasicShapes, BasicFlowchartShapes">
<dxdiag:DiagramContainer
ShowHeader="True"
HeaderPadding="20"
FontSize="50"
Header="header"
CanCollapse="True"
CollapseContainerButtonSize="100,100"
CollapseContainerButtonPadding="10"
CollapseButtonHorizontalAlignment="Near"
CollapseButtonVerticalAlignment="Center"
CollapseButtonVisibilityMode="Always"
Height="500"
Width="500"
Position="500,500">
<!--<dxdiag:DiagramContentItem
Height="50"
Width="50">
<Button/>
</dxdiag:DiagramContentItem>-->
<!--<dxdiag:DiagramShape
CollapseButtonHorizontalAlignment="Center"
CollapseButtonVerticalAlignment="Center"
CollapseButtonPosition="100,100"
CollapseButtonVisibilityMode="Always"
Height="300"
Width="300"
></dxdiag:DiagramShape>-->
</dxdiag:DiagramContainer>
</dxdiag:DiagramControl>
</Grid>
</UserControl>
필수추가
<dxdiag:DiagramControl
AllowCollapseContainers="True"
>
<dxdiag:DiagramContainer
ShowHeader="True"
CanCollapse="True"
>
관련자료 링크
container.CollapseButtonPosition is not working!
You have yet to view any tickets. Your search criteria do not match any tickets. A server error occurred while processing your request. Please try again at a later time.
supportcenter.devexpress.com
How to change DiagramContainer's label position and editor
You have yet to view any tickets. Your search criteria do not match any tickets. A server error occurred while processing your request. Please try again at a later time.
supportcenter.devexpress.com
https://docs.devexpress.com/WPF/DevExpress.Xpf.Diagram.DiagramItem.CollapseButtonVerticalAlignment
DiagramItem.CollapseButtonVerticalAlignment Property | WPF Controls | DevExpress Documentation
DiagramItem.CollapseButtonVerticalAlignment Property Gets or sets the vertical alignment of the collapse button. Namespace: DevExpress.Xpf.Diagram Assembly: DevExpress.Xpf.Diagram.v22.2.dll NuGet Package: DevExpress.Wpf.Diagram Declaration C# VB.NET public
docs.devexpress.com
Containers and Lists | WPF Controls | DevExpress Documentation
Overview You can use containers and lists to group diagram items. DiagramContainer is a regular container. The DiagramList class is a DiagramContainer descendant. This is a special container type that stacks child items horizontally or vertically. The Orie
docs.devexpress.com