Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

ViewFlipper

Flips two Views around X or Y axis

Usage

No nuget package available. Will add based on interest.

Add XAML namespace:

xmlns:flipper="clr-namespace:ViewFlipper.FormsPlugin.Abstractions;assembly=ViewFlipper.FormsPlugin.Abstractions"

Create ViewFlipper

<flipper:ViewFlipperBackgroundColor="White">
<flipper:ViewFlipper.FrontView>
<LabelXAlign="Center"YAlign="Center"Text="Tap to show image" />
</flipper:ViewFlipper.FrontView>
<flipper:ViewFlipper.BackView>
<ImageSource="icon.png"Aspect="Fill" />
</flipper:ViewFlipper.BackView>
</flipper:ViewFlipper>

I recommend taking a look at the sample

Available properties

/// <summary>/// Gets/Sets the front view/// </summary>publicViewFrontView{get{return(View)this.GetValue(FrontViewProperty);}set{this.SetValue(FrontViewProperty,value);}}/// <summary>/// Gets/Sets the back view/// </summary>publicViewBackView{get{return(View)this.GetValue(BackViewProperty);}set{this.SetValue(BackViewProperty,value);}}/// <summary>/// Gets/Sets if a flip will be perfomed when tapping anywhere inside the <c>ViewFlipper</c>/// </summary>publicboolFlipOnTap{get{return(bool)this.GetValue(FlipOnTapProperty);}set{this.SetValue(FlipOnTapProperty,value);}}/// <summary>/// Gets/Sets the current state of the <c>ViewFlipper</c>. This toggles the animation when changed/// </summary>publicFlipStateFlipState{get{return(FlipState)this.GetValue(FlipStateProperty);}set{this.SetValue(FlipStateProperty,value);}}/// <summary>/// Gets/Sets the duration of the flip animation/// </summary>publicintAnimationDuration{get{return(int)this.GetValue(AnimationDurationProperty);}set{this.SetValue(AnimationDurationProperty,value);}}/// <summary>/// Gets/Sets if the flip will be in horizontal or vertical direction/// </summary>publicRotationDirectionRotationDirection{get{return(RotationDirection)this.GetValue(RotationDirectionProperty);}set{this.SetValue(RotationDirectionProperty,value);}}

License

The MIT License (MIT)
Copyright (c) 2015 Torben Kruse
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Flips two Views around X or Y axis

Resources

Stars

18 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages