Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Roundborder around Label

$
0
0

Hello, I'm working on an app where we have to display the current open tasks. Here we have to show a counter for how many tasks are open.
I used a label which is filled with MVVM in the viewmodel. The thing is, the counter can be filled. But as shown I want a round border around my label.

    <DataTemplate x:Key="ObjectInformationTemplate">
                    <ViewCell Height="100">
                        <Grid Padding="10" ColumnSpacing="5" RowSpacing="0" HorizontalOptions="FillAndExpand" VerticalOptions="CenterAndExpand">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="5"></RowDefinition>
                                <RowDefinition Height="20"></RowDefinition>
                                <RowDefinition Height="30"></RowDefinition>
                                <RowDefinition Height="20"></RowDefinition>
                                <RowDefinition Height="15"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="1*"></ColumnDefinition>
                                <ColumnDefinition Width="2*"></ColumnDefinition>
                                <ColumnDefinition Width="1*"></ColumnDefinition>
                                <ColumnDefinition Width="1*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Image VerticalOptions="CenterAndExpand"  Width="{Binding ActualHeight}"   Grid.Row="1" Grid.RowSpan="3" Grid.Column="0" Source="{Binding Icon}"/>
                            <Label Grid.Row="2" Grid.Column="1" Text="{Binding Name}" TextColor="Blue" FontSize="Large" LineBreakMode="TailTruncation"></Label>
                            <Label Grid.Row="3" Grid.Column="1" Text="{Binding Details}" TextColor="Gray" LineBreakMode="TailTruncation"></Label>
                            **<Label Grid.Row="2" Grid.Column="2" Text="{Binding Amount}" Font="Small" TextColor="Red"></Label>**
                            <Image Grid.Row="2" Grid.Column="3" Source="{Binding IconRight}"/>
                        </Grid>
                    </ViewCell>
                </DataTemplate>

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>