Click here to Skip to main content
15,924,581 members
Home / Discussions / WPF
   

WPF

 
QuestionStroke "erasure by points" action duplication on an InkCanvas. (WPF) Pin
Amit Regmi15-Dec-08 9:59
Amit Regmi15-Dec-08 9:59 
Hi,

I have two InkCanvas in two applications. I am finding it difficult to duplicate the stroke "erasure by points" action on one InkCanvas to the other.

Basically my application communicates over the Network and can send strokes to the other InkCanvas which adds them.

Now, say
a) Canvas1 sends Stroke1 and Canvas2 receives and adds it to it.
b) Canvas1 deletes some Stroke1 portion (at the middle) which basically splits it into two strokes. This split is to be reflected in Canvas2 also.

My Question is, How can I possibly achieve this ?

I do not think I can collect the "Erasure by Points" cursor movement as a stroke, transfer to other side and clip off that part of the stroke in Canvas2.

I could imitate the "Delete as STroke" event, that deletes a full stroke by exchanging the full stoke to Canvas2, locating it, and then doing a Canvas2.Strokes.RemoveAt(position)

Will somebody have any suggestion ??
Thanks in advance.

ps: Also posted @ http://social.msdn.microsoft.com/Forums/en-US/tabletandtouch/thread/a535fe90-a8fb-4d34-adc6-d08086123627

-regmee
QuestionC# WPF how to find ContextMenu Parent Control? [modified] Pin
me0814-Dec-08 21:17
me0814-Dec-08 21:17 
QuestionMulti Line in WPF C# text box on Shift+Enter only Pin
Emir Gracanin13-Dec-08 8:59
Emir Gracanin13-Dec-08 8:59 
AnswerRe: Multi Line in WPF C# text box on Shift+Enter only Pin
Insincere Dave13-Dec-08 10:53
Insincere Dave13-Dec-08 10:53 
QuestionHow to set DataSource for DataGridView in WPF [modified] Pin
Czechtim213-Dec-08 6:44
Czechtim213-Dec-08 6:44 
AnswerRe: How to set DataSource for DataGridView in WPF Pin
Mark Salsbery13-Dec-08 9:34
Mark Salsbery13-Dec-08 9:34 
GeneralRe: How to set DataSource for DataGridView in WPF Pin
Czechtim213-Dec-08 11:19
Czechtim213-Dec-08 11:19 
GeneralRe: How to set DataSource for DataGridView in WPF Pin
Mark Salsbery13-Dec-08 17:16
Mark Salsbery13-Dec-08 17:16 
GeneralRe: How to set DataSource for DataGridView in WPF Pin
Czechtim213-Dec-08 22:07
Czechtim213-Dec-08 22:07 
GeneralRe: How to set DataSource for DataGridView in WPF Pin
Mark Salsbery14-Dec-08 9:38
Mark Salsbery14-Dec-08 9:38 
GeneralRe: How to set DataSource for DataGridView in WPF Pin
Czechtim214-Dec-08 11:04
Czechtim214-Dec-08 11:04 
GeneralRe: How to set DataSource for DataGridView in WPF Pin
Mark Salsbery14-Dec-08 12:06
Mark Salsbery14-Dec-08 12:06 
GeneralRe: How to set DataSource for DataGridView in WPF Pin
Czechtim215-Dec-08 2:31
Czechtim215-Dec-08 2:31 
GeneralRe: How to set DataSource for DataGridView in WPF Pin
Mark Salsbery15-Dec-08 10:28
Mark Salsbery15-Dec-08 10:28 
GeneralRe: How to set DataSource for DataGridView in WPF Pin
Czechtim215-Dec-08 10:33
Czechtim215-Dec-08 10:33 
Questionchange menustrip Pin
jogisarge12-Dec-08 5:17
jogisarge12-Dec-08 5:17 
AnswerRe: change menustrip Pin
Mark Salsbery12-Dec-08 7:05
Mark Salsbery12-Dec-08 7:05 
QuestionInstance Error in xaml Pin
Arijit Manna11-Dec-08 23:15
Arijit Manna11-Dec-08 23:15 
AnswerRe: Instance Error in xaml Pin
Pete O'Hanlon12-Dec-08 1:26
mvePete O'Hanlon12-Dec-08 1:26 
AnswerRe: Instance Error in xaml Pin
Mark Salsbery12-Dec-08 7:08
Mark Salsbery12-Dec-08 7:08 
GeneralRe: Instance Error in xaml Pin
Arijit Manna12-Dec-08 18:00
Arijit Manna12-Dec-08 18:00 
GeneralRe: Instance Error in xaml Pin
Mark Salsbery13-Dec-08 6:07
Mark Salsbery13-Dec-08 6:07 
QuestionVector To Raster in WPF is Blurry... Pin
pym11-Dec-08 4:01
pym11-Dec-08 4:01 
QuestionCan we use a WinApp control in WPF ? Pin
Mohammad Dayyan10-Dec-08 21:17
Mohammad Dayyan10-Dec-08 21:17 
AnswerRe: Can we use a WinApp control in WPF ? [modified] Pin
anandkb11-Dec-08 0:30
anandkb11-Dec-08 0:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.