Complete ShellDemo application demonstrating all MAUI controls: - App/AppShell: Shell navigation with flyout menu - HomePage: Feature cards, theme toggle, quick actions - ButtonsPage: Button styles, states, variations, event logging - TextInputPage: Entry, Editor, SearchBar with keyboard shortcuts - SelectionPage: CheckBox, Switch, Slider with colored variants - PickersPage: Picker, DatePicker, TimePicker demos - ListsPage: CollectionView with fruits, colors, contacts - ProgressPage: ProgressBar, ActivityIndicator, interactive demo - GridsPage: Grid layouts - auto/star/absolute sizing, spans, nesting - AboutPage: OpenMaui Linux information - DetailPage: Push/pop navigation demo All pages use proper XAML with code-behind following MAUI patterns. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
34 lines
937 B
C#
34 lines
937 B
C#
using System;
|
|
using Microsoft.Maui.Controls;
|
|
|
|
namespace ShellDemo.Pages;
|
|
|
|
public partial class TextInputPage : ContentPage
|
|
{
|
|
public TextInputPage()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void OnNameEntryTextChanged(object? sender, TextChangedEventArgs e)
|
|
{
|
|
EntryOutput.Text = $"You typed: {e.NewTextValue}";
|
|
}
|
|
|
|
private void OnSearchTextChanged(object? sender, TextChangedEventArgs e)
|
|
{
|
|
SearchOutput.Text = $"Searching: {e.NewTextValue}";
|
|
}
|
|
|
|
private void OnSearchButtonPressed(object? sender, EventArgs e)
|
|
{
|
|
SearchOutput.Text = $"Search submitted: {DemoSearchBar.Text}";
|
|
}
|
|
|
|
private void OnEditorTextChanged(object? sender, TextChangedEventArgs e)
|
|
{
|
|
var lineCount = string.IsNullOrEmpty(e.NewTextValue) ? 0 : e.NewTextValue.Split('\n').Length;
|
|
EditorOutput.Text = $"Lines: {lineCount}, Characters: {e.NewTextValue?.Length ?? 0}";
|
|
}
|
|
}
|