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 ExampleUserControl : UserControl | |
{ | |
#region Properties | |
#region - Bindable Property Declaration | |
public static readonly DependencyProperty ExampleTextProperty = | |
DependencyProperty.Register( | |
nameof(ExampleText), | |
typeof(string), |
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> | |
/// Device Orientation. | |
/// </summary> | |
public enum Orientation | |
{ | |
/// <summary> | |
/// Portrait Orientation. | |
/// </summary> | |
Portrait, |
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.Collections.Generic; | |
using System.Configuration; | |
using System.Xml; | |
public class ExcludeKeywordSection : IConfigurationSectionHandler | |
{ | |
public object Create(object parent, object configContext, XmlNode section) | |
{ | |
List<string> myConfigObject = new List<string>(); |
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 ClassName | |
{ | |
#region Properties | |
#endregion Properties | |
public ClassName() | |
{ | |
} |
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> | |
/// Gets the device model from model code. | |
/// https://stackoverflow.com/questions/11197509/how-to-get-device-make-and-model-on-ios | |
/// </summary> | |
/// <returns>The device model.</returns> | |
/// <param name="modelCode">Model code.</param> | |
private string GetDeviceModel(string modelCode) | |
{ | |
switch (modelCode) | |
{ |
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 ExampleViewModel : INotifyPropertyChanged | |
{ | |
private readonly IDataObjectService _dataObjectService; | |
ObservableCollection<DataObject> _bindedList; | |
ObservableCollection<DataObject> BindedList | |
{ | |
get { return _bindedList; } | |
} |
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
var lol = "hello world"; |
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
protected override bool DrawChild(Canvas canvas, Android.Views.View child, long drawingTime) | |
{ | |
float cornerRadius = child.Height / 2; | |
var path = new Path(); | |
path.AddRoundRect(new RectF(0, 0, child.Width, child.Height), cornerRadius, cornerRadius, Path.Direction.Cw); | |
canvas.ClipPath(path); | |
return base.DrawChild(canvas, child, drawingTime); | |
} |
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
class Options | |
{ | |
// Omitting long name, defaults to name of property, ie "--verbose" | |
[Option(Default = false, HelpText = "Prints all messages to standard output.")] | |
public bool Verbose { 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
/// <summary> | |
/// The class map of the object you want to parse (The csv column headers) | |
/// <summary> | |
sealed class c : ClassMap<ParseUser> | |
{ | |
/// <summary> | |
/// CSV Definition Map For <ParseUser> | |
/// </summary> | |
public ParseUserDefinitionMap() | |
{ |