Comments (10)
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.
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.
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.
There is no ETA for this because its a non-trivial thing to restyle/turn into a control.
from mahapps.metro.
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.
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.
As nobody has objected, I'm closing this as done.
from mahapps.metro.
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.
@xautopilot it's an todo on my issue list
from mahapps.metro.
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)
- Missing PART in the datagrid HOT 6
- Flyout overlapping to Menubar within the animation HOT 2
- Xaml warning: Resource '{x:Type MahApps.Metro.Controls.MetroWindow}' is not found HOT 4
- MultiSelectionComboBox / MultiSelectorHelper.SelectedItems one step behind
- The HamburgerMenu control uses the HamburgerMenuListBox control to show the menu items. You can use a DataTemplate with an Expander control with an HamburgerMenuListBox control as the Child to show submenu items:
- Add Filter Buttons in DataGridColumn Headers HOT 1
- MultiSelectorHelper.SelectedItems throws Exception when an Item is selected from a ListBox which is nested inside a ListView
- RoutedEventArgs is empty
- mahapps.metro is missing NuGet package README file
- Detected package version outside of dependency constraint: MahApps.Metro 2.4.10 requires ControlzEx (>= 4.4.0 && < 6.0.0) but version ControlzEx 6.0.0 was resolved. HOT 1
- Colon between Hour/Minute in TimePicker when PickerVisibility is set to Minute,Second
- Bindings are broken in SplitView
- The value of the ValueProperty of NumericUpDown gets lost during navigation
- 1NNAP4ZYwn63KHZXG5vPaP26W3ixdFSw45 #95943
- RichTextBox and Themes HOT 3
- MetroWindow : Unloaded event HOT 1
- Replace + and - for arrows in NumericUpDown HOT 3
- Style NumericUpDown Exception HOT 3
- MetroWindow Background HOT 2
- The invocation of the constructor on type 'MahApps.Metro.Controls.MetroWindow' that matches the specified binding constraints threw an exception HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mahapps.metro.