Coder Social home page Coder Social logo

xamarin.forms-awesome-controls's Introduction

Xamarin.Forms Awesome Controls!

I am always working on some really awesome Xamarin.Forms controls and looking to share them with the world. Sometimes they are for 1 platform and sometimes all 3. Check out all of the Awesome Controls and things you can do with Xamarin.Forms :)

These are all experiments So take and implement them in your app understanding they aren't all finished or production ready.

Follow:

xamarin.forms-awesome-controls's People

Contributors

cleardemon avatar dhindrik avatar jamesmontemagno avatar tamasszadvari 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

xamarin.forms-awesome-controls's Issues

If there is handled exception the spinner does not dissapear

Hello,

if inside my UpdateMenuSettingsExecute() method there is some handled exception (enters in catch block), the spinner does not dissapear...

Here is the source code of the Execute method:

    private async Task UpdateMenuSettingsExecute()
    {
        IsLoadingList = true;

        try
        {
            ShowPickAndPlacement = await _dataService.CallToServer();
        }
        catch (Exception e)
        {
            // manage the exception....
        }

        IsLoadingList = false;
    }

And the code of the view:

<pullToRefresh:PullToRefreshLayout Grid.Row="1" IsPullToRefreshEnabled="True" RefreshCommand="{Binding UpdateMenuSettingsCommand}" IsRefreshing="{Binding IsLoadingList}">
  <ScrollView>

    .... content

  </ScrollView>
</pullToRefresh:PullToRefreshLayout>

Issue with smaller content size

For iOS, it works fine only when the content size inside the pull refresh layout is bigger than the pull refresh layout's size. I tested the sample available on GitHub (scrollview XAML) with fewer boxes/items inside the scroll view e.g. 2. Now when I try to pull the list down, nothing happens.

PullRefreshLayout : Error when setting new MainPage

I am getting an error when trying to set a new MainPage after using the PullRefreshLayout. The object it is trying to use is the ScrollViewRenderer

System.ObjectDisposedException: The object was used after being disposed.
at Foundation.NSObject.get_SuperHandle () [0x00015] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/Foundation/NSObject2.cs:416
at UIKit.UIView.RemoveFromSuperview () [0x0003d] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/build/ios/native/UIKit/UIView.g.cs:1275
at Xamarin.Forms.Platform.iOS.Platform.DisposeModelAndChildrenRenderers (Xamarin.Forms.Element view) [0x00033] in :0
at Xamarin.Forms.Platform.iOS.Platform.Dispose () [0x00048] in :0
at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.UpdateMainPage () [0x00043] in :0
at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.ApplicationOnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args) [0x00012] in :0
at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00012] in :0
at Xamarin.Forms.Application.set_MainPage (Xamarin.Forms.Page value) [0x0008b] in :0

GifImageView GIF animation

I've consumed GifImageView implementation in my android project.
Gif is basically a loader image which I display whenever any process ongoing and I change visibility of it to display in view.
The problem I'm facing is whenever I change visibility of GifImageView loader image is rotating very fast.
I already try stopanimation and clearanimation but nothing helped.

Is there any workaround for that?

Packages are mising

All the packages that are missing in the project. able to add the packages but not able to find Refactored.GifImageView. Please check with this and update

Application crashes, pullToRefresh component is a reason

In logs I see the following error:

Message: [ArgumentException: 'jobject' must not be IntPtr.Zero. Parameter name: jobject]
Android.Runtime.JNIEnv.CallNonvirtualBooleanMethod(IntPtr jobject, IntPtr jclass, IntPtr jmethod):0
Android.Support.V4.Widget.SwipeRefreshLayout.get_Refreshing():0
Refractored.XamForms.PullToRefresh.Droid.PullToRefreshLayoutRenderer.set_Refreshing(Boolean value):0
Refractored.XamForms.PullToRefresh.Droid.PullToRefreshLayoutRenderer.UpdateIsRefreshing():0
Refractored.XamForms.PullToRefresh.Droid.PullToRefreshLayoutRenderer.HandlePropertyChanged(System.Object sender, System.ComponentModel.PropertyChangedEventArgs e):0
(wrapper delegate-invoke) :invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs)
Xamarin.Forms.BindableObject.OnPropertyChanged(System.String propertyName):0
Xamarin.Forms.BindableObject.SetValueActual(Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindablePropertyContext context, System.Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent):0
Xamarin.Forms.BindableObject.SetValueCore(Xamarin.Forms.BindableProperty property, System.Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes):0
Xamarin.Forms.BindingExpression.ApplyCore(System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, Boolean fromTarget):0
Xamarin.Forms.BindingExpression.Apply(Boolean fromTarget):0
Xamarin.Forms.BindingExpression+BindingExpressionPart.b__38_0():0
Java.Lang.Thread+RunnableImplementor.Run():0
Java.Lang.IRunnableInvoker.n_Run(IntPtr jnienv, IntPtr native__this):0
(wrapper dynamic-method) System.Object:bf030382-1fa2-4dc6-894b-ec49ce37e172 (intptr,intptr)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw():0
Android.Runtime.JNIEnv.CallVoidMethod(IntPtr jobject, IntPtr jmethod, Android.Runtime.JValue* parms):0
Android.App.Activity.RunOnUiThread(IRunnable action):0
Android.App.Activity.RunOnUiThread(System.Action action):0
Xamarin.Forms.Forms+AndroidPlatformServices.BeginInvokeOnMainThread(System.Action action):0
Xamarin.Forms.Device.BeginInvokeOnMainThread(System.Action action):0
Xamarin.Forms.BindingExpression+BindingExpressionPart.PropertyChanged(System.Object sender, System.ComponentModel.PropertyChangedEventArgs args):0
(wrapper delegate-invoke) :invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs)
WildApricot.MobileBackend.Logic.ViewModelBase.FirePropertyChanged(System.String propertyName):0
WildApricot.MobileBackend.Logic.ViewModelBase.SetValue[T](WildApricot.MobileBackend.Logic.T value, System.String propertyName):0
WildApricot.MobileBackend.Logic.ViewModelBase.set_IsDataLoading(Boolean value):0
WildApricot.MobileBackend.Logic.ContactDetailsScreenViewModel+d__2a.MoveNext():0
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw():0
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task task):0
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task task):0
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(System.Threading.Tasks.Task task):0
System.Runtime.CompilerServices.TaskAwaiter.GetResult():0
WildApricot.MobileBackend.Logic.ViewModelBase+d__3.MoveNext():0
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw():0
System.Runtime.CompilerServices.AsyncMethodBuilderCore.m__0(System.Object state):0
Android.App.SyncContext+c__AnonStorey0.<>m__0():0
Java.Lang.Thread+RunnableImplementor.Run():0
Java.Lang.IRunnableInvoker.n_Run(IntPtr jnienv, IntPtr native__this):0
(wrapper dynamic-method) System.Object:bf030382-1fa2-4dc6-894b-ec49ce37e172 (intptr,intptr)

iOS issue with Forms 1.5.0.6446

Thanks a lot for this layout! It does exactly what I was looking for.

Unfortunately after testing it with Xamarin Forms 1.5.0.6446 there now is a strange rendering issue on iOS: The content of the PullToRefreshLayout is visible in the background when pulled down.

Screenshot:

ios-refresh-bug

Do you have any idea how this could be fixed in the iOS renderer?

I pushed a version of your project with the unstable forms version here: https://github.com/philippd/Xamarin.Forms-Awesome-Controls

ListView is not drugging down

After updating XF to 1.3.1 Pull to refresh behavior is strange - I do have an icon of refreshing when pulling the list, but list itself is not pulled and staying still as it is (instead of moving down following the motion).

List get updated and all works fine apart from that.

PullToRefresh crashes on Android

We see a lot of crashes in our app using Xamarin Insight.

Stacktrace:

System.ObjectDisposedExceptionCannot access a disposed object. Object name: 'Refractored.XamForms.PullToRefresh.Droid.PullToRefreshLayoutRenderer'.
Raw
Java.Interop.JniPeerMembers.AssertSelf(IJavaPeerable self)
Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod(string encodedMember, IJavaPeerable self, JniArgumentValue* parameters)
Android.Views.View.set_Alpha(float value)
Xamarin.Forms.Platform.Android.VisualElementTracker.UpdateOpacity()
Xamarin.Forms.Platform.Android.VisualElementTracker.HandlePropertyChanged(object sender, PropertyChangedEventArgs e)
Xamarin.Forms.Platform.Android.VisualElementTracker.HandleRedrawNeeded(object sender, EventArg<> e)
System.EventHandler>.invoke_void_object_TEventArgs(object, EventArg)(wrapper delegate-invoke)
Xamarin.Forms.VisualElement.BatchCommit()
Xamarin.Forms.AnimationExtensions.HandleTweenerUpdated(object o, EventArgs args)
Xamarin.Forms.Tweener.b__26_0(long step)
Xamarin.Forms.Ticker.SendSignals(int timestep)
at Xamarin.Forms.Platform.Android.AndroidTicker.<.ctor>b__1_0 (System.Object sender, Android.Animation.AnimatorUpdateEventArgs e) <0x65593b18 + 0x0001f> in :0
Android.Animation.ValueAnimator.IAnimatorUpdateListenerImplementor.OnAnimationUpdate(ValueAnimator animation)
Android.Animation.ValueAnimator.IAnimatorUpdateListenerInvoker.n_OnAnimationUpdate_Landroid_animation_ValueAnimator(IntPtr jnienv, IntPtr native__this, IntPtr native_animation)
at (wrapper dynamic-method) System.Object:4634ef59-1681-427d-942e-9589247b8c29 (intptr,intptr,intptr)

PullToRefresh It is always being activated .

Hi,
How are u?

I am using the pullto refresh plugin and I have a problem . I used a list and every movement that held down the pull is being activated. how can I solve this?

Elevation

Hi,
Thanks for your work ! I'd like to use Elevation, to have a shadow like android app.
Could you help me please ?

CardView can't show StackLayout

Works fine with single Label or if I put same StackLayout before it (but then this same StackLayout outside CardView is never shown).
But when I insert StackLayout with some Labels into it it just show empty CardView.
I am quite sure that there is something wrong with the renderer I just can't find out what is it.
I think that there should be some force redraw called on Content of CardView?
I am completely stuck do you have any idea please?

Purpose of IsPullToRefreshEnabledProperty?

Setting IsPullToRefreshEnabledProperty to false seems to not affect anything. You can still pull the refresher down. I was expecting to happen nothing when you try to pull down.
Also the refresher appears even when there is no RefreshCommand set. That makes imo no sense, as it does nothing but showing an animating icon.

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.