Hai is it possible to convert a 'System.Windows.Documents.Block' to 'System.Windows.UIElement' . I need this as i want to add the blocks i created to a fixed document.is there any other way? thanx alot
A:
For if someone still needs to know this, it's pretty easy.
Just use a BlockUIElement to contain the UIElement.
For instance, if you were to attach a Border element to a table's cell:
TableCell cell = new TableCell(new Border()); //won't work!
TableCell cell = new TableCell(new BlockUIContainer(new Border())); OK!
Cleric Stormgate
2010-07-26 10:13:17