diff --git a/samples/ControlCatalog/Pages/ClipboardPage.xaml b/samples/ControlCatalog/Pages/ClipboardPage.xaml
index 1d0bcb8e4b..68f8babdc3 100644
--- a/samples/ControlCatalog/Pages/ClipboardPage.xaml
+++ b/samples/ControlCatalog/Pages/ClipboardPage.xaml
@@ -19,7 +19,7 @@
diff --git a/samples/ControlCatalog/Pages/ClipboardPage.xaml.cs b/samples/ControlCatalog/Pages/ClipboardPage.xaml.cs
index 2c8fada368..c2c2cd551c 100644
--- a/samples/ControlCatalog/Pages/ClipboardPage.xaml.cs
+++ b/samples/ControlCatalog/Pages/ClipboardPage.xaml.cs
@@ -181,9 +181,9 @@ namespace ControlCatalog.Pages
if (bytes != null)
{
var printable = bytes.ToArray();
- var sb = new StringBuilder(256 + printable.Count() * 3);
+ var sb = new StringBuilder(256 + printable.Length * 3);
sb.AppendLine($"{format}");
- sb.AppendLine($"{bytes.Count()} bytes (list of first {printable.Count()} bytes)");
+ sb.AppendLine($"{printable.Length} bytes");
sb.Append(BitConverter.ToString(printable).Replace('-', ' '));
ClipboardContent.TextWrapping = Avalonia.Media.TextWrapping.NoWrap;
ClipboardContent.Text = sb.ToString();