Coder Social home page Coder Social logo

immyjosh / xamarin.forms-cardview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tiger4589/xamarin.forms-cardview

0.0 1.0 0.0 468 KB

A Package to create a CardView using Xamarin.Forms that works on the three platforms (Android, iOS, UWP)

License: MIT License

C# 100.00%

xamarin.forms-cardview's Introduction

Xamarin.Forms-CardView

A Package to create a CardView using Xamarin.Forms that works on the three platforms (Android, iOS, UWP) It is simple to use in a straight forward fashion. You may either use it in C#, or in XAML.


To Install this nuget package:

PM> Install-Package XamarinForms.CardView


CardView Bindable Properties

Property Property Name Property Type Usage Default Value
CardViewContentProperty CardViewContent View CardView Content None
CardViewHeightRequestProperty CardViewHeightRequest double Height Request -1
CardViewOutlineColorProperty CardViewOutlineColor Color Outline Color Transparent
CardViewInnerFrameOutlineColorProperty CardViewInnerFrameOutlineColor Color Inner OutlineColor Transparent
CardViewOutlineColorThicknessProperty CardViewOutlineColorThickness Thickness OutlineColor Thickness 0
CardViewInnerFrameOutlineColorThicknessProperty CardViewInnerFrameOutlineColorThickness Thickness Inner OutlineColor Thickness 0
CardViewHasShadowProperty CardViewHasShadow bool Card View Shadow false
IsSwipeToClearEnabledProperty IsSwipeToClearEnabled bool Enable to clear Content With a Swipe false
CardViewHorizontalOptionsProperty CardViewHorizontalOptions LayoutOptions Set Card View Horisontal Options Start

CardViewContent Example:

	<CardView>
		<CardView.CardViewContent>
			<StackLayout>
				<Label Text="Label inside StackLayout forming the CardViewContent"></Label>
			</StackLayout>
		</CardView.CardViewContent>
	</CardView>

CardViewHeightRequest Example:

	<cardView:CardView CardViewHeightRequest="100">
		<cardView:CardView.CardViewContent>
			<StackLayout>
				<Label Text="I have 100 Height"></Label>
			</StackLayout>
		</cardView:CardView.CardViewContent>
	</cardView:CardView>

CardViewOutlineColor Example:

	<cardView:CardView CardViewHeightRequest="100" CardViewOutlineColor="Black" CardViewOutlineColorThickness="2">
		<cardView:CardView.CardViewContent>
			<StackLayout  BackgroundColor="White">
				<Label Text="I have 100 HeightRequest, and a black outline color"></Label>
			</StackLayout>
		</cardView:CardView.CardViewContent>
	</cardView:CardView>

CardViewInnerFrameOutlineColor Example:

	<cardView:CardView CardViewHeightRequest="100" CardViewOutlineColor="Black" CardViewOutlineColorThickness="2"
				   CardViewInnerFrameOutlineColor="Aqua" CardViewInnerFrameOutlineColorThickness="2">
		<cardView:CardView.CardViewContent>
			<StackLayout  BackgroundColor="White">
				<Label Text="I have 100 Height, and a black outline color, and an inline outline color Aqua"></Label>
			</StackLayout>
		</cardView:CardView.CardViewContent>
	</cardView:CardView>

CardViewHasShadow Example:

	<cardView:CardView CardViewHeightRequest="100" CardViewOutlineColor="Gray" CardViewOutlineColorThickness="2" CardViewHasShadow="True">
		<cardView:CardView.CardViewContent>
			<StackLayout  BackgroundColor="White">
				<Label Text="Gray Outline Color with Shadow"></Label>
			</StackLayout>
		</cardView:CardView.CardViewContent>
	</cardView:CardView>

IsSwipeToClearEnabled Example:

	<cardView:CardView CardViewHeightRequest="100" CardViewOutlineColor="Gray" CardViewOutlineColorThickness="2" CardViewHasShadow="True"
						   IsSwipeToClearEnabled="True">
		<cardView:CardView.CardViewContent>
			<StackLayout  BackgroundColor="White">
				<Label Text="Swipe me and I will go away"></Label>
			</StackLayout>
		</cardView:CardView.CardViewContent>
	</cardView:CardView>

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.