Coder Social home page Coder Social logo

Title Bar links about mahapps.metro HOT 10 CLOSED

zekecoma avatar zekecoma commented on May 13, 2024
Title Bar links

from mahapps.metro.

Comments (10)

 avatar commented on May 13, 2024

What sort of customisation would you like? It won't be possible to customise those buttons for the MetroWindow, but if you're using WindowCommands by itself, we could do something like:

<WindowCommands> <Button Content="Settings"> <Button Content="About"> </WindowCommands>

Should the separator be 'forced' or require you to put that in as well?

from mahapps.metro.

zekecoma avatar zekecoma commented on May 13, 2024

I think it should be forced as that is how it's done in Zune, but then again there aren't no guidelines for the Zune theme.

from mahapps.metro.

schwarz avatar schwarz commented on May 13, 2024

I support this feature. I'd like to display an image button with a cog for settings.
Do you have an ETA for this?

from mahapps.metro.

 avatar commented on May 13, 2024

There is no ETA for this because its a non-trivial thing to restyle/turn into a control.

from mahapps.metro.

 avatar commented on May 13, 2024

Some progress has been made towards this.

Separators, it turns out, are a heck of a lot more work than one would think. The xaml to generate this from the "consumption" side (ie, what you stick in the client), current looks like this:

<Controls:WindowCommand>
    <Button Content="1" />
    <Button Content="settings" />
    <Button>
        <StackPanel Orientation="Horizontal">
        <Rectangle Width="20"
                    Height="20">
            <Rectangle.Fill>
                <VisualBrush Stretch="Fill"
                            Visual="{StaticResource appbar_cupcake}" />
            </Rectangle.Fill>
        </Rectangle>
            <TextBlock Text="  deploy cupcake" />
        </StackPanel>
    </Button>
</Controls:WindowCommand>

from mahapps.metro.

 avatar commented on May 13, 2024

I've checked the progress in for this https://github.com/MahApps/MahApps.Metro/blob/master/MetroDemo/MainWindow.xaml On a MetroWindow, you can access WindowCommands now, by doing this:

  <Controls:MetroWindow.WindowCommands>
      <Controls:WindowCommands>
          <Button Content="wat" />
      </Controls:WindowCommands>
  </Controls:MetroWindow.WindowCommands>

Which will produce this:

This can also be used in a similar fashion for regular/hand crafted windows. Notice that while MetroWindow.ShowTitleBar="True", the colour of these is white. Once ShowTitleBar is disabled, it adapts based on the light or dark theme.

If somebody else could check this out and confirm its the behaviour you're seeking, that'd be a great help/step towards 0.7 being released.

from mahapps.metro.

 avatar commented on May 13, 2024

As nobody has objected, I'm closing this as done.

from mahapps.metro.

xautopilot avatar xautopilot commented on May 13, 2024

How can I position the group of WindowCommands to left side of the title bar ? Just where the window title is located. Below is my stackoverflow question reference:
http://stackoverflow.com/questions/21072187/replace-window-title-with-menu-for-mahapps-metro-borderless-window

from mahapps.metro.

punker76 avatar punker76 commented on May 13, 2024

@xautopilot it's an todo on my issue list

from mahapps.metro.

xautopilot avatar xautopilot commented on May 13, 2024

I'm really sorry then, as i am new to git. sorry again and please accept my apology.
can I ask for a favor ?
where should I post this to get help?

from mahapps.metro.

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.