mirror of
https://github.com/bitwarden/android.git
synced 2026-05-23 06:31:34 -05:00
PM-3349 PM-3350 MAUI Migration Initial
This commit is contained in:
20
src/Core/Controls/ExtendedCollectionView.cs
Normal file
20
src/Core/Controls/ExtendedCollectionView.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Globalization;
|
||||
using CommunityToolkit.Maui.Converters;
|
||||
|
||||
namespace Bit.App.Controls
|
||||
{
|
||||
public class ExtendedCollectionView : CollectionView
|
||||
{
|
||||
public string ExtraDataForLogging { get; set; }
|
||||
}
|
||||
|
||||
public class SelectionChangedEventArgsConverter : BaseConverterOneWay<SelectionChangedEventArgs, object>
|
||||
{
|
||||
public override object DefaultConvertReturnValue { get; set; } = null;
|
||||
|
||||
public override object ConvertFrom(SelectionChangedEventArgs value, CultureInfo culture)
|
||||
{
|
||||
return value?.CurrentSelection.FirstOrDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user