Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ListView
- x:Name="TechSchoolListView"
- ClipToBounds="False"
- Width="Auto" Height="Auto"
- HorizontalContentAlignment="Stretch"
- VerticalContentAlignment="Top"
- ItemTemplate="{DynamicResource TechSchoolDataTemplate}"
- ItemsSource="{Binding Path=TechSchoolResearchList, Mode=Default}"
- SelectedIndex="1"
- SelectedValue="{Binding Path=SelectedTechSchool, Mode=Default}"
- SelectionChanged="TechSchoolList_SelectionChanged"
- ItemContainerStyle="{DynamicResource TechSchoolItemContainerStyle}"
- ScrollViewer.CanContentScroll="False"
- ScrollViewer.VerticalScrollBarVisibility="Disabled" >
- <ListView.Background>
- <SolidColorBrush Color="{DynamicResource PanelBackgroundColor}"/>
- </ListView.Background>
- </ListView>
- UIElement selectedContainer = (UIElement) TechSchoolListView.ItemContainerGenerator.ContainerFromIndex(TechSchoolListView.SelectedIndex);
- Point cursorPos = selectedContainer.TranslatePoint(new Point(selectedContainer.DesiredSize.Width, 0.0), Page);
- PanelCursor.Height = selectedContainer.DesiredSize.Height;
- PanelCursor.Margin = new Thickness(400, cursorPos.Y, 0.0, 0.0);
Add Comment
Please, Sign In to add comment