Skip to content

Instantly share code, notes, and snippets.

<ListView AbsoluteLayout.LayoutBounds="0,0,1,1"
AbsoluteLayout.LayoutFlags="All"
x:Name="CasesList" ItemsSource="{Binding CourtCaseList}"
SelectedItem="{Binding ListSelectedItem}"
SeparatorVisibility="None"
HasUnevenRows="True"
IsPullToRefreshEnabled="True"
IsRefreshing="{Binding BoolRefreshing}"
RefreshCommand="{Binding RefreshCommand}">
<ListView.Header>
<ListView AbsoluteLayout.LayoutBounds="0,0,1,1"
AbsoluteLayout.LayoutFlags="All"
x:Name="CasesList" ItemsSource="{Binding CourtCaseList}"
SelectedItem="{Binding ListSelectedItem}"
SeparatorVisibility="None"
HasUnevenRows="True"
IsPullToRefreshEnabled="True"
IsRefreshing="{Binding BoolRefreshing}"
RefreshCommand="{Binding RefreshCommand}">
<ListView.Header>
public partial class FPDemo : ContentPage
{
public FPDemo()
{
InitializeComponent();
}
private async void Button_OnClicked(object sender, EventArgs e)
{
try
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="BinnyXamConcepts2017.FilePickerExample.FPDemo">
<StackLayout>
<Button Text="Click" Clicked="Button_OnClicked"></Button>
</StackLayout>
</ContentPage>
@gurvinderbini
gurvinderbini / DemoPage
Created February 26, 2017 14:44
DemoPage.Xaml.cs
public partial class DemoPage : ContentPage
{
public DemoPage()
{
InitializeComponent();
myList.FlowItemsSource = new List<string>
{
"Usa","India","Brazil","Germany","England","France","Argentina"
"Columbia","Usa","India","Brazil","Germany","England","France","Argentina"
"Columbia","Usa","India","Brazil","Germany","England","France","Argentina"
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="BinnyXamConcepts2017.HorizontalListView.DemoPage"
xmlns:controls="clr-namespace:DLToolkit.Forms.Controls;assembly=DLToolkit.Forms.Controls.FlowListView">
<StackLayout>
<controls:FlowListView x:Name="myList"
FlowColumnCount="3"
SeparatorVisibility="None"
HasUnevenRows="false"
public class App : Application
{ public App()
{
// The root page of your application
MainPage = new MainPage();
}
}
using System;
using System.Collections.Generic;
namespace NewFeature
{
public class MainPageViewModel
{
private object _itemSelectedFromList;
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="NewFeature.MainPage"
xmlns:bindablePicker="clr-namespace:JPC.BindablePicker;assembly=JPC.BindablePicker">
<StackLayout>
<bindablePicker:BindablePicker Title="Select"
ItemsSource="{Binding ItemsList}"
SelectedItem="{Binding ItemSelectedFromList}"/>
</StackLayout>
<ListView x:Name="ListName" ItemsSource="{Binding Name}"
SeparatorVisibility="None" HasUnevenRows="True">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout>
<Grid x:Name="Item">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />