Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ListBox全体と目に見えるScrollViewer領域に従って、ListBoxItem(その左上隅)の絶対(X、Y)位置を取得するにはどうすればよいですか? WP7 には TranslatePoint() がないようです。
道を見つけました。
var selectedItem = listBox.ItemContainerGenerator.ContainerFromItem(listBox.SelectedItem) as ListBoxItem; var transformToVisual = selectedItem.TransformToVisual(listBox); var transform = transformToVisual.Transform(new Point(0, 0));