Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Windows Platform-Specifics : Page.ToolbarPlacement not working on Modal pages #11150

Open
mhrastegari opened this issue Jun 21, 2020 · 11 comments

Comments

@mhrastegari
Copy link
Contributor

mhrastegari commented Jun 21, 2020

Description

i set the Page.ToolbarPlacement to Bottom in a modal page and it seems it doesn't work, plus it looks like intellisense doesn't know about it.

Steps to Reproduce

  1. add windows:Page.ToolbarPlacement="Bottom" to 2nd page
  2. and navigate to the page using PushModalAsync

Expected Behavior

Page.ToolbarPlacement work on modal pages.

Basic Information

  • Version with issue: 4.7
  • Last known good version: Unknown
  • IDE: Visual Studio 16.6.2
  • UWP: TargetVersion: 10.0.18362.0 TargetMinVersion: 10.0.17763.0

Screenshots

Video_20-07-10_22-51-03_Trim

@mhrastegari mhrastegari added s/unverified New report that has yet to be verified t/bug 🐛 labels Jun 21, 2020
@pauldipietro pauldipietro added this to New in Triage Jun 21, 2020
@EmilAlipiev
Copy link
Contributor

How did you place the text horizontally?

@mhrastegari
Copy link
Contributor Author

you can easily do this with the following in the App.xaml in your UWP project

<Application
  xmlns:uwp="using:Xamarin.Forms.Platform.UWP">
    <Application.Resources>
        <ResourceDictionary>
            <Style TargetType="uwp:FormsCommandBar">
                <Setter Property="DefaultLabelPosition" Value="Right"/>
            </Style>
        </ResourceDictionary>
    </Application.Resources>
</Application>

@rmarinho
Copy link
Member

rmarinho commented Jul 3, 2020

Hi @mhrastegary77 can you please helps by providing a small sample for us.

Are these 2 issues ?
1 - Page.ToolbarPlacement to Bottom in a modal doesn't work
2 - NavBar toolbar items have a different height - using in a normal NavigationPage?

Thanks

@rmarinho rmarinho moved this from New to Needs Info in Triage Jul 3, 2020
@rmarinho rmarinho added s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. labels Jul 3, 2020
@mhrastegari
Copy link
Contributor Author

Sure @rmarinho , the Steps to Reproduce it is just resize the sample window to the minimum size and then press the toolbar add button and you'll see the defferents.
Issue11150.zip

and yes they are two issues but they both are only on UWP and for toolbar.
should i separate them?

@EmilAlipiev
Copy link
Contributor

and your test application throws another exception. when you resize to the minimum and start resizing again back to it is position it crashes. Did you see this?

@mhrastegari
Copy link
Contributor Author

No @EmilAlipiev 🤔 just one thing weird happened for me was if app opens in minimum size at start the master page will be shown in FULL mode not partial or popover that I expect.

@samhouts samhouts removed s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. labels Jul 8, 2020
@samhouts samhouts moved this from Needs Info to New in Triage Jul 8, 2020
@PureWeen
Copy link
Contributor

@mhrastegary77 does this look like a duplicate of #9042 ?

There are a few toolbar uwp height issues laying around

@PureWeen PureWeen added the s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. label Jul 10, 2020
@PureWeen PureWeen moved this from New to Needs Info in Triage Jul 10, 2020
@mhrastegari
Copy link
Contributor Author

Hi @PureWeen, yes I think that part is a duplicate! but what about the Platform specific part? That toolbar items placement in modal pages.

@PureWeen
Copy link
Contributor

@mhrastegary77 can you remove the parts about the height on this issue? And we can make it just about the platform specific?

@mhrastegari
Copy link
Contributor Author

Of course @PureWeen ❤️

@PureWeen PureWeen removed the s/unverified New report that has yet to be verified label Jul 10, 2020
@PureWeen PureWeen moved this from Needs Info to Ready For Work in Triage Jul 10, 2020
@PureWeen PureWeen removed the s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. label Jul 10, 2020
@mhrastegari
Copy link
Contributor Author

mhrastegari commented Jul 10, 2020

@EmilAlipiev it looks like you were right about that! it throws an exception in Add page(the modal page) and ONLY in debug, without debuging it's fine.

@mhrastegari mhrastegari changed the title [Bug] Windows Platform-Specifics : Page.ToolbarPlacement and ToolbarItems Height [Bug] Windows Platform-Specifics : Page.ToolbarPlacement not working on Modal pages Jul 10, 2020
@samhouts samhouts moved this from Ready For Work to Needs Estimate in Triage Jul 13, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@samhouts samhouts added this to To do in vNext+1 (5.0.0) Aug 13, 2020
@samhouts samhouts removed this from To do in vNext+1 (5.0.0) Aug 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Triage
  
Needs Estimate
Development

No branches or pull requests

6 participants