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 FormsTestView : BaseViewController<FormsTestViewModel> | |
{ | |
public override void ViewDidLoad() | |
{ | |
base.ViewDidLoad(); | |
EdgesForExtendedLayout = UIRectEdge.None; | |
Xamarin.Forms.Forms.Init(); |
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 FormsTestView : BaseViewController<FormsTestViewModel> | |
{ | |
public override void ViewDidLoad() | |
{ | |
base.ViewDidLoad(); | |
EdgesForExtendedLayout = UIRectEdge.None; | |
View.BackgroundColor = UIColor.Green; | |
Xamarin.Forms.Forms.Init(); |
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
#!/bin/bash | |
open_database() { | |
DB_PATH=`lsof -Fn -p $PID| grep "\.sqlite$"` | |
open ${DB_PATH:1} | |
} | |
PID=`pgrep $1` | |
if [ -z "$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
using System; | |
using System.Collections.Generic; | |
using Xamarin.Forms; | |
using XamForms.Enhanced.Extensions; | |
namespace XamForms.Enhanced.Views | |
{ | |
public class ExtendedContentView : ContentView | |
{ | |
private bool _didAppear; |
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 SectionItem | |
{ | |
public SectionItem(string headerText, IList<Book> collection) | |
{ | |
HeaderText = headerText; | |
Collection = collection; | |
} | |
public string HeaderText { 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 class BooksViewSource : MvxCollectionViewSource | |
{ | |
public IList<SectionItem> SectionedItemsCollection { get; set; } | |
public BooksViewSource(UICollectionView collectionView) | |
: base(collectionView, BookCell.Key) | |
{ | |
CollectionView.RegisterClassForCell(typeof(BookCell), BookCell.Key); | |
CollectionView.RegisterClassForSupplementaryView(typeof(BookHeader), UICollectionElementKindSection.Header, BookHeader.Key); | |
ReloadOnAllItemsSourceSets = true; |
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 BookHeader : UICollectionReusableView | |
{ | |
public static readonly NSString Key = new NSString("BookHeader"); | |
private UILabel headerText; | |
public string HeaderText | |
{ | |
get { return headerText.Text; } | |
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 class BookCell : MvxCollectionViewCell | |
{ | |
public static NSString Key = new NSString("BookCell"); | |
private UILabel bookName; | |
private UILabel bookAuthor; | |
private MvxCachedImageView bookThumbnail; | |
public BookCell(IntPtr handle) : base(string.Empty, handle) | |
{ |
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
#!/bin/bash | |
PATH_TO_PROJECT="$1" | |
SONAR_TOKEN="{YOUR-TOKEN}" | |
PROJECT_NAME="$( echo "$1" | sed 's@.*/@@' )" | |
if [[ -z "$PROJECT_NAME" ]]; then | |
echo "Project name can't be null. Either project does not exist or you have / at the end of path" | |
exit; | |
fi |
NewerOlder