damirarh / damirscorner-utterances

utteranc.es comments for https://damirscorner.com
0 stars 0 forks source link

/blog/posts/20201030-LoginFlowInXamarinFormsShell.html #110

Open damirarh opened 1 year ago

damirarh commented 1 year ago

Imported

URL: https://www.damirscorner.com/blog/posts/20201030-LoginFlowInXamarinFormsShell.html

damirarh commented 1 year ago

Imported comment written by Viktor Márk Tóth on 2021-01-05T18:47:02

Hi Damir!

First of all, thank you for your awesome articel!
I recently try to implement this login mechanism into my applciation and I faced with maybe an issue. I downloaded your ShellLogin project from github as a template for my code.Where I found the same behaviur.

After pressing Login button on Login page and opening the Flyout menu from Home page, there is an empty Entry right bellow the FlyoutHeader and above the Home flyoutitem. It is clickable and if I click on it, the app returns to Login page.
(If you give a Title to login page, then the Title will be displayed in the empty entry)

Is it an issue or it was just not handled in the sample ShellLogin application?
I tried to fix it on my own, but I could not find the way to remove the Login page from Flyout list.

damirarh commented 1 year ago

Imported comment written by Viktor Márk Tóth on 2021-01-05T22:48:05

Issue was I used ShellItem instead of FlyoutItem.
This solved my issue:
<flyoutitem isvisible="False" route="applicationstart">
<shellcontent style="{StaticResource Shell_AppContentPageStyle}" shell.flyoutbehavior="Disabled" contenttemplate="{DataTemplate local:ApplicationStartPage}"/>
</flyoutitem>

damirarh commented 1 year ago

Imported comment written by Muhammad Nadeem on 2021-08-04T15:42:32

Very nice article

damirarh commented 1 year ago

Imported comment written by M Moore on 2022-06-06T17:38:54

Well done

damirarh commented 1 year ago

Imported comment written by John on 2022-09-11T02:12:47

Perhaps this is out of date; I'm new to Maui. First, I'm unsure where to put some of the code above, it's not very clear, so I did my best with educated guesses. The FlyoutItem for StartupPage doesn't execute any methods at all unless it's made visible, maybe that's something new? I had to make it IsVisible="True" to get it to work.

damirarh commented 1 year ago

Imported comment written by Damir Arh on 2022-09-11T07:39:01

The post is about Xamarin.Forms, not .NET MAUI which didn't even
exist when the post was written. There's a link to a GitHub repository
with a working sample project towards the end of the post. This should
help you clear any doubts about where exactly to place the code.