This file contains hidden or 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; | |
| using Xamarin.Forms; | |
| namespace UISampleApp.Controls | |
| { | |
| public class ImageEntry : Entry | |
| { | |
| public ImageEntry(){ | |
| this.HeightRequest = 50; | |
| } |
This file contains hidden or 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; | |
| 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; |
This file contains hidden or 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; | |
| 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; |
This file contains hidden or 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"?> | |
| <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}" |
This file contains hidden or 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; | |
| using Xamarin.Forms; | |
| namespace NullableDatePicker.Controls | |
| { | |
| public class NullableDatePicker : DatePicker | |
| { | |
| public NullableDatePicker() | |
| { | |
| Format = "d"; |
This file contains hidden or 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; | |
| 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 |
This file contains hidden or 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; | |
| 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 | |
| { |
This file contains hidden or 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"?> | |
| <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> |
This file contains hidden or 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
| <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> |