This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person | |
{ | |
public string Name { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public ObservableCollection<Person> _name; | |
public ObservableCollection<Person> Name | |
{ | |
get { return _name; } | |
set | |
{ | |
SetProperty(ref _name, value); | |
OnPropertyChanged(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ListView x:Name="ListName" ItemsSource="{Binding Name}" | |
SeparatorVisibility="None" HasUnevenRows="True"> | |
<ListView.ItemTemplate> | |
<DataTemplate> | |
<ViewCell> | |
<StackLayout> | |
<Grid> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="1*" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace NewFeature | |
{ | |
public class MainPageViewModel | |
{ | |
private object _itemSelectedFromList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App : Application | |
{ public App() | |
{ | |
// The root page of your application | |
MainPage = new MainPage(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class FPDemo : ContentPage | |
{ | |
public FPDemo() | |
{ | |
InitializeComponent(); | |
} | |
private async void Button_OnClicked(object sender, EventArgs e) | |
{ | |
try |
OlderNewer