COME308 Mobile Programing
Prepared By: Dr. Ihab ELAFF
Views does not Looks good !!
Properties to Change Text Style:
• Size: FontSize="14"
• Color: TextColor="White"
• BackgroundColor: BackgroundColor=“Red“
• Font Style: FontAttributes=“Bold“
FontAttributes="Bold Italic"
• Font: … ???? Later (different way for each
platform)
Views still does not Looks good !!
Putting the Label and the Entry at the same
line using Nested Stack Layout :
<StackLayout Orientation="Horizontal">
<Label Text="X"
FontSize="20"
TextColor="White"
BackgroundColor="Maroon"
FontAttributes="Bold Italic"/>
<Entry x:Name="XX"/>
</StackLayout>
Label and Entry are small in Width
X needs to be aligned in the center
Need some margins on the application
boarders
Entry font size needs to be larger
After Before
Adjust Button Size
Button Width is not changing !!.
Button Width Horizontal Options is “Fill”
Apply Same format for Y and Result
Merge X and Y on the same line
Alignment to center
With TryParse converts wrong entry to Zero
• To add Ascending and Descending
ordering, it is required Radio Button
• Another simple way is to use
CheckBox
It would be difficult to convert checkboxes
into radio buttons using C# !!!
What is the solution ??
• Tools >> Nuget Package Manager
>> Manage Nuget Packages for
Solution...
• Search for : Xamarin.Forms.InputKit
xmlns:input="clr-namespace:Plugin.InputKit.Shared.Controls;assembly=Plugin.InputKit"