alpha

Sets rules for an AI assistant writing .NET MAUI apps: MVVM structure, naming, handlers over renderers, and a list of deprecated controls and layout mistakes to never use.
description: '.NET MAUI component and application patterns'
applyTo: '**/.xaml, **/.cs'
{Binding} and MVVM patterns.*AndExpand layout options (deprecated). Use Grid and explicit sizing instead..svg at runtime. Use PNG/JPG resources.BackgroundColor; use Background (supports gradients/brushes and is the preferred modern API).VerticalStackLayout/HorizontalStackLayout over StackLayout Orientation="..." (more performant).BindableLayout for small, non-scrollable lists (≤20 items). Use CollectionView for larger or scrollable lists.Grid for complex layouts and when you need to subdivide space.Border over Frame for containers with borders/backgrounds.Routing.RegisterRoute(...) and navigate with Shell.Current.GoToAsync(...).MainPage once at startup; avoid changing it frequently.x:DataType on pages/views/templates.MauiStrictXamlCompilation=true), especially in CI.OneTime when values don't change.TwoWay only for editable values.Dispatcher.Dispatch() or Dispatcher.DispatchAsync():BindableObject.Dispatcher when you have a reference to a Page, View, or other BindableObject.IDispatcher via DI when working in services or ViewModels without direct BindableObject access.MainThread.BeginInvokeOnMainThread(...) as a fallback only when no Dispatcher is available.Device.BeginInvokeOnMainThread patterns.Resources/Images/, fonts in Resources/Fonts/, and raw assets in Resources/Raw/.<Image Source="logo.png" />), not .svg.SecureStorage for secrets (tokens, refresh tokens), and handle exceptions (unsupported device, key changes, corruption) by clearing/resetting and re-authenticating.MainPage frequently can cause navigation issues.InputTransparent = true where needed.© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com


Sea turtle carrying floating film studio island
Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.
image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost
Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.
video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

Cozy Pixel Art Farm Island Village
Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.
image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape
Loading reviews…
Loading comments…