Comments (10)
The differences between the two modes may be the margin、padding and icon, but the behaviour of some controls such as SplitButton, may change.
You can add two ResourceDictionary file:
to load different xaml files.
from fluent.ribbon.
Hi there
Is there a way to increase the tab item sizes?
Thanx
Hein
from fluent.ribbon.
Please ask your question as a separate issue.
from fluent.ribbon.
If no one is willing to contribute this feature, which has to work in all themes, i will close this issue in about two weeks.
from fluent.ribbon.
@batzen:
Why do you want to close Issues that nobody seems to have interest in (for the moment at least)?
I noticed that you even add deadlines (like "This issue will be closed in case no one shows interest till end of march.")..
I am really surprised by this behaviour. If you close valid issues, you make them less visible for the future developers who will want to help you and join your project later.
Many projects keep issues "open" as long as they haven't been fixed:
https://github.com/OpenRA/OpenRA/issues
https://github.com/mono/MonoGame/issues
https://github.com/bountysource/frontend/issues
...
from fluent.ribbon.
@X-A-N-A-X
I want to close them because the original reporter does not respond anymore or it's a requested feature which no one seems to be interested in.
But i reconsidered that and won't mark them for closing anymore.
from fluent.ribbon.
I think i have some time to spend on this from may on.
Do you think #298 can be related to this?
from fluent.ribbon.
@maurosampietro That's really, kind of, related to #298.
from fluent.ribbon.
I really need this feature in my application so I did some research on touch mode. What i have done here already fits my needs very well but it is not a complete general solution and it is just meant to be discussed as a starting point.
The following applies to ToggleButton, Button, SplitButton, ColorGallery and DropDownButton only, all used in LargeIcon mode since the other modes are not really useful here to me (I use resistive imprecise monitors on which small controls can't do the job).
In touch mode we need the controls to be more distant from one another or larger.
I started investigating the distance among controls but i immediately understood it was not enough to provide a good user experience. So I investigated custom control sizes also because it is requested in #298.
In Fluent ribbon, controls try to use less space as possible: this feature do not fit in touch mode so the first thing is to provide the possibility to set the Width of a control. This can be achieved very easily this way and in a similar way on most (if not all) controls:
<ControlTemplate x:Key="RibbonToggleButtonControlTemplate"
TargetType="{x:Type Fluent:ToggleButton}">
<Border x:Name="border"
Width="{TemplateBinding Width}" //add this
MinWidth="{TemplateBinding MinWidth}" //add this
...
This way all controls can be sized as we wish (can it fix #298?). I size them all to the same size in order to provide a uniform way of interaction.
The current rule to use less space as possible can be achived by setting Width=Auto. So we don't lose that feature.
At the time I switch between TouchMode and normal/mouse mode by the means on a property in my viewmodel (but this should be moved inside Fluent.Ribbon I think) this way:
<Style TargetType="{x:Type Fluent:ToggleButton}" BasedOn="{StaticResource {x:Type Fluent:ToggleButton}}">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=TouchMode}" Value="True">
<Setter Property="MinWidth" Value="64"/>
</DataTrigger>
</Style.Triggers>
<Setter Property="Width" Value="Auto"/>
</Style>
Now that we can change the width of our control we want to be able to display the TwoLineLabel on a single line. On particular controls that can show a glyph, if we choose to display all the text on a single line, we want to choose if the glyph has to be shown on the same line or on the second one (centered). In my opinion with custom widths LargeIcon controls the glyph should be on the second line and centered by default as it looks very good. Here some help is wanted but i was able to do the most with wpf inspector.
@batzen What about small icons? Do you think they are really needed in TouchMode?
What are your feelings about this? How much is uncovered?
from fluent.ribbon.
Having regard to the utterly lack of interest in this point and other related points (#286, #298) i won't spend time working on them anymore since what i did in the first place already fits my needs perfectly.
from fluent.ribbon.
Related Issues (20)
- InRibbonGallery Reduce not persisted. HOT 2
- RibbonBackButton - Localization Mix HOT 6
- Maximum dropdown height is not DPI aware HOT 2
- Not enough quota when using Ribbon inside BusyIndicator (or just using IsEnabled = false in some cases) HOT 1
- ScreenTip is not DPI aware HOT 6
- The first item is highlighted when DropDown is opened by mouse interaction in DropDownButton and SplitButton HOT 6
- BackstageTabControl BackButton no animation when mouse hover HOT 1
- add new ribbon style HOT 1
- Ribbon scrolling on touch screen HOT 5
- RibbonComboBox cannot be customized based on the original RibbonComboBox style
- Padding and BorderBrush of the gallery control do not work
- MenuItems, having a submenu, do not stay highlighted when MenuItem from the submenu is highlighted HOT 1
- LauncherIcon not rendered correctly and items in QAT can be removed from QAT in it's popup HOT 1
- Button Icon HOT 3
- Text not disapearing HOT 2
- StartScreen is opening the first time only HOT 1
- Popup of DropDownButton/SplitButton has unwanted MinHeight HOT 4
- fluent.ribbon is missing NuGet package README file
- wpf calendar size issu in dropdown button HOT 2
- Port for Avalonia HOT 1
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 fluent.ribbon.