Hi,
Consider my scenario
- I added items to graph from my custom toolbox (not telerik), i implemented ICommnad, and execute under UndoRedoService
- Moving newly added item on graph surface - OK
- Pressing Ctrl-Z until element disappear(Undo on my custom Command) - position of element changed properly - OK
- Pressing Ctrl-Y - element appear - OK
- Pressing Ctrl-Y - element should move, but it stays in same position.. - BUG
To clarify, further pressing Ctrl-Z/Y has no impact on element position
Any help appreciated.
Consider my scenario
- I added items to graph from my custom toolbox (not telerik), i implemented ICommnad, and execute under UndoRedoService
- Moving newly added item on graph surface - OK
- Pressing Ctrl-Z until element disappear(Undo on my custom Command) - position of element changed properly - OK
- Pressing Ctrl-Y - element appear - OK
- Pressing Ctrl-Y - element should move, but it stays in same position.. - BUG
To clarify, further pressing Ctrl-Z/Y has no impact on element position
public
void
Undo(
object
a_state)
{
if
(m_createdNode ==
null
)
{
return
;
}
GraphSource.RemoveItem(m_createdNode);
}
public
void
Redo()
{
if
(m_createdNode ==
null
)
{
return
;
}
GraphSource.AddNode(m_createdNode);
}
Any help appreciated.