Advertisement
onzulin

ListBox height

Jan 20th, 2013
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. //Para solucionar el problema de que la ListBox cuando cambies de resolución y tamaño de pantalla,
  2. //se queede el tamaño fijo hay que hacer este sencillo paso
  3. private void ListBoxTransactionSpent_Loaded(object sender, RoutedEventArgs e)
  4. {
  5.      // aqui cambiamos la propiedad ListBox.Height a la del ScrollViewer
  6.       ListBoxTransactionSpent.Height = ScrollViewerSpent.ActualHeight;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement