Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Luis Matos luismts

🎯
Focusing
View GitHub Profile
@luismts
luismts / gist:74cc92849fe83dd8846e8c27545f63ec
Created Aug 24, 2018 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:74cc92849fe83dd8846e8c27545f63ec

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@luismts
luismts / aligning-images.md
Created Sep 10, 2018 — forked from DavidWells/aligning-images.md
Guide to aligning images in github readme.md files
View aligning-images.md

Aligning images

left alignment

This is the code you need to align images to the left:

<img align="left" width="100" height="100" src="http://www.fillmurray.com/100/100">
View ValidationRules.ExampleViewModel.cs
using Plugin.ValidationRules;
namespace ValidationRulesTest.ViewModels
{
public class Example1ViewModel
{
public Example1ViewModel()
{
Name = new ValidatableObject<string>();
}
View ValidationRulesTest.Validations.cs
//Email validations
Email.Validations.Add(new IsNotNullOrEmptyRule<string>{ ValidationMessage = "A email is required." });
Email.Validations.Add(new EmailRule<string> { ValidationMessage = "Email is not valid." });
View ValidationRules.EventToCommandBehavior.xaml
<Entry Text="{Binding Name.Value, Mode=TwoWay}" >
<Entry.Behaviors>
<behaviors:EventToCommandBehavior EventName="Unfocused" Command="{Binding ValidateUserNameCommand}" />
</Entry.Behaviors>
</Entry>
View ValidationRulesTest.ValidateProperties.cs
public bool Validate()
{
var isValidName = _name.Validate();
var isValidLastname = _lastname.Validate();
var isValidEmail = _email.Validate();
// Your logic here
return isValidName && isValidLastname && isValidEmail;
}
View ValidationRules.ValidationUnit.cs
_unit1 = new ValidationUnit(Name, LastName, Email);
var isValidUnit = _unit1.Validate();
View ValidationRules.DisplayingResults.xaml
<Entry Text="{Binding Name.Value, Mode=TwoWay}" />
<Label Text="{Binding Name.Error}" TextColor="Red" HorizontalTextAlignment="Center" />