i currently using the xctk:richtextbox inside a Itemscontrol->Datatemplate->DataGrid->Datagridtemplatecolum->Datatemplate
It works:
<DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<xctk:RichTextBox FontSize="12" Text="{Binding ...}">
<xctk:RichTextBoxFormatBarManager.FormatBar>
<xctk:RichTextBoxFormatBar FontSize="12" Margin="5,10,5,5"/>
</xctk:RichTextBoxFormatBarManager.FormatBar> </xctk:RichTextBox>
</DataTemplate>
</DataGridTemplateColumn.CellEditingTemplate>
But the Formatbar often moves (a part) "behind" the cell, so u must move the bar to see/use all functions, or in worst case u must stop editig and reedit.
So my Idea is, to place the Bar above the rtfbox, but then there is no "binding" to the rtfbox (and Application crashes if u try to move the bar)
<DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<StackPanel>
<xctk:RichTextBoxFormatBar FontSize="12" Margin="5,10,5,5"/>
<xctk:RichTextBox FontSize="12" Text="{Binding ...}">
</xctk:RichTextBox>
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellEditingTemplate>]
Does any one have Idea how to fix one of this problems?
- Formatbar allways full visible and useable, means "topmost"
or
- set the Formatbar to a fixed position
One working solution is, to set the rtfbox-Margin to high Values like 0,40,0,40, but does not look so good
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…