Example #1
0
        public NativeImageButton()
        {
            if (!HasImplementation)
            {
                IsVisible = false;
                return;
            }

            VerticalOptions   = LayoutOptions.FillAndExpand;
            HorizontalOptions = LayoutOptions.FillAndExpand;

            View nativeImageButton = Implementation.BuildNativeImageButton(Text, Icon, () => { tapGesture.Command.Execute(null); });

            nativeImageButton.GestureRecognizers.Add(tapGesture);

            Children.Add(nativeImageButton);
        }