Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS-like transitions #302

Closed
LukeTOBrien opened this issue Jan 20, 2021 · 1 comment
Closed

CSS-like transitions #302

LukeTOBrien opened this issue Jan 20, 2021 · 1 comment

Comments

@LukeTOBrien
Copy link

LukeTOBrien commented Jan 20, 2021

Hello there,

I am interested in building an app for MAUI and I have recently started creating my new project in WPF, assuming that MAUI will too be XAML I can port my app when it comes to it.
I come from a mainly web background and although I love XAML I have not had a chance to do any.

I have a grid layout with two row definitions with their height bound to the State property of an internal object (using an IValueConverter).
So when in Hidden state the rows adjust their height.
In CSS I could do transition: height 2s but in XAML I have to create a Storyboard and there is no easy way to animate RowDefinition, I have come across this SO answer.

So I suggest perhaps:

<Grid.Transitions>
   <Transition x:Name="Slide" PropertyName="Height" Duration="2s"/>
<Grid.Transitions>

Or in my binding case:

<RowDefinition Height="{Binding State, Converter={StaticResource StateToGridLength}, Transition="Slide"}" />

I just wanted to put this down while it's in my head.
What do you think?

Is MAUI even going to be XAML? I assume it is and will it have the same features as exist in WPF?
I understand Xamarin.Forms is slightly different to WPF.

@mrwcjoughin
Copy link

mrwcjoughin commented Jan 20, 2021 via email

@LukeTOBrien LukeTOBrien changed the title CSS style transitions CSS-like transitions Jan 24, 2021
@PureWeen PureWeen closed this as completed Feb 1, 2021
@dotnet dotnet locked and limited conversation to collaborators Feb 1, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants