-
[DX_WPF] DiagramControl Container CollapseDevExpress/DX_WPF 2023. 4. 18. 16:29
<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
728x90'DevExpress > DX_WPF' 카테고리의 다른 글
[DX_WPF] DevExpress Image (0) 2023.05.04 [DX_WPF] Themes (0) 2023.05.03 [DX_WPF] BarEditItem, Background (0) 2023.03.17 [DX_WPF] could not load file or assembly 'devexpress.xpf.~' (0) 2023.01.06 [DX_WPF] 새창에서 모듈 띄우기 (0) 2023.01.05 댓글