Giter Club home page Giter Club logo

xfcontrols's People

Contributors

gruan01 avatar mgtorress avatar mrchem avatar pcsoriano avatar xlingfairy 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

xfcontrols's Issues

Checkbox Label fixed size ?

Why the Label is made private read only ?
I need to resize the text of the checkbox. Is there another solution other change Label to public because it breaks the library code. Thanks.

Checkbox not working when rotated

Hi @gruan01 . When i rotate phone, tapping checkbox gives no response. Is there a fix for this? or did i do something wrong? Also can i changed the color when checked?

Thank you and appreciate the work

RadioGroup

Hi, I need some help please.

How can I modify the RadioGroup to look like in the image below?

image

I only need the separator between the options.

RadioGroup's DisplayPath not work without XAML

Sample code :

    public class WithoutXAML : ContentPage {
        public WithoutXAML() {

            var RadioGroupSource = new List<RadioItem>() {
                new RadioItem() {ID = 0, Name = "Hi" },
                new RadioItem() {ID = 1, Name="123" },
                new RadioItem() {ID = 2, Name = "Hello" }};

            var radioButton = new RadioGroup() {
                ItemsSource = RadioGroupSource,
                DisplayPath = "Name",
                Orientation = StackOrientation.Vertical
            };

            this.Content = new StackLayout {
                Children = {
                    radioButton
                }
            };
        }
    }

Reason :
Because when ItemsSource bind, DisplayPath is null, so Label text use XXX.ToString() to instead.

        protected virtual Radio GetRadio(object data) {
            Radio item = null;
            if (data is Radio) {
                item = (Radio)data;
            } else {
                item = new Radio();
                item.Value = data;

                if (!string.IsNullOrWhiteSpace(this.DisplayPath)) {
                    item.SetBinding(Radio.TextProperty, new Binding(this.DisplayPath, source: data));
                } else
                    item.Text = data.ToString();
            }
...
...

It's a bug.

If you want use it now, you can simple move DisplayPath assign before ItemsSource assign

            var radioButton = new RadioGroup() {
                DisplayPath = "Name", //<----- assign value before ItemsSource
                ItemsSource = RadioGroupSource,
                //DisplayPath = "Name",
                Orientation = StackOrientation.Vertical
            };

.NETStandard

Any chance of a version happy with .NET Standard?

URGENT - After XFControls - Frame CornerRadius doesn't work in iOS

I added XFControl Radio Button in my project. And after that, I seem to have issues with the frame corner radius in all the iOS devices for my Xamarin Forms project.
There is no change in Corner Radius even when I set values to it. It stays the same.
Are you doing any frame renderers? I think it's affecting all frames. Please do the fix.
img_8434

Images

Hi @gruan01 great work.
Now with flip demo you should add 1.jpg... to Android solution (files are only on iOS) and rename them in i1.jpg...

Nuget package

Hi @gruan01 Can you check my changes and update the nuspec please? I tried to do that but I dont know if is ok.

Checkbox not displayed

Using the following code randomly a checkbox is not visible.

CheckBox myCheckBox = new CheckBox
{
WidthRequest = 35,
Margin = new Thickness(2, 2, 2, 2),
HorizontalOptions = LayoutOptions.CenterAndExpand,
VerticalOptions = LayoutOptions.StartAndExpand,
HeightRequest = 35,
Checked = isChecked
};

x:TypeArguments

ctrls:Border.CornerRadius

                                    </OnPlatform>
                                </ctrls:Border.CornerRadius>

</ctrls:Border.CornerRadius>

But its not working. What should i do

It crashes with Xamarin.Forms v2.3.3.168

The example always crash with Xamarin.Forms version 2.3.3.168

Here is the crash log:

System.MissingMethodException: Method 'Xamarin.Forms.Xaml.Internals.SimpleValueTargetProvider..ctor' not found.
[Error]   at Xamarin.Forms.ElementTemplate.CreateContent () [0x0002c] in <f9095492ed2b43559d0236ac22ab7223>:0 
[Error]   at Xamarin.Forms.TemplateUtilities.OnControlTemplateChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x000c5] in <f9095492ed2b43559d0236ac22ab7223>:0 
[Error]   at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.BindableObject+SetValueFlags attributes, System.Boolean silent) [0x0010e] in <f9095492ed2b43559d0236ac22ab7223>:0 
[Error]   at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.BindableObject+SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0014b] in <f9095492ed2b43559d0236ac22ab7223>:0 
[Error]   at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x001f9] in <f9095492ed2b43559d0236ac22ab7223>:0 
[Error]   at Xamarin.Forms.BindingExpression.Apply (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property) [0x0006b] in <f9095492ed2b43559d0236ac22ab7223>:0 
[Error]   at Xamarin.Forms.Binding.Apply (System.Object newContext, Xamarin.Forms.BindableObject bindObj, Xamarin.Forms.BindableProperty targetProperty) [0x00042] in <f9095492ed2b43559d0236ac22ab7223>:0 
[Error]   at Xamarin.Forms.BindableObject.SetBinding (Xamarin.Forms.BindableProperty targetProperty, Xamarin.Forms.BindingBase binding, System.Boolean fromStyle) [0x000af] in <f9095492ed2b43559d0236ac22ab7223>:0 
[Error]   at Xamarin.Forms.BindableObject.SetBinding (Xamarin.Forms.BindableProperty targetProperty, Xamarin.Forms.BindingBase binding) [0x00000] in <f9095492ed2b43559d0236ac22ab7223>:0 
[Error]   at AsNum.XFControls.TabView.GetTab (System.Object data, System.Int32 idx) [0x0014b] in <3570d10bb57f44599b511ef50935fac9>:0 
[Error]   at AsNum.XFControls.TabView.Add (System.Object d, System.Int32 i) [0x00000] in <3570d10bb57f44599b511ef50935fac9>:0 
[Error]   at AsNum.XFControls.TabView.Reset () [0x0003f] in <3570d10bb57f44599b511ef50935fac9>:0 
[Error]   at AsNum.XFControls.TabView.<WrapItemsSource>b__91_2 () [0x00000] in <3570d10bb57f44599b511ef50935fac9>:0 
[Error]   at AsNum.XFControls.NotifyCollectionWrapper..ctor (System.Object source, System.Action`2[T1,T2] add, System.Action`2[T1,T2] remove, System.Action reset, System.Action finished, System.Action begin) [0x00064] in <3570d10bb57f44599b511ef50935fac9>:0 
[Error]   at AsNum.XFControls.TabView.WrapItemsSource () [0x00006] in <3570d10bb57f44599b511ef50935fac9>:0 
[Error]   at AsNum.XFControls.TabView.ItemsSourceChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x00007] in <3570d10bb57f44599b511ef50935fac9>:0 
[Error]   at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.BindableObject+SetValueFlags attributes, System.Boolean silent) [0x0010e] in <f9095492ed2b43559d0236ac22ab7223>:0 
[Error]   at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.BindableObject+SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0014b] in <f9095492ed2b43559d0236ac22ab7223>:0 

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.