Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 04 21:09

    dependabot[bot] on nuget

    (compare)

  • Aug 04 21:09
    dependabot[bot] closed #955
  • Aug 04 21:09
    dependabot[bot] commented #955
  • Aug 04 21:09
    dependabot[bot] labeled #964
  • Aug 04 21:09

    dependabot[bot] on nuget

    Bump Nuke.Common from 5.1.4 to … (compare)

  • Aug 04 21:09
    dependabot[bot] opened #964
  • Jul 21 21:10
    dependabot[bot] labeled #963
  • Jul 21 21:10

    dependabot[bot] on nuget

    Bump JetBrains.Annotations from… (compare)

  • Jul 21 21:10
    dependabot[bot] opened #963
  • Jul 21 15:12
    Splitwirez opened #962
  • Jul 19 14:40
    Build #873 passed
  • Jul 19 14:34
    nishy2000 synchronize #924
  • Jul 19 13:41
    nishy2000 synchronize #924
  • Jul 19 05:46
    batzen commented #924
  • Jul 15 13:38
    PJonHar commented #961
  • Jul 13 17:46
    Build #872 passed
  • Jul 13 17:41

    batzen on develop

    Moving minimize button to the r… (compare)

  • Jul 13 17:09
    Build #871 passed
  • Jul 13 17:05
    batzen commented #961
  • Jul 13 17:04
    batzen closed #961
Offline
@Offline-R503B
@batzen I opened the issues I did notice we use the orchestra.shell version idk if that changes much ?
I found another small "mightbe" bug during dev I also reported that :)
Bastian Schmidt
@batzen
@sodanakin Will have a look at those. Thanks for reporting them.
Offline
@Offline-R503B
@batzen No problem, Sorry it took me a while work being crazy lately :|
MCCoolMoDAue
@MCCoolMoDAue
Hello, can anyone tell me if I can bind the menu of a SplitButton? And if so, how?
The Items property is readonly. We've used some ugly code behind, but that is causing problems
MCCoolMoDAue
@MCCoolMoDAue
anyone there?
Bastian Schmidt
@batzen
@MCCoolMoDAue SplitButton inherits from DropDownButton which inherits from ItemsControl, so you should be able to just use ItemsSource as with any other ItemsControl. Have you tried that?
MCCoolMoDAue
@MCCoolMoDAue
@batzen Hi, I'll try that, do I add the fluent.MenuItem objects to the list I bind to it?
MCCoolMoDAue
@MCCoolMoDAue
@batzen this works, I a bit concerned though. Isn't a MenuItem technically a view object? currently I am populating the list of drop down menu items in the view model (naturally).
Bastian Schmidt
@batzen
@MCCoolMoDAue You can use the splitbutton like any other ItemsControl in WPF. The default ItemContainer is MenuItem, so if you use ItemsSource and bind it to some list on your view model you have to set the ItemContainerStyle, instead of ItemTemplate, for your items to not run into the common issue of nesting a MenuItem inside a MenuItem.
mspd
@mspd
Hi, i try to align a Button in the Backstage at the botton, is this even possible?
Bastian Schmidt
@batzen
@mspd It's not possible out of the box. But should be quite easy with a custom template/style. i guess, as word has this by default nowadays i'll have to add it too.
Offline
@Offline-R503B
@batzen Hey :D I am back with yet another question. I would like to implement dragging the start screen. The conventional method doesn't work as their is no DragMove
Offline
@Offline-R503B
Disregard this question I found a way by locating the shell :D
Offline
@Offline-R503B
Is there a way to add an item left of the File item in the ribbontab?
Bastian Schmidt
@batzen
Glad you found a solution. It should be possible to place anything inside the menu, but there is no way to show ribbon tabs there, if that's what you are looking to do.
And with menu i meanRibbon.Menu.
Offline
@Offline-R503B
image.png
What I meant is that when you have a backstage set. It will add the "File tab"
What I meant to ask is if I can add a tab on the left side of that tab. As it seems the "Backstage tab header (Thus file in this case)" is always the first in the row
Hope that makes a bit more sense
and to clarify even more this is where i would like to put a custom tab/fluent button
image.png
Offline
@Offline-R503B
Basically trying to add a home button there :D
Bastian Schmidt
@batzen
Adding tbas there is not really possible. What's your use case for that?
Offline
@Offline-R503B
Well trying to keep navigation back to the start screen as simple and clear as possible
So i wanted to implement a button there. Altho i am already exploring another option (I converted the fluentribbon orchestra to be some frankenstein with mahapps (yes both together ;p ) )
Now trying to make their left window commands work ;p
Bastian Schmidt
@batzen
You can place a Grid inside Ribbon.Menu to add such a button.
Offline
@Offline-R503B
Hmm i tried that but had odd results, however my previous statement works now :) So we can keep using the standard layout
Tu Phan
@TuAPhan
hello! how do I add tabs to the startscreen to make it look similar to the backstage?
Bastian Schmidt
@batzen
@TuAPhan you could just use a BackstageTabControl inside your StartScreen.
Tu Phan
@TuAPhan
image.png
Is there a way to enlarge the icons in the Fluent:Button and the Fluent:BackstageTabItem without the icon being cut off?
image.png
even when I increase the size of the button, the icon still gets clipped
image.png
Bastian Schmidt
@batzen
@TuAPhan Sorry for my very late response. Could you create an issue and attach a small repro for it on github? I am currently working on icon size improvements and this might also be a case i could improve during that.
Philipp B. Koch
@philipp-koch
Hello :-) This has probably been asked already somewhere, but I couldn't really find a good starting point to tackle this, so: I have set up my ribbon (using Fluent.Ribbon 8.0.3) and some delegate commands like so: <Fluent:Button Header="Speichern" Command="{Binding Cmd_SaveSettings}">, where Cmd_SaveSettings is a RelayCommand in my ViewModel class. This works fine. The RelayCommand is provided a Func<bool> canExecute which handles if the RelayCommand is currenty available or not - this also works fine. My question is: How can I bind a ribbon button's isEnabled state to canExecute (i.e. disable it if the command is not available)? I found fluentribbon/Fluent.Ribbon#745 which seems to target exactly what I am looking for, but unfortunately I don't understand what to make of it... Any pointers towards how I can tackle this would be greatly appreciated! :-)
Bastian Schmidt
@batzen
You have to call NotifyCanExecuteChanged on your command to send a notification about your changed command state. The issue you mentioned talks about SplitButton and a special use case on it in regards to the secondary actions it might contain.
Philipp B. Koch
@philipp-koch
Thank you, @batzen, for your quick reply! That's an excellent starting point for my further investigation. :-)
Splitwirez
@Splitwirez
image.png
@batzen ^ You might want to see what Windows 11's snap layouts mean for your RibbonWindow.
From my experimentation, WM_NCHITTEST seems to be involved. I've yet to figure out a fully-working way to respond to the message appropriately while keeping the WPF button itself working, but I suspect it could be done, one way or another...even if I haven't pulled it off just yet...
Bastian Schmidt
@batzen
@Splitwirez I already asked on Twitter and in the WPF repo if there is a dedicated API to show the menu. There does not seem to be one and your assumption about hittest is right. Posted a gif in the WPF repo of what happens when responding with the correct hittest result.
Splitwirez
@Splitwirez
Yeah that's what I ran into as well
Splitwirez
@Splitwirez
@batzen A while back, you mentioned you'd wanted a more..."contemporary" icon for Fluent Ribbon, and I ended up making one for you. I was just going through some old files, and happened to come across that proposed new icon. Given it's still not in use, that left me wondering...did I forget to send it to you or something? Or did you just decide you weren't fond of what I'd produced? (either is fine by me, I just want to know if I should send it your way now or something, lol)
Bastian Schmidt
@batzen
I don't remember either 🤣 Could you send it or better attach it to an issue on GitHub? That way i does not get lost.
Splitwirez
@Splitwirez
@batzen I was tempted to suggest doing exactly that myself, lol. In any case...done and done: fluentribbon/Fluent.Ribbon#962