Xamarin Samples [1]
PUBLISHED
ButtonXaml [3]
This program demonstrates how to create a Button in XAML and process events from it in the code-behind file. By default, the Button occupies the entire page. |
|
ButtonCode [5]
This program demonstrates how to create a Button in code and process events from it. By default, the Button occupies the entire page. |
|
BasicStyles [7]
Xamarin.Forms applications often contain multiple controls that have an identical appearance. Setting the appearance of each individual control can be repetitive and error prone. Instead, styles can be created that customize control appearance by grouping and settings properties available on the control type. This sample demonstrates using the |
|
Modal [9] This sample demonstrates how to navigate to modal pages. |
|
ScaleAndRotate [11] The Xamarin.Forms Scale and Rotation properties allow a program to scale and rotate Xamarin.Forms visual elements. |
|
BoxViewClock [13] A classic analog clock realized entirely with BoxView. |
|
[14] |
This sample demonstrates using the `Cell.ForceUpdateSize` method to programmatically resize a `ListView` row at runtime. |
[16] |
CoerceValueCallback [17] A bindable property is a special type of property, where the property's value is tracked by the Xamarin.Forms property system. This sample demonstrates using a coerce value callback to force a re-evaluation of a bindable property when the value of the property changes. |
[18] |
DataTemplateSelector [19] This sample demonstrates using a DataTemplateSelector to select a DataTemplate at runtime per item in a ListView. |
[20] |
DynamicStyles [21] This sample demonstrates how to use dynamic resources to make applications respond to style changes dynamically at runtime. |
[22] |
EffectBehavior [23] Behaviors are a useful approach for adding an effect to a control, removing boiler-plate effect handling code from code-behind files. This sample demonstrates using a behavior to add an effect to a control. |
[24] [25] |
PassingData [26] This sample demonstrates how to pass data between pages when navigating. |
[27] |
PanGesture [28] This sample demonstrates using the `PanGestureRecognizer` class to implement dragging. |
[29] |
PinchGesture [30] This sample demonstrates using the `PinchGestureRecognizer` class to implement interactive zoom functionality. |
[31] [32] [33] |
TapGesture [34] This sample demonstrates using the `TapGestureRecognizer` class to implement tap gesture recognition. |
[35] |
TabbedPage [36] This sample demonstrates how to use a `TabbedPage` to navigate through a collection of pages. The `TabbedPage` is constructed by assigning a collection to the `ItemsSource` property and assigning a `DataTemplate` to the `ItemTemplate` property to return pages for objects in the collection. |
[37] |
TabbedPageWithNavigationPage [38] This sample demonstrates how embed a `NavigationPage` in a `TabbedPage`, in order to perform page navigation within a tab. The `TabbedPage` is constructed by populating it with a collection of child `Page` objects. |
[39] |
This sample demonstrates using a Xamarin.Forms behavior to invoke a command when an event fires. |
[41] |
Hierarchical [42] This sample demonstrates how to perform hierarchical navigation through a stack of pages in Xamarin.Forms. |
[43] |
LoginFlow [44] This sample demonstrates how to manipulate the navigation stack in order to only display the main page of the application once the user has successfully logged in. |
[45] [46] |
SimpleTheme [47] This sample demonstrates using a ControlTemplate to theme a ContentPage and change the theme at runtime. |
[48] [49] |
SimpleThemeWithTemplateBinding [50] This sample demonstrates using a ControlTemplate with a TemplateBinding to theme a ContentPage and change the theme at runtime. |
[51] [52] |
SimpleThemeWithTemplateBindingAndViewModel [53] This sample demonstrates using a ControlTemplate with a TemplateBinding, that in turn binds to a ViewModel, to theme a ContentPage and change the theme at runtime. |
[54] |
FormsGridLayout [55] This sample demonstrates how to display various ui elements in a grid. |
[56] |
UserInterface/Animation/Basic [57] The |
[58] |
Effects/ShadowEffectRuntimeChange [59] This sample demonstrates using attached properties to pass parameters to an effect, and changing a parameter at runtime. |
[60] |
GettingStarted/XamarinFormsXamlSample [61] This sample demonstrates sharing C# code across platforms using Xamarin.Forms. |
[62] |
LabelledSectionsList [63] This sample demonstrates how to create an alphabetically ordered list with labelled sections. |
[64] [65] [66] [67] |
UserInterface/ListView/BuiltInCells/builtInCellsListView [68] Built-In Cells:
|
[69] |
UserInterface/ListView/Grouping/groupingSampleListView [70] This sample demonstrates how to implement grouping in a ListView, using both XAML and C#. |
[71] |
UserInterface/ShadowPlatformSpecific [72] This sample demonstrates how to expose an Effect through a platform-specific. |
[73] |
WorkingWithTriggers [74] Example of using Xamarin triggers for view customization. |
[75] |
XAML/PassingConstructorArguments [74] This sample demonstrates specifying constructor arguments for a non-default constructor in XAML. |
[76] |
A bindable property is a special type of property, where the property's value is tracked by the Xamarin.Forms property system. This sample demonstrates using a validation callback to validate the value of a bindable property. |
[78] |
Navigation/Pop-ups [79] This sample demonstrates using the alert and action sheet APIs to ask users simple questions and guide users through tasks. |
[80] |
SolitaireEncryption [81] This sample illustrates the inclusion of a Unit Test project in a Xamarin.Forms solution and also a custom Button renderer. |
[82] |
UserInterface/Animation/Easing [83] This sample demonstrates how to consume the pre-defined easing functions, and how to create custom easing functions. |
[84] |
BasicFormsListView [85] This sample demonstrates basic use of ListView populated with just an array of strings, using the default view. |
[86] |
s sample demonstrates using XAML to call a factory method that can be used to initialize an object. |
[88] |
This sample demonstrates a custom renderer that encapsulates platform-specific list controls and native cell layouts. |
[90] |
The application demonstrates Xamarin Forms. |
[92] |
HelloXamarinFormsWorldXaml [93] The application demonstrates Xamarin Forms. |
[94] |
This sample demonstrates creating a DataTemplate to specify the appearance of data being displayed by a ListView. |
[96] |
WorkingWithListView [97] These samples relate to the Working with ListView in Xamarin.Forms [98] doc. |
[99] |
UserInterface/ListView/BindingContextChanged [100] This sample demonstrates binding context changes in a ListView custom cell in Xamarin.Forms. |
[101] |
Behaviors/Attached [102]NumericValidationBehavior This sample demonstrates creating and consuming an attached behavior. A behavior that's attached to a control through attached properties is known as an attached behavior. |
[103] |
UserInterface/ListView/Interactivity/InteractivityListView [104] This sample demonstrates how to implement interactivity in ListView. Implementations for XAML and C# provided. * Context Actions * Pull-to-Refresh * Taps * Selection |
[105] |
GettingStarted/XamarinFormsSample [106] This sample demonstrates sharing C# code across platforms using Xamarin.Forms. |
[107] |
PhonewordMultiscreen [108] This sample demonstrates adding simple page navigation to the Phoneword app using Xamarin.Forms. The app functionality is to convert telephone number 'words' into digits (eg 1-800-FLOWERS to the actual phone number), and display a second page containing a list of phone numbers that have been called from the app. |
[109] [110] [111] |
UserInterface/TableView/TableViewSamples [112] The app consists of several tabs. There are four tabs with identical tables, with each demonstrating a different |
[113] |
WorkingWithFiles/PCL [114] These samples relate to the Working with Files in Xamarin.Forms [115] doc. |
[116] |
WorkingWithNavigation [117] This sample demonstrate navigation using Xamarin.Forms. |
[118] |
WorkingWithStyles [119] These samples relate to the Working with Files in Xamarin.Forms doc. |
[120] |
WorkingWithColors [121] This example presents the Xamarins Color class. |
[122] |
WorkingWithFonts [123] This sample shows how Xamarin.Forms lets you specify font attributes (including weight and size) on controls that display text. |
[124] |
TipCalc [125] TipCalc lets you type in a food-and-drink subtotal and a post-tax total from your restaurant bill and then select a tip percentage. It applies the percentage to the food-and-drink subtotal and adds the result to the post-tax total, rounded to the nearest quarter. |
[126] |
ClassHierarchy [127] This program uses .NET reflection to display a scrollable hierarchy of all Xamarin.Forms classes, structures, and enumerations. Non-instantiable classes are displayed in the system accent color. |
[128] |
ListView TwoWayBinding [129] This sample demonstrates how to implement data collection using EntryCell and ViewCell in Xamarin.Forms. Implementations for XAML and C# provided. |