Hello My Xamarin Friends,
Today I am creating another new post in which I am going to tell you to customize the button, so let's start....
Introduction:-
Label is a graphical control that is used to display text on the form or page, usually label to determine the entry or other widget.
When building any application, a label is the general control which is used most often.
"A Label is something describe a person or thing"
For Exa. A label is a father introducing his sons as "the smart one".
So we will first create a class whose name "CustomLabel" and then we will write a code in "C #"
Now we can write some code in android project for set the Radius and Background Color....
Then we will create in Ios Project Also
Now again please make sure to add view reference.....
xmlns:local="clr-namespace:CustomLabelApp"
then write xaml code in main page.
TADDAAAA!
You should have your CustomLabel working!!
Features of CustomLabel controls:-
Today I am creating another new post in which I am going to tell you to customize the button, so let's start....
Introduction:-
Label is a graphical control that is used to display text on the form or page, usually label to determine the entry or other widget.
When building any application, a label is the general control which is used most often.
"A Label is something describe a person or thing"
For Exa. A label is a father introducing his sons as "the smart one".
So we will first create a class whose name "CustomLabel" and then we will write a code in "C #"
Now we can write some code in android project for set the Radius and Background Color....
Then we will create in Ios Project Also
Now again please make sure to add view reference.....
xmlns:local="clr-namespace:CustomLabelApp"
then write xaml code in main page.
TADDAAAA!
You should have your CustomLabel working!!
Features of CustomLabel controls:-
- Custom Curved Background Color Property=(CurvedBackgroundColor="#24C4FF")
- Custom Curved Corner Radius Property=(CurvedCornerRadius="4")
You want to full source code Click Here
If you want to watch this video Click Here
Public Properties of Label controls:-
Public Properties of Label controls:-
- Font Font. =(Font="13")
- FontAttributes FontAttributes. =(FontAttributes ="Bold")
- FontFamily String. =(FontFamily ="Arial")
- FontSize Double. =(FontSize ="Default")
- HorizontalTextAlignment TextAlignment.=(HorizontalTextAlignment ="Start")
- LineBreakMode LineBreakMode =(LineBreakMode ="CharacterWrap")
- Text String. =(Text ="xamarin buddy")
- TextColor Color. =(TextColor ="Azure")
No comments:
Post a Comment