Mini Kabibi Habibi
<local:RichEditDemoModule
x:Class="RichEditDemo.Tables" Height="400" Width="800"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxre="http://schemas.devexpress.com/winfx/2008/xaml/richedit"
xmlns:dxdb="http://schemas.devexpress.com/winfx/2008/xaml/demobase"
xmlns:local="clr-namespace:RichEditDemo">
<local:RichEditDemoModule.Resources>
<ResourceDictionary>
<dxre:RichEditUICommand x:Key="commands" />
</ResourceDictionary>
</local:RichEditDemoModule.Resources>
<dxdb:DemoModuleControl>
<Grid>
<dxb:BarManager Name="barManager1" ToolbarGlyphSize="Small">
<dxb:BarManager.Bars>
<dxb:Bar Caption="Common" Name="barCommon">
<dxb:Bar.DockInfo>
<dxb:BarDockInfo ContainerType="Top" />
</dxb:Bar.DockInfo>
<dxb:Bar.ItemLinks>
<dxb:BarButtonItemLink BarItemName="biEditUndo" />
<dxb:BarButtonItemLink BarItemName="biEditRedo" />
</dxb:Bar.ItemLinks>
</dxb:Bar>
<dxb:Bar Caption="Clipboard" Name="barClipboard">
<dxb:Bar.DockInfo>
<dxb:BarDockInfo ContainerType="Top" />
</dxb:Bar.DockInfo>
<dxb:Bar.ItemLinks>
<dxb:BarButtonItemLink BarItemName="biEditCut" />
<dxb:BarButtonItemLink BarItemName="biEditCopy" />
<dxb:BarButtonItemLink BarItemName="biEditPaste" />
</dxb:Bar.ItemLinks>
</dxb:Bar>
<dxb:Bar Caption="Tables" Name="barTables">
<dxb:Bar.DockInfo>
<dxb:BarDockInfo ContainerType="Top" />
</dxb:Bar.DockInfo>
<dxb:Bar.ItemLinks>
<dxb:BarButtonItemLink BarItemName="biInsertTable" />
</dxb:Bar.ItemLinks>
</dxb:Bar>
<dxb:Bar Caption="Table Styles" Name="barTableStyles">
<dxb:Bar.DockInfo>
<dxb:BarDockInfo ContainerType="Top" />
</dxb:Bar.DockInfo>
<dxb:Bar.ItemLinks>
<dxre:BarSplitButtonColorEditItemLink BarItemName="biTableChangeCellsShading" />
<dxb:BarSubItemLink BarItemName="biTableChangeBorders" />
</dxb:Bar.ItemLinks>
</dxb:Bar>
<dxb:Bar Caption="Draw Borders" Name="barDrawBorders">
<dxb:Bar.DockInfo>
<dxb:BarDockInfo ContainerType="Top" />
</dxb:Bar.DockInfo>
<dxb:Bar.ItemLinks>
<dxre:BarSplitButtonColorEditItemLink BarItemName="biTableChangeCellsBorderColor" />
</dxb:Bar.ItemLinks>
</dxb:Bar>
<dxb:Bar Caption="Table" Name="barTable">
<dxb:Bar.DockInfo>
<dxb:BarDockInfo ContainerType="Top" />
</dxb:Bar.DockInfo>
<dxb:Bar.ItemLinks>
<dxb:BarSubItemLink BarItemName="biTableSelectElement" />
<dxb:BarCheckItemLink BarItemName="biTableToggleShowGridlines" />
<dxb:BarButtonItemLink BarItemName="biTableProperties" />
</dxb:Bar.ItemLinks>
</dxb:Bar>
<dxb:Bar Caption="Rows & Columns" Name="barRowsColumns">
<dxb:Bar.DockInfo>
<dxb:BarDockInfo ContainerType="Top" />
</dxb:Bar.DockInfo>
<dxb:Bar.ItemLinks>
<dxb:BarSubItemLink BarItemName="biTableDeleteElement" />
<dxb:BarButtonItemLink BarItemName="biTableInsertRowAbove" />
<dxb:BarButtonItemLink BarItemName="biTableInsertRowBelow" />
<dxb:BarButtonItemLink BarItemName="biTableInsertColumnToLeft" />
<dxb:BarButtonItemLink BarItemName="biTableInsertColumnToRight" />
<dxb:BarButtonItemLink BarItemName="biTableInsertCells" />
</dxb:Bar.ItemLinks>
</dxb:Bar>
<dxb:Bar Caption="Merge" Name="barMerge">
<dxb:Bar.DockInfo>
<dxb:BarDockInfo ContainerType="Top" />
</dxb:Bar.DockInfo>
<dxb:Bar.ItemLinks>
<dxb:BarButtonItemLink BarItemName="biTableMergeCells" />
<dxb:BarButtonItemLink BarItemName="biTableSplit" />
<dxb:BarButtonItemLink BarItemName="biTableSplitCells" />
</dxb:Bar.ItemLinks>
</dxb:Bar>
<dxb:Bar Caption="Cell Size" Name="barCellSize">
<dxb:Bar.DockInfo>
<dxb:BarDockInfo ContainerType="Top" />
</dxb:Bar.DockInfo>
<dxb:Bar.ItemLinks>
<dxb:BarSubItemLink BarItemName="biToggleTableAutoFit" />
</dxb:Bar.ItemLinks>
</dxb:Bar>
<dxb:Bar Caption="Alignment" Name="barAlignment">
<dxb:Bar.DockInfo>
<dxb:BarDockInfo ContainerType="Top" />
</dxb:Bar.DockInfo>
<dxb:Bar.ItemLinks>
<dxb:BarCheckItemLink BarItemName="biTableToggleCellsTopLeftAlignment" />
<dxb:BarCheckItemLink BarItemName="biTableToggleCellsTopCenterAlignment" />
<dxb:BarCheckItemLink BarItemName="biTableToggleCellsTopRightAlignment" />
<dxb:BarCheckItemLink BarItemName="biTableToggleCellsMiddleLeftAlignment" />
<dxb:BarCheckItemLink BarItemName="biTableToggleCellsMiddleCenterAlignment" />
<dxb:BarCheckItemLink BarItemName="biTableToggleCellsMiddleRightAlignment" />
<dxb:BarCheckItemLink BarItemName="biTableToggleCellsBottomLeftAlignment" />
<dxb:BarCheckItemLink BarItemName="biTableToggleCellsBottomCenterAlignment" />
<dxb:BarCheckItemLink BarItemName="biTableToggleCellsBottomRightAlignment" />
<dxb:BarButtonItemLink BarItemName="biTableOptions" />
</dxb:Bar.ItemLinks>
</dxb:Bar>
</dxb:BarManager.Bars>
<dxb:BarManager.Items>
<dxb:BarButtonItem Command="{Binding Path=EditUndo, Mode=OneTime, Source={StaticResource commands}}" Name="biEditUndo" />
<dxb:BarButtonItem Command="{Binding Path=EditRedo, Mode=OneTime, Source={StaticResource commands}}" Name="biEditRedo" />
<dxb:BarButtonItem Command="{Binding Path=EditCut, Mode=OneTime, Source={StaticResource commands}}" Name="biEditCut" />
<dxb:BarButtonItem Command="{Binding Path=EditCopy, Mode=OneTime, Source={StaticResource commands}}" Name="biEditCopy" />
<dxb:BarButtonItem Command="{Binding Path=EditPaste, Mode=OneTime, Source={StaticResource commands}}" Name="biEditPaste" />
<dxb:BarButtonItem Command="{Binding Path=InsertTable, Mode=OneTime, Source={StaticResource commands}}" Name="biInsertTable" />
<dxre:BarSplitButtonColorEditItem Command="{Binding Path=TableChangeCellsShading, Mode=OneTime, Source={StaticResource commands}}" Name="biTableChangeCellsShading">
<dxre:BarSplitButtonColorEditItem.PopupControl>
<dxb:PopupControlContainerInfo>
<dxe:ColorEdit EditValue="{Binding ElementName=biTableChangeCellsShading, Mode=TwoWay, Path=EditValue}" ShowBorder="False" ShowDefaultColorButton="False" ShowNoColorButton="True" />
</dxb:PopupControlContainerInfo>
</dxre:BarSplitButtonColorEditItem.PopupControl>
</dxre:BarSplitButtonColorEditItem>
<dxb:BarSubItem Command="{Binding Path=TableChangeBorders, Mode=OneTime, Source={StaticResource commands}}" Name="biTableChangeBorders">
<dxb:BarSubItem.ItemLinks>
<dxb:BarCheckItemLink BarItemName="biTableToggleBottomBorder" />
<dxb:BarCheckItemLink BarItemName="biTableToggleTopBorder" />
<dxb:BarCheckItemLink BarItemName="biTableToggleLeftBorder" />
<dxb:BarCheckItemLink BarItemName="biTableToggleRightBorder" />
<dxb:BarButtonItemLink BarItemName="biTableResetAllBorders" />
<dxb:BarCheckItemLink BarItemName="biTableToggleAllBorders" />
<dxb:BarCheckItemLink BarItemName="biTableToggleOutsideBorder" />
<dxb:BarCheckItemLink BarItemName="biTableToggleInsideBorder" />
<dxb:BarCheckItemLink BarItemName="biTableToggleInsideHorizontalBorder" />
<dxb:BarCheckItemLink BarItemName="biTableToggleInsideVerticalBorder" />
</dxb:BarSubItem.ItemLinks>
</dxb:BarSubItem>
<dxb:BarCheckItem Command="{Binding Path=TableToggleBottomBorder, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleBottomBorder" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleTopBorder, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleTopBorder" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleLeftBorder, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleLeftBorder" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleRightBorder, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleRightBorder" />
<dxb:BarButtonItem Command="{Binding Path=TableResetAllBorders, Mode=OneTime, Source={StaticResource commands}}" Name="biTableResetAllBorders" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleAllBorders, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleAllBorders" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleOutsideBorder, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleOutsideBorder" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleInsideBorder, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleInsideBorder" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleInsideHorizontalBorder, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleInsideHorizontalBorder" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleInsideVerticalBorder, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleInsideVerticalBorder" />
<dxre:BarSplitButtonColorEditItem Command="{Binding Path=TableChangeCellsBorderColor, Mode=OneTime, Source={StaticResource commands}}" Name="biTableChangeCellsBorderColor">
<dxre:BarSplitButtonColorEditItem.PopupControl>
<dxb:PopupControlContainerInfo>
<dxe:ColorEdit EditValue="{Binding ElementName=biTableChangeCellsBorderColor, Mode=TwoWay, Path=EditValue}" ShowBorder="False" />
</dxb:PopupControlContainerInfo>
</dxre:BarSplitButtonColorEditItem.PopupControl>
</dxre:BarSplitButtonColorEditItem>
<dxb:BarButtonItem Command="{Binding Path=TableInsertRowAbove, Mode=OneTime, Source={StaticResource commands}}" Name="biTableInsertRowAbove" />
<dxb:BarButtonItem Command="{Binding Path=TableInsertRowBelow, Mode=OneTime, Source={StaticResource commands}}" Name="biTableInsertRowBelow" />
<dxb:BarButtonItem Command="{Binding Path=TableInsertColumnToLeft, Mode=OneTime, Source={StaticResource commands}}" Name="biTableInsertColumnToLeft" />
<dxb:BarButtonItem Command="{Binding Path=TableInsertColumnToRight, Mode=OneTime, Source={StaticResource commands}}" Name="biTableInsertColumnToRight" />
<dxb:BarButtonItem Command="{Binding Path=TableMergeCells, Mode=OneTime, Source={StaticResource commands}}" Name="biTableMergeCells" />
<dxb:BarButtonItem Command="{Binding Path=TableSplit, Mode=OneTime, Source={StaticResource commands}}" Name="biTableSplit" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleCellsTopLeftAlignment, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleCellsTopLeftAlignment" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleCellsTopCenterAlignment, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleCellsTopCenterAlignment" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleCellsTopRightAlignment, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleCellsTopRightAlignment" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleCellsMiddleLeftAlignment, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleCellsMiddleLeftAlignment" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleCellsMiddleCenterAlignment, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleCellsMiddleCenterAlignment" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleCellsMiddleRightAlignment, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleCellsMiddleRightAlignment" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleCellsBottomLeftAlignment, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleCellsBottomLeftAlignment" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleCellsBottomCenterAlignment, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleCellsBottomCenterAlignment" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleCellsBottomRightAlignment, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleCellsBottomRightAlignment" />
<dxb:BarSubItem Command="{Binding Path=TableSelectElement, Mode=OneTime, Source={StaticResource commands}}" Name="biTableSelectElement">
<dxb:BarSubItem.ItemLinks>
<dxb:BarCheckItemLink BarItemName="biTableSelectCell" />
<dxb:BarCheckItemLink BarItemName="biTableSelectColumn" />
<dxb:BarCheckItemLink BarItemName="biTableSelectRow" />
<dxb:BarCheckItemLink BarItemName="biTableSelect" />
</dxb:BarSubItem.ItemLinks>
</dxb:BarSubItem>
<dxb:BarCheckItem Command="{Binding Path=TableSelectCell, Mode=OneTime, Source={StaticResource commands}}" Name="biTableSelectCell" />
<dxb:BarCheckItem Command="{Binding Path=TableSelectColumn, Mode=OneTime, Source={StaticResource commands}}" Name="biTableSelectColumn" />
<dxb:BarCheckItem Command="{Binding Path=TableSelectRow, Mode=OneTime, Source={StaticResource commands}}" Name="biTableSelectRow" />
<dxb:BarCheckItem Command="{Binding Path=TableSelect, Mode=OneTime, Source={StaticResource commands}}" Name="biTableSelect" />
<dxb:BarCheckItem Command="{Binding Path=TableToggleShowGridlines, Mode=OneTime, Source={StaticResource commands}}" Name="biTableToggleShowGridlines" />
<dxb:BarButtonItem Command="{Binding Path=TableProperties, Mode=OneTime, Source={StaticResource commands}}" Name="biTableProperties" />
<dxb:BarSubItem Command="{Binding Path=TableDeleteElement, Mode=OneTime, Source={StaticResource commands}}" Name="biTableDeleteElement">
<dxb:BarSubItem.ItemLinks>
<dxb:BarCheckItemLink BarItemName="biTableDeleteCell" />
<dxb:BarCheckItemLink BarItemName="biTableDeleteColumn" />
<dxb:BarCheckItemLink BarItemName="biTableDeleteRow" />
<dxb:BarCheckItemLink BarItemName="biTableDelete" />
</dxb:BarSubItem.ItemLinks>
</dxb:BarSubItem>
<dxb:BarCheckItem Command="{Binding Path=TableDeleteCell, Mode=OneTime, Source={StaticResource commands}}" Name="biTableDeleteCell" />
<dxb:BarCheckItem Command="{Binding Path=TableDeleteColumn, Mode=OneTime, Source={StaticResource commands}}" Name="biTableDeleteColumn" />
<dxb:BarCheckItem Command="{Binding Path=TableDeleteRow, Mode=OneTime, Source={StaticResource commands}}" Name="biTableDeleteRow" />
<dxb:BarCheckItem Command="{Binding Path=TableDelete, Mode=OneTime, Source={StaticResource commands}}" Name="biTableDelete" />
<dxb:BarButtonItem Command="{Binding Path=TableInsertCells, Mode=OneTime, Source={StaticResource commands}}" Name="biTableInsertCells" />
<dxb:BarButtonItem Command="{Binding Path=TableSplitCells, Mode=OneTime, Source={StaticResource commands}}" Name="biTableSplitCells" />
<dxb:BarSubItem Command="{Binding Path=ToggleTableAutoFit, Mode=OneTime, Source={StaticResource commands}}" Name="biToggleTableAutoFit">
<dxb:BarSubItem.ItemLinks>
<dxb:BarCheckItemLink BarItemName="biToggleTableAutoFitContents" />
<dxb:BarCheckItemLink BarItemName="biToggleTableAutoFitWindow" />
<dxb:BarCheckItemLink BarItemName="biToggleTableFixedColumnWidth" />
</dxb:BarSubItem.ItemLinks>
</dxb:BarSubItem>
<dxb:BarCheckItem Command="{Binding Path=ToggleTableAutoFitContents, Mode=OneTime, Source={StaticResource commands}}" Name="biToggleTableAutoFitContents" />
<dxb:BarCheckItem Command="{Binding Path=ToggleTableAutoFitWindow, Mode=OneTime, Source={StaticResource commands}}" Name="biToggleTableAutoFitWindow" />
<dxb:BarCheckItem Command="{Binding Path=ToggleTableFixedColumnWidth, Mode=OneTime, Source={StaticResource commands}}" Name="biToggleTableFixedColumnWidth" />
<dxb:BarButtonItem Command="{Binding Path=TableOptions, Mode=OneTime, Source={StaticResource commands}}" Name="biTableOptions" />
</dxb:BarManager.Items>
<dxre:RichEditControl x:Name="richEdit" VerticalAlignment="Stretch" BarManager="{Binding ElementName=barManager1, Mode=OneTime}" ShowBorder="False">
</dxre:RichEditControl>
</dxb:BarManager>
</Grid>
</dxdb:DemoModuleControl>
</local:RichEditDemoModule>