VincentH-Net / CSharpForMarkup

Concise, declarative C# UI markup for .NET browser / native UI frameworks
MIT License
748 stars 43 forks source link

How to use RelativeLayout? #9

Closed PatrickRyder closed 4 years ago

PatrickRyder commented 4 years ago

I need to use a RelativeLayout as a child of another screen element but I am struggling to see how I can do this in a declarative way, as the constraint is passed as a parameter to its Add() method.

Maybe a place for another helper, sort-of similar to the ones that allow enum names to be used for rows and columns in the Grid control?

VincentH-Net commented 4 years ago

Hi Patrick, yes I plan to add support for relative layout in the 'part 2' PR I will make in XamarinForms soon.

VincentH-Net commented 4 years ago

Hi Patrick; full support for RelativeLayout was included in CSharpForMarkup Part 2 PR

If you can't wait for it to be merged, you can easily take the source files of the PR and add them to your app, for the time being.

PatrickRyder commented 4 years ago

Hi, Vincent,

That's excellent!

I'll wait for the merge, as I'm not doing anything with that bit of code right now.


From: Vincent Hoogendoorn notifications@github.com Sent: 18 August 2020 11:45 To: VincentH-Net/CSharpForMarkup CSharpForMarkup@noreply.github.com Cc: PatrickRyder patrickryder@outlook.com; Author author@noreply.github.com Subject: Re: [VincentH-Net/CSharpForMarkup] How to use RelativeLayout? (#9)

Hi Patrick; full support for RelativeLayout was included in CSharpForMarkup Part 2 PRhttps://github.com/xamarin/Xamarin.Forms/pull/11428

If you can't wait for it to be merged, you can easily take the source files of the PR and add them to your app, for the time being.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/VincentH-Net/CSharpForMarkup/issues/9#issuecomment-675405519, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADHGKMYOHJRVJWQIMJXJHNTSBJLT5ANCNFSM4K5MIX5A.