Skip to content

Instantly share code, notes, and snippets.

// Removes the borders from the entry control
EntryHandler.RemoveBorders();
// Sets the cursor color of the entry control. Default color is #CCCCCC
EntryHandler.SetFieldCursorColor(Color.FromArgb("#000000"))
// Adds a DONE button to the keyboard and sets toolbar background. Default color is #FFFFFF
EntryHandler.AddDone(Color.FromArgb("#000000"));
EditorHandler.AddDone(null);
## Hello World
Lorem Ipsum
public string GetArticlesForLLMS()
{
StringBuilder sb = new StringBuilder();
List<TreeNode> result;
result = pageRetriever.RetrieveMultiple(query => query
.WithPageUrlPaths()
.Published()
.Types("Article")
.WithCoupledColumns()
.OrderByDescending("DocumentCreatedWhen"))
namespace Demo.Views.Controls;
public class TabBarEventArgs : EventArgs
{
public PageType CurrentPage { get; private set; }
public TabBarEventArgs(PageType currentPage)
{
namespace Demo.Views.Controls;
public partial class TabBarLayer : Grid
{
public static readonly BindableProperty ColorProperty =
BindableProperty.Create(nameof(Color), typeof(Color), typeof(TabBarLayer), Colors.Black, BindingMode.OneWay);
public Color Color
<?xml version="1.0" encoding="utf-8" ?>
<Grid
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:simpleCore="clr-namespace:SimpleToolkit.Core;assembly=SimpleToolkit.Core"
x:Class="Demo.Views.Controls.TabBarLayer"
ColumnDefinitions="*, *, *">
<Grid.Resources>
using Microsoft.Maui.Controls.Shapes;
namespace Demo.Views.Controls;
public partial class TabBarView : ContentView
{
private const string AnimationKey = "Animation";
private const uint AnimationLength = 300;
<?xml version="1.0" encoding="utf-8" ?>
<ContentView
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:controls="clr-namespace:Demo.Views.Controls"
x:Class="Demo.Views.Controls.TabBarView">
<ContentView.Resources>
<x:Double x:Key="ViewHeight">80</x:Double>