2011-07-05 4 views
3

GridSplitter를 사용하여 열의 크기를 조정하고 있습니다 (그 밖의 내용은 무엇입니까?). 잘 작동합니다. 그러나 Surface V2 환경에서 진화하고 있습니다. 터치 시뮬레이션을 사용하면 터치 이벤트가 내 친애하는 GridSplitter로 전송되지 않습니다.Gridsplitter 및 Touch

그 작업을 수행하는 방법에 대한 힌트가 있습니까?

답변

1

그냥이 같은 이벤트를 등록 :

YourGridSplitter.PreviewDragEnter += new DragEventHandler(YourGridSplitter_PreviewDragEnter); 

void YourGridSplitter_PreviewDragEnter(object sender, DragEventArgs e) 
{ 
    // nothing here 
} 
0

당신은 touchdevice를 캡처해야합니다.

gs.PreviewTouchDown += (s, e) => { e.TouchDevice.Capture((s as UIElement)); };