. Styling data cells. In order to access the ScrollViewer that is embedded inside the XamDataGrid's template you can use the following code: ScrollViewer temp = Utilities. PointAPI p = new PointAPI(); GetCursorPos(out p); Using user32. In WPF, popups are represented by the Popup class. To see how the styles are applied to elements, see the previous XAML. The dock side of an element is defined by the attached property DockPanel. xaml, add the following XAML just after the Grid start.