55556

Diasble button animation or effects xamarin-forms

Question:

I have a touch screen to start page, and would just want to navigate to the next page when tapped - no animations/color changing effects on hover, clicked/pressed. But there's a gray opaque box when clicked... Anyone know how to override it?

P.S. I know there are more ways to do this but I decided to create the whole page as a button and reduced the opacity to almost transparent.

<a href="https://i.stack.imgur.com/mXJAE.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/mXJAE.png" data-original="https://i.stack.imgur.com/mXJAE.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

Answer1:

The easiest way to achieve this would be to remove the Button's template:

<pre class="lang-xml prettyprint-override"><Button Template="{x:Null}"> ... your content </Button>

Alternatively you can create a Button style, with just ContentPresenter in its template:

<pre class="lang-xml prettyprint-override"><Style x:Key="InvisibleButtonStyle" TargetType="Button"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <ContentPresenter /> </ControlTemplate> </Setter.Value> </Setter> </Style>

And you can reuse this style on multiple places.

Recommend

  • Find lines in shape
  • Access textfield of UIAlertController - swift ios8
  • C++ password masking
  • Set up the Android-Facebook sdk for Netbeans
  • Jquery - fadeIn() and fadeOut() in PNG image. Border Solid (black) in IE8…?
  • OpenCV with Python error - Assertion failed ((mask.type() == CV_8UC1 || mask.type() == CV_8SC1)) in
  • How to reduce the time delay to reach run method of Runnable class using ExecutorService Java
  • Solid Shadow in All Directions
  • QVideoWidget: Video is cut off
  • general concept-java code and cycle clocks
  • Java Netbeans Error Cannot find symbol, symbol: class out, location: class System, expected, illega
  • Calling right overload of the java method from jython
  • How do I detect which submit button was pressed on a Zend Framework form?
  • Seemlessly layering transparent sprites in OpenGL ES
  • Setting color in a row of a Jtable
  • Capturing HTML Text Input Key press after key has been applied?
  • eC (Ecere) how to not worry about private data fields of a class
  • WPF Animation doesn't run first time
  • How to avoid or stop multiple ajax request
  • Caret disappears when the background of a textbox is gray in wpf
  • What is this strange character in chrome's resource css viewer?
  • Possible to get mouse events fired when cursor is outside page?
  • Tamper-proof configuration files in .NET?
  • Ajax calls do not work in IE unless you fiddle with security settings
  • Keep this build forever option - Jenkins
  • Android fill_parent issue
  • Update CALayer sublayers immediately
  • JFileChooser in front of fullscreen Swing application
  • Javascript + PHP Encryption with pidCrypt
  • How to show dropdown in excel using jrxml (jasper api)?
  • jquery mobile loadPage not working
  • Properly structure and highlight a GtkPopoverMenu using PyGObject
  • WOWZA + RTMP + HTML5 Playback?
  • Calling of Constructors in a Java
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • How does Linux kernel interrupt the application?
  • unknown Exception android
  • failed to connect to specific WiFi in android programmatically
  • Conditional In-Line CSS for IE and Others?