Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ItemSelectedEventArgsConverter_Tests
// We know it's deprecated, still good to test it
#pragma warning disable CS0618 // Type or member is obsolete
new object[] { new SelectedItemChangedEventArgs(expectedValue), expectedValue },
new object?[] { null, null },
new object?[] { null, null },
#pragma warning restore CS0618 // Type or member is obsolete
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ItemTappedEventArgsConverter_Tests
// We know it's deprecated, still good to test it
#pragma warning disable CS0618 // Type or member is obsolete
new object?[] { new ItemTappedEventArgs(null, expectedValue), expectedValue },
new object?[] { new ItemTappedEventArgs(null, null), null },
new object?[] { new ItemTappedEventArgs(null, null), null },
#pragma warning restore CS0618 // Type or member is obsolete
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1236,4 +1236,4 @@ void OnLayoutChildAdded(object? sender, ElementEventArgs e)
view.InputTransparent = effect?.Element == null || !effect.IsAvailable;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using Android.Views.Accessibility;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
using AView = Android.Views.View;
using AApplication = Android.App.Application;
using AContext = Android.Content.Context;
using AView = Android.Views.View;

namespace Xamarin.CommunityToolkit.Extensions
{
Expand Down Expand Up @@ -36,4 +36,4 @@ static void PlatformAnnounce(string text)
manager.SendAccessibilityEvent(announcement);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ static void PlatformAnnounce(string text)
UIAccessibility.PostNotification(UIAccessibilityPostNotification.Announcement, new NSString(text));
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ static void PlatformSetSemanticFocus(this VisualElement element) =>
static void PlatformAnnounce(string text) =>
throw new NotSupportedException($"The current platform '{Device.RuntimePlatform}' does not support Xamarin.CommunityToolkit.SemanticExtensions");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ public static void SetSemanticFocus(this VisualElement element) =>
public static void Announce(string text) =>
PlatformAnnounce(text);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Xamarin.Forms;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Automation.Peers;
using Windows.UI.Xaml.Media;
using Xamarin.Forms;

namespace Xamarin.CommunityToolkit.Extensions
{
Expand Down Expand Up @@ -56,4 +56,4 @@ static void PlatformAnnounce(string text)
return null;
}
}
}
}