View .editorconfig
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
# Start of NO underscore prefix on private fields | |
# Define the 'private_fields' symbol group: | |
dotnet_naming_symbols.private_fields.applicable_kinds = field | |
dotnet_naming_symbols.private_fields.applicable_accessibilities = private | |
# Define the 'notunderscored' naming style | |
dotnet_naming_style.notunderscored.capitalization = camel_case | |
dotnet_naming_style.notunderscored.required_prefix = | |
# Define the 'private_fields_notunderscored' naming rule |
View RegistrationCodePage.cs
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
// C# vNext markup friendly | |
enum Row { Icon, Prompt, Header, Entry } | |
void Build() => Content = new Grid | |
{ | |
RowDefinitions = Rows.Define( | |
(Icon , Auto), | |
(Prompt, Auto), | |
(Header, 50 ), | |
(Entry , Auto) |
View WhiteIBeam1.cape
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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Author</key> | |
<string>Vincent Hoogendoorn</string> | |
<key>CapeName</key> | |
<string>WhiteIBeam</string> | |
<key>CapeVersion</key> | |
<real>1</real> |
View SharpSvgImageSource.cs
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 FFImageLoading; | |
using FFImageLoading.Config; | |
using FFImageLoading.DataResolvers; | |
using FFImageLoading.Forms; | |
using FFImageLoading.Svg.Platform; | |
using FFImageLoading.Work; | |
using SkiaSharp; | |
using System; | |
using System.IO; | |
using System.Reflection; |
View ApiModels2ViewModels.cs
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.Threading.Tasks; | |
using PropertyChanged; | |
/// <summary> | |
/// See "Consuming the BFF API" in http://vincenth.net/blog/archive/2016/07/13/building-bff-backend-for-frontend-apis-for-xamarin-mobile-apps.aspx | |
/// </summary> | |
namespace MyApp.ApiModels | |
{ | |
[ImplementPropertyChanged] // This will make all properties in all partial Contact classes data-bindable | |
public partial class Contact : ViewModelBase |
View FormsBinding.sketchcs.cs
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 Xamarin.Forms; | |
// Additional guidance: see http://vincenth.net/blog/archive/2014/11/27/how-to-share-xamarin-forms-data-binding-code-across-xamarin-sketches-and-apps-without-using-strings.aspx | |
// NOTE: Once support for creating classes is added to Xamarin Sketches, | |
// there is no need for this Tuple + enum + BindName + regular expression workaround; | |
// you can then simply create design data classes in the Sketch and bind to that using | |
// the same syntax in both projects and sketches, e.g.: | |
// SetBinding(..., (Person boundPerson) => boundPerson.Name) | |
// BindName helper function for use with binding to design data in Sketches. |
View KeyboardDismissGestureRecognizer.cs
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
/// <summary> | |
/// To automatically dismiss the onscreen keyboard in iOS when a user taps outside an editable view, | |
/// add a KeyboardDismissGestureRecognizer to your application's main window in FinishedLaunching, e.g.: | |
/// Window.AddGestureRecognizer(new KeyboardDismissGestureRecognizer()); | |
/// </summary> | |
public class KeyboardDismissGestureRecognizer : UITapGestureRecognizer | |
{ | |
public KeyboardDismissGestureRecognizer() : base(() => { }) { CancelsTouchesInView = false; } | |
public override void TouchesBegan(NSSet touches, UIEvent evt) |
View OrderResultView.axml
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"?> | |
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@+id/OrderResultView" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:fillViewport="true"> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"> |
View TextListItem.axml
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"?> | |
<TextView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@+id/TextListItem" | |
android:textAppearance="?android:attr/textAppearanceMedium" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" /> |
View OrderView.axml
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"?> | |
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@+id/OrderView" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:fillViewport="true"> | |
<TableLayout | |
android:stretchColumns="1,2" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"> |
NewerOlder