Professional Documents
Culture Documents
me/5-useful-xamarin-forms-snippets/
doumer.me
21 Jun
Value Converters
1 of 6 11/28/2020, 4:12 PM
6 useful Xamarin Forms Snippets - Cool Coders about:reader?url=https://doumer.me/5-useful-xamarin-forms-snippets/
bool returenedValue =
string.IsNullOrEmpty(value?.ToString()) && value == null;
return !returenedValue;
return value;
2 of 6 11/28/2020, 4:12 PM
6 useful Xamarin Forms Snippets - Cool Coders about:reader?url=https://doumer.me/5-useful-xamarin-forms-snippets/
2 {
{
7
8 if (value.GetType() != typeof(bool))
return FalseValue;
9
}
11
20
21
3 of 6 11/28/2020, 4:12 PM
6 useful Xamarin Forms Snippets - Cool Coders about:reader?url=https://doumer.me/5-useful-xamarin-forms-snippets/
22
Custom Renderers
1 [assembly: ExportRenderer(typeof(CustomEntry),
typeof(CustomEntryRenderer))]
2
4 of 6 11/28/2020, 4:12 PM
6 useful Xamarin Forms Snippets - Cool Coders about:reader?url=https://doumer.me/5-useful-xamarin-forms-snippets/
3 namespace Sample.Droid
4 {
6 {
8 base(context)
{
9
10 }
18 PropertyChangedEventArgs e)
19 {
20 base.OnElementPropertyChanged(sender, e);
Markup Extensions
5 of 6 11/28/2020, 4:12 PM
6 useful Xamarin Forms Snippets - Cool Coders about:reader?url=https://doumer.me/5-useful-xamarin-forms-snippets/
Snippet Code: mx
[ContentProperty("Text")]
Conclusion
These are some very usefull Xamarin Forms snippets which you
can download and install from here. Installing snippets on
visualstudio is easy, here is a guide which helps you through
this process. You might also like this blog post about using
reactive ui with Xamarin Forms.
6 of 6 11/28/2020, 4:12 PM