Skip to content

Instantly share code, notes, and snippets.

public class DeviceBrowserVM : BaseViewModel
{
public ObservableCollection<Profile> SearchedProfiles
{
get{
return searchedDevices;
}
private set{
searchedDevices = value;
FirePropertyChanged("SearchedProfiles");
@deapsquatter
deapsquatter / gist:4701238
Created February 3, 2013 10:39
ListItem_Profile
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:centrastage="http://schemas.android.com/apk/res/CentraStage.Droid"
android:paddingTop="2dip"
android:paddingBottom="2dip"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight">
<TextView
android:id="@+id/textProfileName"
@deapsquatter
deapsquatter / gist:4701190
Created February 3, 2013 10:26
Example BindableGroupListView usage
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:centrastage="http://schemas.android.com/apk/res/CentraStage.Droid"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<DeapExtensions.Binding.Droid.Views.BindableGroupListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
@deapsquatter
deapsquatter / MvxBindableGroupListAdaptor
Created January 31, 2013 11:11
Show a list with group headers similar to iOS UITableView with Sections. To use bind ItemsSource to an IEnumerable containing items that implement IEnumerable.
using System;
using Cirrious.MvvmCross.Binding.Droid.Views;
using System.Linq;
using Android.Content;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
namespace Cirrious.MvvmCross.Binding.Droid.Views
{