Skip to content

Instantly share code, notes, and snippets.

View Char0394's full-sized avatar

Charlin Agramonte Char0394

View GitHub Profile
using System;
using Xamarin.Forms;
namespace UISampleApp.Controls
{
public class ImageEntry : Entry
{
public ImageEntry(){
this.HeightRequest = 50;
}
using System;
using System.Drawing;
using CoreAnimation;
using CoreGraphics;
using Foundation;
using UIKit;
using UISampleApp.Controls;
using UISampleApp.iOS.Renderers;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
using System;
using Android.Content.Res;
using Android.Graphics;
using Android.Graphics.Drawables;
using Android.OS;
using Android.Support.V4.Content;
using Android.Support.V4.Content.Res;
using UISampleApp.Controls;
using UISampleApp.Droid.Renderers;
using Xamarin.Forms;
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="UISampleApp.Views.Logins.LoginDaniaPage"
xmlns:local="clr-namespace:UISampleApp.Controls" BackgroundColor="#2f4259">
<ContentPage.Content>
<ScrollView>
<StackLayout Padding="40" Spacing="10">
<local:ImageEntry TextColor="White"
PlaceholderColor="{StaticResource primary}"
using System;
using Xamarin.Forms;
namespace NullableDatePicker.Controls
{
public class NullableDatePicker : DatePicker
{
public NullableDatePicker()
{
Format = "d";
using System;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
using Android.App;
using Android.Widget;
using System.ComponentModel;
using NullableDatePicker.Droid;
[assembly: ExportRenderer(typeof(NullableDatePicker.Controls.NullableDatePicker), typeof(NullableDatePickerRenderer))]
namespace NullableDatePicker.Droid
using System;
using Xamarin.Forms.Platform.iOS;
using Xamarin.Forms;
using UIKit;
using System.Collections.Generic;
using NullableDatePicker.iOS;
[assembly: ExportRenderer(typeof(NullableDatePicker.Controls.NullableDatePicker), typeof(NullableDatePickerRenderer))]
namespace NullableDatePicker.iOS
{
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="NullableDatePicker.MainPage"
xmlns:local="clr-namespace:NullableDatePicker.Controls" >
<ContentPage.Content>
<StackLayout VerticalOptions="CenterAndExpand" HorizontalOptions="FillAndExpand" Padding="20">
<Label Text="Select Date:"/>
<local:NullableDatePicker NullableDate="{Binding MyDate}" />
</StackLayout>
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
using UIKit;
using ShadowNavBarSample.iOS;
using CoreGraphics;
[assembly: ExportRenderer(typeof(NavigationPage), typeof(ShadowNavigationBarRenderer))]
namespace ShadowNavBarSample.iOS
{
public class ShadowNavigationBarRenderer : NavigationRenderer
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<size android:height="4dp" />
<gradient android:startColor="@android:color/transparent"
android:endColor="#88333333"
android:angle="90"/>
</shape>