첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170

TestProject.zip
다운로드

▶ MainWindow.xaml

<Window x:Class="TestProject.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
    Width="800"
    Height="600"
    Title="BarLinkContainerItem 생성하기"
    FontFamily="나눔고딕코딩"
    FontSize="16">
    <Grid>
        <dxb:BarManager x:Name="barManager"
            CreateStandardLayout="True">
            <dxb:BarManager.Items>
                <dxb:BarButtonItem x:Name="cutBarButtonItem"   Content="Cut"   Glyph="pack://application:,,,/Image/cut16x16.png"   />
                <dxb:BarButtonItem x:Name="copyBarButtonItem"  Content="Copy"  Glyph="pack://application:,,,/Image/copy16x16.png"  />
                <dxb:BarButtonItem x:Name="pasteBarButtonItem" Content="Paste" Glyph="pack://application:,,,/Image/paste16x16.png" />
                <dxb:BarButtonItem x:Name="undoBarButtonItem"  Content="Undo"  Glyph="pack://application:,,,/Image/undo16x16.png"  />
                <dxb:BarButtonItem x:Name="redoBarButtonItem"  Content="Redo"  Glyph="pack://application:,,,/Image/redo16x16.png"  />
                <dxb:BarLinkContainerItem x:Name="barLinkContainerItem"
                    Content="Edit Commands">
                    <dxb:BarLinkContainerItem.ItemLinks>
                        <dxb:BarButtonItemLink BarItemName="cutBarButtonItem"   />
                        <dxb:BarButtonItemLink BarItemName="copyBarButtonItem"  />
                        <dxb:BarButtonItemLink BarItemName="pasteBarButtonItem" />
                    </dxb:BarLinkContainerItem.ItemLinks>
                </dxb:BarLinkContainerItem>
                <dxb:BarSubItem x:Name="editBarSubItem"
                    Content="Edit">
                    <dxb:BarSubItem.ItemLinks>
                        <dxb:BarLinkContainerItemLink BarItemName="barLinkContainerItem" />
                    </dxb:BarSubItem.ItemLinks>
                </dxb:BarSubItem>
            </dxb:BarManager.Items>
            <dxb:BarManager.Bars>
                <dxb:Bar x:Name="bar"
                    Caption="Bar 1">
                    <dxb:Bar.DockInfo>
                        <dxb:BarDockInfo ContainerType="Top" />
                    </dxb:Bar.DockInfo>
                    <dxb:Bar.ItemLinks>
                        <dxb:BarLinkContainerItemLink BarItemName="barLinkContainerItem" />
                        <dxb:BarItemLinkSeparator />
                        <dxb:BarButtonItemLink BarItemName="undoBarButtonItem" />
                        <dxb:BarButtonItemLink BarItemName="redoBarButtonItem" />
                        <dxb:BarItemLinkSeparator />
                        <dxb:BarSubItemLink BarItemName="editBarSubItem" />
                    </dxb:Bar.ItemLinks>
                </dxb:Bar>
            </dxb:BarManager.Bars>
            <RichTextBox />
        </dxb:BarManager>
    </Grid>
</Window>

 

728x90

 

▶ MainWindow.xaml.cs

using System.Windows;

namespace TestProject
{
    /// <summary>
    /// 메인 윈도우
    /// </summary>
    public partial class MainWindow : Window
    {
        //////////////////////////////////////////////////////////////////////////////////////////////////// Constructor
        ////////////////////////////////////////////////////////////////////////////////////////// Public

        #region 생성자 - MainWindow()

        /// <summary>
        /// 생성자
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();
        }

        #endregion
    }
}
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요