The application stopped while debugging - xamarin

I'm creating a videos ListView like this
<ListView x:Name="ListOfPeople" ItemsSource ="{Binding Videos}" IsPullToRefreshEnabled="True" HorizontalScrollBarVisibility="Always" RefreshControlColor="Gray"
VerticalOptions="FillAndExpand" SelectionMode="Single" RowHeight="500">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<ViewCell.ContextActions>
<MenuItem Text="Delete" IsDestructive="True" Command="{Binding Path=BindingContext.DeleteCommand, Source={Reference ListOfPeople}}"
CommandParameter="{Binding .}" />
</ViewCell.ContextActions>
<Grid>
<Grid.Resources>
<local:StringToUrlConverter x:Key="StringToUrlConverter" BaseUri="http://192.168.1.111:45455/uploads/"/>
</Grid.Resources>
<Frame Padding="40" CornerRadius="0" >
<xct:MediaElement Margin="2,2,2,0" Source="{Binding FilePath, Converter={StaticResource StringToUrlConverter}}"
AutoPlay="True" IsTabStop="True" HeightRequest="200" WidthRequest="300"
BackgroundColor="Black" HorizontalOptions="Center" />
</Frame>
But while debugging and a second after the ViewList is displayed the application suddenly stopped
thedebugger output shows this :
[ompanyname.app] runtime.cc:630] kernel: (couldn't read /proc/self/task/8017/stack)
[ompanyname.app] runtime.cc:630] native: #03 pc 00000000001296d8 /data/app/com.companyname.app5-T0OUQ1kiNyvlODMqeIX2nw==/lib/arm64/libmonosgen-2.0.so (worker_thread+1024)
[ompanyname.app] runtime.cc:630] native: #00 pc 000000000007f340 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+32)
[ompanyname.app] runtime.cc:630] | sysTid=8068 nice=-8 cgrp=default sched=0/0 handle=0x7a9ac46d50
[ompanyname.app] runtime.cc:630] native: #03 pc 0000000000410580 /apex/com.android.runtime/lib64/libart.so (art::Monitor::Wait(art::Thread*, art::ObjPtrart::mirror::Object, long, int, bool, art::ThreadState)+288)
[ompanyname.app] runtime.cc:630] at void crc643f46942d9dd1fff9.Platform_DefaultRenderer.n_onLayout(boolean, int, int, int, int) (Platform_DefaultRenderer.java:-2)
[libc] Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 7807 (ompanyname.app5), pid 7807 (ompanyname.app5)

Related

Separator Lines in Xamarin Forms ListView are only between items on iOS

I have a Xamarin Forms Listview with a GroupHeader:
<ListView x:Name="listView"
ios:ListView.SeparatorStyle="FullWidth"
AbsoluteLayout.LayoutBounds="0,0,1,1"
AbsoluteLayout.LayoutFlags="All"
ItemsSource="{Binding Items}"
IsGroupingEnabled="true"
SeparatorVisibility="Default"
IsPullToRefreshEnabled="False"
SeparatorColor="Red"
SelectionMode="None"
Footer=""
BackgroundColor="Transparent">
<ListView.GroupHeaderTemplate>
<DataTemplate>
<TextCell Text="Header Cell"/>
</DataTemplate>
</ListView.GroupHeaderTemplate>
<ListView.ItemTemplate>
<DataTemplate>
<TextCell Text="Item Cell"/>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
On iOS the separator line (red) is only visible between the items, but not between header and items:
On Android the line is also between Header and items:
I only found some suggestions to remove the separator lines on iOS (Setting SeparatorColor transparent).
How can i get the android behavior on iOS?
You can use BoxView to achieve the effect you want, modify your code as follows:
<ListView x:Name="listView"
AbsoluteLayout.LayoutBounds="0,0,1,1"
AbsoluteLayout.LayoutFlags="All"
ItemsSource="{Binding Items}"
IsGroupingEnabled="True"
SeparatorVisibility="None"
SelectionMode="None"
Footer=""
BackgroundColor="Transparent">
<ListView.GroupHeaderTemplate>
<DataTemplate>
<ViewCell>
<StackLayout>
<Label Text="Header Cell" Margin="0,10,0,0"/>
<BoxView HeightRequest="0.5" Color="Red" HorizontalOptions="FillAndExpand" Margin="0,8,0,0"/>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.GroupHeaderTemplate>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout>
<Label Text="Item Cell" Margin="0,10,0,0"/>
<BoxView HeightRequest="0.5" Color="Red" HorizontalOptions="FillAndExpand" Margin="0,5,0,0"/>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>

how i can set two listview in one page in xamarin

I have two listview on one page, but the problem is when refreshing the list view only one list be refreshed and when scrolling the listview also one listview scrolling,
for more information, I can't merge two listviews in one because I have some cases do with attachment listview
the xaml code
<StackLayout>
<ListView x:Name="detailsList" HeightRequest="5000" ItemsSource="{Binding DetailsList}"
IsPullToRefreshEnabled="true" RefreshCommand="{Binding RefreshCommand}">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal" Padding="5">
<StackLayout HorizontalOptions="FillAndExpand">
<es:Label Text="{Binding Value}" VerticalTextAlignment="Center" HorizontalOptions="EndAndExpand" />
<BoxView BackgroundColor="#eeeeee" HeightRequest="2" />
</StackLayout>
<StackLayout Padding="0,0,0,2">
<es:Label Text="{Binding Key}" WidthRequest="100" MinimumWidthRequest="100" TextColor="{Binding Color}"
HorizontalTextAlignment="Start" VerticalTextAlignment="Center" />
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<ListView x:Name="Attachments" ItemsSource="{Binding Attachments}" SeparatorVisibility="None" BackgroundColor="White" HasUnevenRows="true" SelectionMode="None"
IsPullToRefreshEnabled="false" RefreshCommand="{Binding RefreshCommand}">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell Tapped="Attachment_Tapped">
<StackLayout Orientation="Horizontal" Padding="5">
<StackLayout HorizontalOptions="FillAndExpand">
<es:Label Text="{Binding Value.AttachmentTitle}" VerticalTextAlignment="Center" HorizontalOptions="EndAndExpand"/>
<Image Source="attach.png" HorizontalOptions="EndAndExpand"></Image>
<BoxView BackgroundColor="#eeeeee" HeightRequest="2" />
</StackLayout>
<StackLayout Padding="0,0,0,2">
<es:Label Text="{Binding Key}" WidthRequest="100" MinimumWidthRequest="100" TextColor="{Binding Color}"
HorizontalTextAlignment="Start" VerticalTextAlignment="Center" />
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
I try to do this code but still not working, and I try to do ListView.FooterTemplate But to no avail
<StackLayout>
<ListView x:Name="detailsList" HeightRequest="5000" ItemsSource="{Binding DetailsList}"
IsPullToRefreshEnabled="true" RefreshCommand="{Binding RefreshCommand}">
<ListView.HeaderTemplate>
<DataTemplate>
<ListView x:Name="Attachments" ItemsSource="{Binding Attachments}"
IsPullToRefreshEnabled="false" RefreshCommand="{Binding RefreshCommand}">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell Tapped="Attachment_Tapped">
<StackLayout Orientation="Horizontal" Padding="5">
<StackLayout HorizontalOptions="FillAndExpand">
<es:Label Text="{Binding Value.AttachmentTitle}" VerticalTextAlignment="Center" HorizontalOptions="EndAndExpand"/>
<Image Source="attach.png" HorizontalOptions="EndAndExpand"></Image>
<BoxView BackgroundColor="#eeeeee" HeightRequest="2" />
</StackLayout>
<StackLayout Padding="0,0,0,2">
<es:Label Text="{Binding Key}" WidthRequest="100" MinimumWidthRequest="100" TextColor="{Binding Color}"
HorizontalTextAlignment="Start" VerticalTextAlignment="Center" />
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</DataTemplate>
</ListView.HeaderTemplate>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal" Padding="5">
<StackLayout HorizontalOptions="FillAndExpand">
<es:Label Text="{Binding Value}" VerticalTextAlignment="Center" HorizontalOptions="EndAndExpand" />
<BoxView BackgroundColor="#eeeeee" HeightRequest="2" />
</StackLayout>
<StackLayout Padding="0,0,0,2">
<es:Label Text="{Binding Key}" WidthRequest="100" MinimumWidthRequest="100" TextColor="{Binding Color}"
HorizontalTextAlignment="Start" VerticalTextAlignment="Center" />
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
thank you advance :)
I have replaced <ListView.HeaderTemplate> to </ListView.Footer>
this XAML code works fine
<ListView.Footer>
<ListView x:Name="Attachments" ItemsSource="{Binding Attachments}" SeparatorVisibility="None" BackgroundColor="White" HasUnevenRows="true" SelectionMode="None"
IsPullToRefreshEnabled="false" RefreshCommand="{Binding RefreshCommand}">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell Tapped="Attachment_Tapped">
<StackLayout Orientation="Horizontal" Padding="5">
<StackLayout HorizontalOptions="FillAndExpand">
<!--<es:Label Text="{Binding Value.AttachmentTitle}" VerticalTextAlignment="Center" HorizontalOptions="EndAndExpand"/>-->
<Image Source="attach.png" HorizontalOptions="EndAndExpand"></Image>
<BoxView BackgroundColor="#eeeeee" HeightRequest="2" />
</StackLayout>
<StackLayout Padding="0,0,0,2">
<es:Label Text="{Binding Key}" WidthRequest="100" MinimumWidthRequest="100" TextColor="#795C8E"
HorizontalTextAlignment="Start" VerticalTextAlignment="Center" />
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</ListView.Footer>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal" Padding="5">
<StackLayout HorizontalOptions="FillAndExpand">
<es:Label Text="{Binding Value}" VerticalTextAlignment="Center" HorizontalOptions="EndAndExpand" />
<BoxView BackgroundColor="#eeeeee" HeightRequest="2" />
</StackLayout>
<StackLayout Padding="0,0,0,2">
<es:Label Text="{Binding Key}" WidthRequest="100" MinimumWidthRequest="100" TextColor="{Binding Color}"
HorizontalTextAlignment="Start" VerticalTextAlignment="Center" />
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>

Cross platform listview swipe in xamarin forms

I am looking for a cross platform swipe on ListView to perform an action such as opening a menu or deleting an item.
Has anyone implemented such a scenario? I would like to for instance delete an item when swiping on item to left.
I need to support all platforms: ios/droid/win
The easiest way would be to use the built-in Context Actions, this allows you to show menu items when your list item is swiped on iOS or long pressed on Android
<ListView x:Name="ContextDemoList">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<ViewCell.ContextActions>
<MenuItem Clicked="OnMore" CommandParameter="{Binding .}"
Text="More" />
<MenuItem Clicked="OnDelete" CommandParameter="{Binding .}"
Text="Delete" IsDestructive="True" />
</ViewCell.ContextActions>
<StackLayout Padding="15,0">
<Label Text="{Binding title}" />
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
https://developer.xamarin.com/guides/xamarin-forms/user-interface/listview/interactivity/#Context_Actions
If swiping is a requirement for both platforms, or you need to do an action when the item is swiped (Instead of showing menu items) then i'd recommend SyncFucion's listview control, it is available with a Community licence and it offers more flexibility
<syncfusion:SfListView x:Name="listView" AllowSwiping="True">
<syncfusion:SfListView.LeftSwipeTemplate>
<DataTemplate x:Name="LeftSwipeTemplate">
<Grid>
<Grid BackgroundColor="#009EDA" HorizontalOptions="Fill" VerticalOptions="Fill" Grid.Column="0">
<Grid VerticalOptions="Center" HorizontalOptions="Center">
<Image Grid.Column="0"
Grid.Row="0"
BackgroundColor="Transparent"
HeightRequest="35"
WidthRequest="35"
Source="Favorites.png" />
</Grid>
</Grid>
</Grid>
</DataTemplate>
</syncfusion:SfListView.LeftSwipeTemplate>
</syncfusion:SfListView>
https://help.syncfusion.com/xamarin/sflistview/swiping
You can use SwipeView and wrap it in a ListView.
<ListView
ItemsSource="{Binding Items}"
SelectionMode="None"
CachingStrategy="RecycleElement"
RowHeight="110"
HeightRequest="1000"
BackgroundColor="White"
IsPullToRefreshEnabled="True"
Refreshing="OnRefresh">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<SwipeView>
<SwipeView.GestureRecognizers>
<TapGestureRecognizer
Tapped="OnTapped"
NumberOfTapsRequired="1" />
</SwipeView.GestureRecognizers>
<SwipeView.RightItems>
<SwipeItems>
<SwipeItem
Text="Edit"
IconImageSource="edit_icon.png"
BackgroundColor="Green"
Invoked="OnEdit" />
<SwipeItem
Text="Delete"
IconImageSource="delete_icon.png"
BackgroundColor="Red"
Invoked="OnDelete" />
</SwipeItems>
</SwipeView.RightItems>
<SwipeView.Content>
:
</SwipeView.Content>
</SwipeView>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
From: https://github.com/xamarin/Xamarin.Forms/issues/9089

Application is crashed due to Xamarin.CarouselView in xamarin android project

I have very tied to find out the reason of unexpectedly closing of my xamarin android project. I have used CarouselView in xaml page. When I am navigate to that page application is crashed unexpectedly but it works fine when I run ios project. Actually I am working on portable project. Can you please suggest any idea of this issue. I have posted the my hockeyapp crash report. I think it will help to identify, what the exact cause.Thanks in advance.
Here is hockey app crash report
Here is my code
<cv:CarouselView VerticalOptions = "FillAndExpand" HorizontalOptions =
"FillAndExpand" Position = "{Binding DishCategory}" ItemSelected =
"OnSwipeDishesHandler" ItemsSource = "{Binding RestaurantDishesList}"
x:Name = "RestaurantDishesList">
<cv:CarouselView.HeightRequest>
<OnIdiom x:TypeArguments ="x:Double" Phone ="230" Tablet ="630"/>
</cv:CarouselView.HeightRequest>
<cv:CarouselView.ItemTemplate>
<DataTemplate>
<StackLayout Padding = "10,5,10,5" Orientation = "Vertical">
<ListView x:Name="RestaurantMenuListView" BackgroundColor="Transparent" ItemsSource="{Binding CategoryWiseDishes}" HasUnevenRows="true" SeparatorColor="#eeeeee" ItemTapped="OnItemTapped">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Padding="7">
<Grid Padding="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackLayout Grid.Column="0" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="OnMenuItemSelected"/>
</StackLayout.GestureRecognizers>
<Label Text="{Binding Name}" TextColor="Black">
<Label.FontSize>
<OnIdiom x:TypeArguments ="x:Double" Phone ="15" Tablet ="20"/>
</Label.FontSize>
</Label>
<Label Text="{Binding Description}" TextColor="#323232">
<Label.FontSize>
<OnIdiom x:TypeArguments ="x:Double" Phone ="11" Tablet ="16"/>
</Label.FontSize>
</Label>
<StackLayout Orientation="Horizontal">
<Label Text="£" TextColor="Black">
<Label.FontSize>
<OnIdiom x:TypeArguments ="x:Double" Phone ="14" Tablet ="19"/>
</Label.FontSize>
</Label>
<Label Text="{Binding Cost}" TextColor="Black">
<Label.FontSize>
<OnIdiom x:TypeArguments ="x:Double" Phone ="14" Tablet ="19"/>
</Label.FontSize>
</Label>
</StackLayout>
</StackLayout>
<StackLayout Grid.Column="1" Orientation="Horizontal" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<Image Source="minus.png">
<Image.WidthRequest>
<OnIdiom x:TypeArguments ="x:Double" Phone ="25" Tablet ="35"/>
</Image.WidthRequest>
<Image.HeightRequest>
<OnIdiom x:TypeArguments ="x:Double" Phone ="25" Tablet ="35"/>
</Image.HeightRequest>
<Image.GestureRecognizers>
<TapGestureRecognizer Tapped="RemoveItemBtnClicked"/>
</Image.GestureRecognizers>
</Image>
<Label Text="{Binding TotalQuantity}" HorizontalOptions="Center" VerticalOptions="Center" TextColor="Black">
<Label.FontSize>
<OnIdiom x:TypeArguments="x:Double">
<OnIdiom.Phone>
<OnPlatform x:TypeArguments="x:Double" iOS="13" Android="13" WinPhone="13" />
</OnIdiom.Phone>
<OnIdiom.Tablet>
<OnPlatform x:TypeArguments="x:Double" iOS="15" Android="15" WinPhone="15" />
</OnIdiom.Tablet>
</OnIdiom>
</Label.FontSize>
</Label>
<Image Source="add.png">
<Image.WidthRequest>
<OnIdiom x:TypeArguments ="x:Double" Phone ="25" Tablet ="35"/>
</Image.WidthRequest>
<Image.HeightRequest>
<OnIdiom x:TypeArguments ="x:Double" Phone ="25" Tablet ="35"/>
</Image.HeightRequest>
<Image.GestureRecognizers>
<TapGestureRecognizer Tapped="AddItemBtnClicked"/>
</Image.GestureRecognizers>
</Image>
</StackLayout>
</Grid>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</DataTemplate>
</cv:CarouselView.ItemTemplate>
</cv:CarouselView>

Silverlight ListBox does not scroll on mouse wheel movement on Mac

I have Silverlight based web app where. I found the ListBox doesn't scroll on mouse wheel scroll. I am able to scroll by clicking vertical scroll bar. When I use mouse wheel or 2 finger scroll it doesn't work.
Here in Mouse Wheel scroll in List box 2 is working fine but ListBox 1 it does not work.
ListBox 1
<Border CornerRadius="6,6,0,0" Grid.Row="1" Margin="2,5,2,0" BorderThickness="1,1,1,0" BorderBrush="#FFC4C4C4">
<Grid>
<ListBox x:Name="filterListBox" Grid.Row="0" Grid.Column="1" Background="Transparent" SelectedIndex="{Binding SelectedFilterIndex, Mode=TwoWay}" SelectedItem="{Binding SelectedFilterItem, Mode=TwoWay}" SelectionChanged="ListBox_SelectionChanged" BorderThickness="0" VerticalAlignment="Center" Margin="5,3" ItemContainerStyle="{StaticResource FilterListBoxItemStyle}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<ei:CallMethodAction TargetObject="{Binding}" MethodName="FilterSelectionChanged"/>
</i:EventTrigger>
</i:Interaction.Triggers>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBoxItem Padding="7,2" VerticalContentAlignment="Center" Tag="Popular" Visibility="{Binding Path=IsPopularChannelTab, Mode=TwoWay, Converter={StaticResource BoolToVisibilityConverter}}">
<TextBlock Text="{Binding Path=PopularChannelsText, Source={StaticResource PageStrings}}" FontSize="13" FontWeight="SemiBold" FontFamily="Arial" VerticalAlignment="Center" />
</ListBoxItem>
<ListBoxItem IsEnabled="False" VerticalContentAlignment="Center" Visibility="{Binding Path=IsPopularChannelTab, Mode=TwoWay, Converter={StaticResource BoolToVisibilityConverter}}">
<StackPanel Orientation="Horizontal">
<Border BorderBrush="#FFBDBDBD" BorderThickness="0,2,2,2" HorizontalAlignment="Center" VerticalAlignment="Center" Height="20"/>
<Border BorderBrush="#FFF8F8F8" BorderThickness="0,2,2,2" HorizontalAlignment="Center" VerticalAlignment="Center" Height="20"/>
</StackPanel>
</ListBoxItem>
<ListBoxItem Padding="7,2" VerticalContentAlignment="Center" Tag="All">
<TextBlock Text="{Binding Path=AllChannelsText, Source={StaticResource PageStrings}}" FontSize="12" FontWeight="SemiBold" FontFamily="Arial" VerticalAlignment="Center"/>
</ListBoxItem>
<ListBoxItem IsEnabled="False" VerticalContentAlignment="Center">
<StackPanel Orientation="Horizontal">
<Border BorderBrush="#FFBDBDBD" BorderThickness="0,2,2,2" HorizontalAlignment="Center" VerticalAlignment="Center" Height="20"/>
<Border BorderBrush="#FFF8F8F8" BorderThickness="0,2,2,2" HorizontalAlignment="Center" VerticalAlignment="Center" Height="20"/>
</StackPanel>
</ListBoxItem>
<ListBoxItem Padding="7,2" VerticalContentAlignment="Center" Tag="Favorites">
<TextBlock Text="{Binding Path=FavoritesText, Source={StaticResource PageStrings}}" FontSize="13" FontWeight="SemiBold" FontFamily="Arial" VerticalAlignment="Center"/>
</ListBoxItem>
</ListBox>
</Grid>
</Border>
ListBox 2
<Grid Visibility="{Binding Path=IsHavingProvider, Converter={StaticResource BoolToVisibilityConverter}}" Margin="0,20,0,0" Grid.Row="4">
<Grid.RowDefinitions>
<RowDefinition Height="18"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<core:MagicTextBlock Grid.Row="0" TextBlockStyle="{StaticResource TextBlock_Style}" Text="{Binding Path=Activity, Source={StaticResource PageStrings}}" />
<ListBox Margin="0,10,0,0" Grid.Row="1" x:Name="Provider" Width="480" Height="195" HorizontalAlignment="Left" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
ItemsSource="{Binding Providers,Mode=TwoWay}"
SelectedItem="{Binding SelectedProvider,Mode=TwoWay}"
ItemContainerStyle="{StaticResource Table_ListBoxItem_Style}"
DisplayMemberPath="name">
</ListBox>
</Grid>
Sorry to be the bearer of bad news:
Some current mouse devices for Macintosh have a physical or virtual
mouse wheel. However, the program access layer used by Silverlight on
Macintosh does not support forwarding the mousewheel event to
Silverlight in a browser-hosted situation. You can handle the
Silverlight MouseWheel event from a Macintosh platform client, if the
Silverlight application is running out-of-browser. Otherwise, consider
handling mousewheel events for Macintosh platform at the HTML DOM
level; for more information, see Platform Dependencies.
From the MSDN Silverlight Differences on Windows and Macintosh.
The good news is you can listen to the mousewheel events in the HTML page via JavaScript and pass those events into Silverlight via its JavaScript interop API. The additional bad news is I don't know of a way to have it automatically wire into the GUI elements in your application to have them automatically just work (like scrolling list boxes in your case). As far as I know, you'd have to manually listen to it, pick up on which object the user is hovering over with their mouse, and programmatically scroll the GUI component.

Resources