GithubHelp home page GithubHelp logo

gdentryimage's Introduction

GD.ImageEntry

Upgrade Repository => https://github.com/AlexVarrese/Xamarin.Forms.ImageEntry

Use images in your entrys

This is the component, works on iOS, Android.

UWP coming soon

SocialNetworkApp

NuGet

Name Info
ImageEntry NuGet

Platform Support

ImageEntry is a .NET Standard 2.0 library.Its only dependency is the Xamarin.Forms

Setup / Usage

Install the package on all projects.

iOS, in AppDelegate on FinishedLaunching start control Xamarin.Forms.ImageEntry.ImageEntryRenderer.Init(); :

   public override bool FinishedLaunching(UIApplication app, NSDictionary options)
   {
     global::Xamarin.Forms.Forms.Init();

     Xamarin.Forms.ImageEntry.ImageEntryRenderer.Init();

     LoadApplication(new App());

     return base.FinishedLaunching(app, options);
   }

Android in MainActivity on OnCreate start control passing the context as parameter Xamarin.Forms.ImageEntry.ImageEntryRenderer.Init(this.BaseContext); :

    protected override void OnCreate(Bundle savedInstanceState)
    {
      TabLayoutResource = Resource.Layout.Tabbar;
      ToolbarResource = Resource.Layout.Toolbar;

      base.OnCreate(savedInstanceState);

      Xamarin.Forms.ImageEntry.ImageEntryRenderer.Init(this.BaseContext);

      global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
      LoadApplication(new App());
    }

in the Xaml file we must declare our control xmlns:ie="clr-namespace:Xamarin.Forms.ImageEntry;assembly=Xamarin.Forms.ImageEntry", for example .

Add the images in the project assets folders.

you can use the ImageAlignment tag to set whether the image will appear left or right.

  <ie:ImageEntry TextColor="Black" 
                        PlaceholderColor="Black" 
                        Image="user" 
                        Placeholder="User" 
                        ImageAlignment="Right"
                        HorizontalOptions="FillAndExpand"/>
                
   <ie:ImageEntry TextColor="Black" 
                        PlaceholderColor="Black" 
                        Image="password" 
                        Placeholder="Password" 
                        HorizontalOptions="FillAndExpand"/>

The complete example can be downloaded here: https://github.com/TBertuzzi/Xamarin.Forms.ImageEntry/tree/master/ImageEntrySample

gdentryimage's People

Contributors

dgokhan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.