Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/SilverlightApp/Views/Participantes.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
Grid.RowSpan="2"
Margin="20,5"
FontSize="12"

SizeChanged="ParticipantsList_SizeChanged"
>
<ListBox.ItemTemplate>
<DataTemplate>
Expand All @@ -49,7 +49,7 @@
</ListBox.ItemTemplate>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<toolkit:WrapPanel Orientation="Vertical" MaxHeight="400"/>
<toolkit:WrapPanel Orientation="Vertical"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Expand Down
5 changes: 3 additions & 2 deletions src/SilverlightApp/Views/Participantes.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ private void ParticipantsList_SizeChanged(object sender, SizeChangedEventArgs e)
var wrapPanel = ParticipantsList.GetItemsHost() as WrapPanel;
if (wrapPanel == null) return;

wrapPanel.MaxHeight = ((FrameworkElement)sender).ActualHeight;
wrapPanel.MaxWidth = ((FrameworkElement)sender).ActualWidth;
wrapPanel.MaxHeight = ((FrameworkElement)sender).ActualHeight - 20;

//wrapPanel.MaxWidth = ((FrameworkElement)sender).ActualWidth;
}

private void RemoveParticipant_Click(object sender, RoutedEventArgs e)
Expand Down