Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Geoxion9016yWhy do you hate XAML?
I've found it to be the best UI making language so far.
Have you looked into binding, it's one of the most amazing things 😉 -
@ geoxion.
It goes from xaml to c# to Java for Android . You will need to define your button click event in C# anyway. So why not just use C# you actually have more control over the design and function and it is a more elegant solution and faster if you're very familiar with C#.
Bam! Just like that clean neat and all in one place.
public CodeButtonClickPage ()
{ Title = "Code Button Click"; Label label = new Label { Text = "Click the Button below", FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)), VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.Center }; Button button = new Button { Text = "Click to Rotate Text!", VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.Center }; button.Clicked += async (sender, args) => await label.RelRotateTo(360, 1000); Content = new StackLayout { Children = { label, button } }; -
@Vake93 sorry it was a quick copy paste job. Text wrapping is how Dev rant takes text in so everything is slopped together if you were to copy it from there and paste it into an IDE it would probably look more appealing to you. Considering I'm not getting paid to put code into Dev rant I didn't take the time to put the nice spaces in to make it look pretty.
😔
When you know your product sucks and even you won't support it. Too bad for those two windows phone users left in the world.
Working on a Project. Forced to use xaml I hate xaml. C# is so much more efficient/ easier. Now at least I have an excuse
. 😤
rant