Comments (5)
I thought I would add my voice to the titlebar size. If you are going to add a menu and/or buttons to the titlebar you actually need the height to remain the same when maxmized so you get a nice aesthetic look, otherwise it looks cramped. A property to control this would be great.
(BTW great product and is there an online community?).
from adonis-ui.
@rabbit59 Thanks for sharing your opinion.
Seems like this would be beneficial for multiple people now, so I will prioritize this when working on the next update.
from adonis-ui.
It seems it can be referred as suggestion rather than bug,
from adonis-ui.
As you already mentioned, I wouldn't call it a bug because it behaves just like expected.
AdonisWindow
tries to mimic the default native window of Windows. Its title bar shrinks a little because so it does for native applications like the Windows Explorer or Power Shell or even any WPF app without styling.
VS Code behaves differently because it ueses its own implementation. But in my opinion this should not be the default for a UI library because VS Code is just a single app like any other and not some kind of standard.
Adding an option to keep the height might be a good idea though.
In the meantime, you can achive this by performing the following steps:
- Copy the
WindowButton.xaml
file to your application - Remove the following
DataTrigger
from your copy<DataTrigger Binding="{Binding WindowState, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}" Value="Maximized"> <Setter Property="Height" Value="22"/> </DataTrigger>
- Include the file below the resources of Adonis UI, e.g.:
<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/AdonisUI;component/ColorSchemes/Light.xaml"/> <ResourceDictionary Source="pack://application:,,,/AdonisUI.ClassicTheme;component/Resources.xaml"/> <ResourceDictionary Source="../WindowButton.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources>
Hope this helps :)
from adonis-ui.
Thanks for the response, it helps a lot.
from adonis-ui.
Related Issues (20)
- Ribbon control
- RippleHost causing MemoryLeaks HOT 1
- About the select page
- Change accent color at runtime
- center window don't work HOT 1
- MessageBox result closes application HOT 3
- Remove red border around button content when using data validation HOT 4
- AdonisWindow // Hide all buttons property
- Text wrapping for watermark
- AdonisWindow not getting garbage collected HOT 2
- Adonis UI alternative for Avalonia? HOT 1
- Questions HOT 2
- Extend style of control styled with Classic Theme? (.NET 7) HOT 1
- Setting ResizeMode "CanResizeWithGrip" on the window removes Adonis title bar
- Resource not found; ResourceKey='TargetType=AdonisUI.Brushes ID=Layer0BorderBrush'
- visual studio 2022 xaml designer not showing adonisControls:AdonisWindow HOT 2
- Cannot add AdonisUI Custom Components from Toolbox or it's not seen xaml code?
- Add Expander control style HOT 1
- [Support request] AdonisUI styling not applying to codebehind-generated control? HOT 1
- Memory leak to AdonisWindow from HandleTitleBarActualHeightChanged
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 adonis-ui.