GithubHelp home page GithubHelp logo

Comments (8)

YuliKl avatar YuliKl commented on May 22, 2024 1

Broadening this feature request slightly. We should provide new ThemeResources for both the TopPadding on NavigationView.Content and HeaderContent margin on NavigationView.Header.

from microsoft-ui-xaml.

YuliKl avatar YuliKl commented on May 22, 2024

@jamers99 Thank you for the feature request, I agree with you that the top of NavigationView lacks easy customization opportunities. We're planning to add an overwritable ThemeResource to address this. A ThemeResource will allow us to keep the current default padding and also let app developers choose custom values, including 0.

This work was tracked by an internal bug (filed before we went open source). That bug is now resolved and we'll track the request here on GitHub.

from microsoft-ui-xaml.

mdtauk avatar mdtauk commented on May 22, 2024

Maybe the platform could provide a TitlebarHeight which can be consumed in XAML without having to query the OccludedRect - and this value updates on DPI changes?

This value could then be used by the NavigationView top padding when Titlebar is extended, and overridden by a non empty/null value in the app resources?

from microsoft-ui-xaml.

YuliKl avatar YuliKl commented on May 22, 2024

Very brief spec for this feature request is now available here: microsoft/microsoft-ui-xaml-specs#8

from microsoft-ui-xaml.

chrisglein avatar chrisglein commented on May 22, 2024

Modest starter for whoever picks up this work: https://github.com/microsoft/microsoft-ui-xaml/tree/user/cglein/navViewTopPadding
(just adds the property, doesn't consume it)

from microsoft-ui-xaml.

knightmeister avatar knightmeister commented on May 22, 2024

Hi guys, is this still targeting 2.2?

from microsoft-ui-xaml.

YuliKl avatar YuliKl commented on May 22, 2024

Hi guys, is this still targeting 2.2?

While @RBrid would know with more certainty, I believe we are still targeting WinUI 2.2

from microsoft-ui-xaml.

YuliKl avatar YuliKl commented on May 22, 2024

Reopening the issue to make sure I update documentation. @RBrid, can you double-check that the Release Checklist is accurate?

from microsoft-ui-xaml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.