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
#include "stdafx.h" | |
#include "../WindowsProject/check.h" | |
using namespace System; | |
using namespace System::Text; | |
using namespace System::Collections::Generic; | |
using namespace Microsoft::VisualStudio::TestTools::UnitTesting; | |
namespace UnitTest1 |
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
#include "stdafx.h" | |
#include "check.h" | |
bool CheckE2(char ch, int numb) | |
{ | |
if ((ch == 'e') && (numb == 2)) | |
{ | |
return true; | |
} | |
else |
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
#include "CppUnitTest.h" | |
#include "../ConsoleApp/check.h" | |
using namespace Microsoft::VisualStudio::CppUnitTestFramework; | |
namespace UnitTestNative | |
{ | |
TEST_CLASS(UnitTest1) | |
{ |
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
private CALayer BottomLine; | |
... | |
private void TintCustomization(UITextField Control, MyEntry customEntry) | |
{ | |
... | |
BottomLine = new CALayer |
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 Android.Content; | |
using Android.Content.Res; | |
using Android.Graphics; | |
using Android.Graphics.Drawables; | |
using Android.OS; | |
using Android.Runtime; | |
using Android.Support.V4.Content; | |
using Android.Widget; | |
using EntryAccent; |
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 EntryAccent.iOS.Renderers; | |
using UIKit; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Platform.iOS; | |
[assembly: ExportRenderer(typeof(Entry), typeof(MyEntryRenderer))] | |
namespace EntryAccent.iOS.Renderers | |
{ | |
public class MyEntryRenderer: EntryRenderer | |
{ |
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
<StackLayout> | |
<Label Text="Default" /> | |
<Entry Text="Text" TextColor="White" PlaceholderColor="Green" BackgroundColor="YellowGreen" /> | |
<Entry Placeholder="Placeholder" TextColor="White" PlaceholderColor="Green" BackgroundColor="YellowGreen" /> | |
</StackLayout> |
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 Xamarin.Forms; | |
namespace EntryAccent | |
{ | |
public class MyEntry : Entry | |
{ | |
} | |
} |
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
#region Bindable Properties | |
public static readonly BindableProperty MyHighlightColorProperty = BindableProperty.Create(nameof(MyHighlightColor), typeof(Color), typeof(MyEntry)); | |
public static readonly BindableProperty MyHandleColorProperty = BindableProperty.Create(nameof(MyHandleColor), typeof(Color), typeof(MyEntry)); | |
public static readonly BindableProperty MyTintColorProperty = BindableProperty.Create(nameof(MyTintColor), typeof(Color), typeof(MyEntry)); | |
#endregion | |
#region Properties |
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
<... | |
xmlns:local="clr-namespace:EntryAccent" | |
x:Class="EntryAccent.MainPage" | |
> | |
... | |
<local:MyEntry Text="Text" TextColor="White" PlaceholderColor="Green" BackgroundColor="YellowGreen" MyHighlightColor="Blue" MyHandleColor="Violet" MyTintColor="Black" /> | |
<local:MyEntry Placeholder="Placeholder" TextColor="White" PlaceholderColor="Green" BackgroundColor="YellowGreen" MyHighlightColor="Blue" MyHandleColor="Violet" MyTintColor="Black" /> | |
... |
OlderNewer