• Stars
    star
    158
  • Rank 235,995 (Top 5 %)
  • Language
    C#
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Use the new Xamarin.Forms View.Visual to implement a single page

Visual Challenge

To take a single page design from a previous project that should look the same on iOS and Android, and attempt to recreate it using the latest Visual feature of Xamarin.Forms.

Challenge Quick Start

This is testing Visual, not your prowess as a mobile developer. I want to learn how successful you are when using this new feature. Or not.

  1. Fork this repository
  2. Choose a single page design from a previous or current project to recreate from scratch. The more real world the better. Plus, you can reuse assets.
  3. Open VisualChallengePage.xaml. Take an hour (or more if you really want to) and build that screen. Making it super functional doesn't matter, just how it looks and feels.
  4. Submit a pull request of your progress back to this repository. Include:
    • a screenshot of iOS and Android
    • your feedback on what went well, and what didn't
    • what you would like to see us doing differently in support of this goal: same design on iOS and Android

What is Visual?

Visual is a new way to declare the "visual" design system you want rendering your native controls. By default, controls are renderered the way Apple and Google created them. With Visual, you can choose Material as the design system that will then render the same on iOS and Android.

For example, this sample app sets the Visual preference on the application Shell and it is propogated to all controls in the application.

<Shell xmlns="http://xamarin.com/schemas/2014/forms" 
       xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
       xmlns:local="clr-namespace:VisualChallenge"
       RouteHost="companyname.com"
       RouteScheme="app"
       Route="VisualChallenge"
       FlyoutBehavior="Disabled"
       Title="VisualChallenge"
       x:Class="VisualChallenge.AppShell"
       Visual="Material">

Any control may override this propogation by declaring its own Visual preference:

<Button Visual="Default" ... />

More than Styles: Visual goes beyond styling the controls, to also unifying behavior and layout. This is work you may often do yourself when achieving the same look and feel between iOS and Android.

Read more about this at https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/visual.

What is Material?

Material is Google's modern design system that is popular not only on Android, but has lately found its way to iOS and the Web also. Google publishes a package of Material controls for iOS, and that's the starting point for the Xamarin.Forms native control renderers when you selected Visual="Material".

For more information, visit material.io.

Instructions on Updating your own project

More Repositories

1

WeatherTwentyOne

C#
922
star
2

Xappy

A mobile app to track Xamarin news and explore all the goodness that is .NET for Mobile developers
C#
350
star
3

TheLittleThingsPlayground

Playground for experimenting with new Xamarin.Forms features.
C#
190
star
4

FlyMe

Xamarin.Forms demo for 3 sessions presented at Microsoft Ignite 2019
C#
170
star
5

Gastropods

A playground for exploring Xamarin.Forms Shell previews
C#
123
star
6

flexibility

Xamarin.Forms FlexLayout samples styled in a variety of ways: directly, XAML Styles, XAML Styles in a Resource Dictionary, CSS inline, and CSS loaded from a StyleSheet.
C#
95
star
7

LosGatos

C#
94
star
8

build2017-new-in-xamarin-forms

Weather demo showing Xamarin.Forms embedded in Xamarin.iOS, Xamarin.Android, and UWP non-Xamarin.Forms applications.
HTML
46
star
9

LoginShape

Xamarin.Forms sample layout using 4.7 Shapes
C#
44
star
10

ShellLoginSample

Sample of how you can do a LoginPage flow with Shell in v4.1
C#
41
star
11

AllTheLists

Collection of UX samples for lists
C#
38
star
12

dotnet-maui-samples

C#
36
star
13

PersonalFinanceSample

exploring Shapes and Gradients with Xamarin.Forms 4.8 pre-release
C#
35
star
14

ControlGallery

C#
31
star
15

easings

Xamarin.Forms app visually demonstrating animation easings supported.
C#
27
star
16

ShellGallery

Gallery showcasing Shell from the Xamarin.Forms Control Gallery
C#
24
star
17

YogaUI

UI exercise using C# UI, Xplat Images and Fonts, and LiveSharp
C#
24
star
18

xamarin-forms-movies

C#
21
star
19

SampleBottomDrawer

C#
20
star
20

HowYouSay

Xamarin.Forms unfinished port of a Swift/Java app written for Rendr. Ongoing playground.
C#
16
star
21

SimpleCalculator

C#
14
star
22

Plugin.Maui.KeyListener

C#
14
star
23

CarouselGallery

Reproducing a variety of carousel designs from existing apps
C#
14
star
24

MinimalMaui

C#
10
star
25

Plugin.Maui.DebugOverlay

C#
10
star
26

HangulClock

Korean word clock
C#
10
star
27

snippets

XAML Shell code snippets for Visual Studio 2019
Vim Snippet
9
star
28

SimpleShell

C#
9
star
29

MyShapes

Somewhat random collection of shapes exploring this new feature of Xamarin.Forms
C#
8
star
30

OpenSesame

Poorly named holiday experiment. A MyQ garage door opener with voice command support and a little animation.
C#
8
star
31

ThemeGallery

C#
8
star
32

WebinarDemos

C#
8
star
33

HangulCounter

Educational app to learn Korean numbers, counters, time, and more.
C#
8
star
34

weather-app

C#
7
star
35

Straxa

Xamarin.Forms Shell Navigation example
C#
7
star
36

WeatherColors

C#
6
star
37

ToDoEntry

Example of creating a user control in Xamarin.Forms
C#
6
star
38

SentenceStudio

C#
6
star
39

VolumeMixer

C#
5
star
40

FlyoutSampleDesigns

C#
5
star
41

Rouse

Xamarin iOS Tweening Library
C#
5
star
42

CustomRendererSample

Sample for using Xamarin custom renderers in .NET MAUI
C#
5
star
43

statify

Xamarin.Forms VisualStateManager Example
C#
4
star
44

ShellStylesSample

C#
4
star
45

dotnet-templates

My set of .NET templates
C#
4
star
46

translations

4
star
47

MauiSimpleHybridDemo

C#
4
star
48

LilProppy

Harvested from the Xamarin.Forms Control Gallery, this uses reflection to expose properties to dynamically update a control.
C#
4
star
49

SmartHotelSandbox

C#
3
star
50

davetv

Small sample to experiment with Xamarin.Forms MediaElement
C#
3
star
51

Xamarin.AspNetCore.Authentication

Sample for how to use AspNetCore Authentication providers with Xamarin mobile apps
C#
3
star
52

ProfileLayout

Typical Profile page layout, NOT optimized
C#
3
star
53

Lottiemas

C#
3
star
54

draganddropsample

C#
3
star
55

FancyCounter

C#
3
star
56

ColorCodeToXaml

C#
3
star
57

GuessWord

Word and phrase guessing game
C#
3
star
58

MauiPhoneLink

C#
3
star
59

MauiLibrarySamples

C#
3
star
60

fabriculous

CSS
2
star
61

standardizeme

Sample .NET Standard 2.0 solution with Xamarin.Forms
C#
2
star
62

LayoutLab

.NET MAUI layout samples
C#
2
star
63

WhitePaperBibleMono

Xamarin iOS and Android mobile apps. Apple Watch OS 1. Check out the development and feature branches.
C#
2
star
64

Hello14

C#
2
star
65

xf101

C#
2
star
66

dotnet-airlines

C#
2
star
67

playscript-mono

The fork of the Mono project in which the PlayScript compiler and core runtime libraries are implemented.
C#
1
star
68

bug-radiobutton

C#
1
star
69

ShellDo

C#
1
star
70

Xamarin.Forms.Mvvm

C#
1
star
71

StartupKing

Big and slow app
C#
1
star
72

xamarin-blog-samples

C#
1
star
73

MauiSampleCode

Different Samples / Code / Issue Reproductions for Maui
C#
1
star
74

XamarinTemplates

A collection of code templates for use in Xamarin Studio. MvvmCross, Android, iOS. Also see: https://github.com/rendr/XamarinStudioCodeTemplates
C#
1
star
75

wpbf

C#
1
star
76

TemplateTweaks

C#
1
star
77

presentations

1
star