Coder Social home page Coder Social logo

udaraalwis / xfcolorpickercontrol Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 10.0 17.66 MB

An interactive and responsive Color Picker Control for Xamarin.Forms based on SkiaSharp!

License: GNU General Public License v3.0

C# 100.00%
color-picker color-selector control ui xamarin xamarin-forms

xfcolorpickercontrol's People

Contributors

udaraalwis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xfcolorpickercontrol's Issues

Set initial color

Hi, great control!
Is it possible to set the initial color when showing the color picker?

[Feature] Lock a pointer axis

This could be cool to lock a pointer axis.
For example: if you lock the Y-axis we can only move the pointer horizontally.
(I need this currently in one of my projects)

Binding not working (setter)

Great control!

But the binding is not working

    public ThemePage()
    {
      InitializeComponent();

      ViewModel = new ThemePageViewModel();
      BindingContext = ViewModel;
    }

//...

  [AddINotifyPropertyChangedInterface] // From Fody
  public class ThemePageViewModel
  {
    public Color SelectedColor
    {
      get
      {
        var color = (Color)Application.Current.Resources["HighlightColor"];
        return color;
      }
      set
      {
        Application.Current.Resources["HighlightColor"] = value;
      }
    }
  }
            <xfColorPickerControl:ColorPicker
                x:Name="ColorPicker"
                ColorFlowDirection="Horizontal"
                ColorSpectrumStyle="ShadeToHueToTintStyle"
                HeightRequest="200"
                HorizontalOptions="FillAndExpand"
                PickedColor="{Binding SelectedColor}"
                PickedColorChanged="ColorPicker_OnPickedColorChanged"
                PointerRingBorderUnits="0.3"
                PointerRingDiameterUnits="0.7"
                PointerRingPositionXUnits="0.6"
                PointerRingPositionYUnits="0.6" />

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.