private void PinnedItems_Drop(object sender, SurfaceDragDropEventArgs e) { DragableImageItem image = e.Cursor.Data as DragableImageItem; SurfaceListBoxItem s = (SurfaceListBoxItem)sender; BluetoothHandler.SendBluetooth((s.Content as PhoneThumbVisualization).BTEndpoint, image.Image); }
private void StackPanel_Drop(object sender, SurfaceDragDropEventArgs e) { DragableImageItem item = e.Cursor.Data as DragableImageItem; if (BTEndpoint != null) { BluetoothHandler.SendBluetooth(BTEndpoint, item.Image); } }