Giter Site home page Giter Site logo

syncfusionexamples / rounded-corners-for-xamarin.forms-listview Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 1.0 520 KB

Sample showcases how to set rounded corners (corner radius) for xamarin.forms listview items.

C# 100.00%
xamarin listview corner corner-radius rounded-corners sflistview xamarin-listview xamarin-forms xamarin-android xamarin-ios

rounded-corners-for-xamarin.forms-listview's Introduction

Rounded corner in ListViewItem

The SfListView allows customizing the item appearance like rounded corner by using the Frame layout in the ItemTemplate property. By defining the CornerRadius property of frame layout, you can perform the rounded corner for items.

You can also refer to the following article. https://www.syncfusion.com/kb/8493/how-to-achieve-rounded-corner-for-items-in-sflistview

<StackLayout Spacing="0" Padding="0,5,0,0" BackgroundColor="LightGray">
    <sync:SfListView x:Name="listView"
                    AutoFitMode="Height"
                    ItemSpacing="5,0,5,10" 
                    IsScrollBarVisible="False"
                    ItemsSource="{Binding BookInfo}">
        <sync:SfListView.ItemTemplate>
            <DataTemplate>
                <Frame Padding="5,5,5,5" CornerRadius="7" HasShadow="False"  BackgroundColor="White">
                    <Grid>
                        ...
                    </Grid>
                </Frame>
            </DataTemplate>
        </sync:SfListView.ItemTemplate>
    </sync:SfListView>
</StackLayout>

To know more about ListView appearance, please refer our documentation here

rounded-corners-for-xamarin.forms-listview's People

Contributors

gnanapriyan avatar gnanapriyanamasivayam avatar jayaleshwari avatar lakshminatarajan avatar sarubala20 avatar syncfusionbuild avatar syncsiva avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

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.