Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 30 17:25
    Build #1106 passed
  • Nov 30 17:16
    Build #1105 passed
  • Nov 30 17:09
    Build #1104 passed
  • Nov 30 17:05
    batzen commented #1081
  • Nov 30 17:05

    batzen on develop

    Adding #1081 to changelog (compare)

  • Nov 30 17:04
    batzen closed #1081
  • Nov 30 17:04

    batzen on develop

    Fix InvalidOperationException w… Merge pull request #1081 from o… (compare)

  • Nov 30 17:04
    batzen milestoned #1081
  • Nov 30 17:04
    batzen milestoned #1081
  • Nov 30 17:04
    batzen labeled #1081
  • Nov 30 17:00

    batzen on develop

    Improving contrast for CheckBox (compare)

  • Nov 30 08:57
    orrindeng edited #1081
  • Nov 30 08:57
    orrindeng edited #1081
  • Nov 30 08:37
    Build #1103 passed
  • Nov 30 08:29
    orrindeng opened #1081
  • Nov 17 14:15
    batzen labeled #1069
  • Nov 17 14:15
    batzen labeled #1080
  • Nov 17 14:15
    batzen labeled #1080
  • Nov 17 14:15
    batzen commented #1080
  • Nov 17 14:13
    batzen commented #1078
Bastian Schmidt
@batzen
You can use a button with a help icon and add it to the toolbar items. Like it's done in the showcase application https://github.com/fluentribbon/Fluent.Ribbon/blob/0af641be9133a2304c77cc3ab0eeaccdeb6858aa/Fluent.Ribbon.Showcase/TestContent.xaml#L388
Carbaholic
@Carbaholic
Thanks :)
Petr Navrátil
@ptnavratil
Please how can i run the Showcase application? Do i have to build it somehow? (My system: W10, VS Community 2019, .NET Framework 4.8, dotnet 5.0.404)
Bastian Schmidt
@batzen
@ptnavratil You can either clone the git repository and build it yourself, or download it from the CI build from https://ci.appveyor.com/project/batzen/fluent-ribbon/branch/master/artifacts or from the release page on github on https://github.com/fluentribbon/Fluent.Ribbon/releases
Eugene
@JohnyL
Hey, Bastian! Are you here? ))
Eugene
@JohnyL
How do I turn off localization?
Bastian Schmidt
@batzen
You mean how to prevent changes to the localization?
And use a fixed one?
RibbonLocalization.Current.LocalizationMap.Clear() and call RibbonLocalization.Current.Localization = new English() afterwards
Eugene
@JohnyL
Oh... That simple! Lemme try...
SHould it be in Loaded event? 🤔
Eugene
@JohnyL
Thanks! Everything works!
Bastian Schmidt
@batzen
👍
Fernando
@freviriego
hi, im trying to build and prism regionadapter for Backstage , but i cant figure out how to add or remove Buttons , BackstageTabControls, or BackstageTabItems to the backstage. There is no collection of Items in backstage. . Is it possible? t Should i use another class? hanks in advance
hanks or thanks
Bastian Schmidt
@batzen
I have zero experience with prism.
The structure is Backstage->Content = BackstageTabControl
BackstageTabControl inherits from Selector, so it's a "regular" ItemsControl
Anders Forsgren
@andersforsgren

Does anyone know how to specify more or overriding styles for a ribbon in a non-WPF app?
I can add the additional resource dictionary when I create the Application(), but that doesn't seem to be enough.

if (Application.Current == null)
    new Application();

Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary
{
    Source = new Uri("pack://application:,,,/Fluent;Component/Themes/Generic.xaml", UriKind.RelativeOrAbsolute)
});

var resourcesxaml = (ResourceDictionary)Application.LoadComponent(new Uri("/MyDll;component/Styles/MyStyles.xaml", UriKind.Relative));
Application.Current.Resources.MergedDictionaries.Add(resourcesxaml);

Example of what I'd like to do in the custom MyStyles.xaml

 <Style TargetType="Fluent:DropDownButton">
    <Setter Property="Margin" Value="1 2 3 4"/>
 </Style>

Unless I can load it on an the app level, the only way I seem to be able to make it work is to reference it in every xaml file (e.g. one per ribbon group)
but I might be missing something...

Bastian Schmidt
@batzen
It should just work the way you showed.
At least that's the same approach i am using in unittests.
If you can share a repro application i can have a look at why it doesn't work in your case.
@andersforsgren Mentioning you, just in case you don't get notified.
Anders Forsgren
@andersforsgren
Thanks Bastian, if I know I'm on the right track then I can keep digging. Just needed to know I was digging in the right spot.
Anders Forsgren
@andersforsgren

Fixed it: it was 2 separate issues 1) a build action/item type for the style xaml was incorrect in the csproj 2) When then it worked for most controls but not for a RibbonGroup I realized that was because my ribbon groups were broken out into separate file for each RibbonGroup, but that makes them user controls which are subclasses, which breaks the styling. Not sure if there is a simple way to split a large xaml (10k lines +) into files without usercontrols? I don't need any new behavior for each RibbonGroup, I just want a separate file. It feels like an oversight in WPF that "modularization" (splitting into user controls) breaks styling? I can't make the style's TargetType="Fluent:RibbbonGroupBox" also pick up all 200 sub classes of RibbonGroupBox I believe.

Thanks anyway - I'm sorted now.

Bastian Schmidt
@batzen
When you are inheriting from RibbonGroupBox and override the deafult style key.
WPF has great way to modularize components, but that also comes with a runtime cost. That's the reason why Fluent.Ribbon and also WPF itself only provide one large generic.xaml for consumers. Those files are generated from many small files during compile time.
Bastian Schmidt
@batzen
That's why I provide XAMLTools as an OSS project, so that others don't have to invest in getting combining right. One user reported window load time reductions from ~30 seconds to less than a second just by using a combined xaml file instead of many small ones.
秋水
@tomuGo
..
Qian Zhongxiang
@qianzhongxiang
image.png
Why did I add an icon for Backstage and it doesn't work?
image.png
Bastian Schmidt
@batzen
That's because Backstage inherits from RibbonControl, but it doesn't use Icon.
You have to use Header instead.
Qian Zhongxiang
@qianzhongxiang
Thanks, Bastian, I will try Header instead.
Qian Zhongxiang
@qianzhongxiang
hi, Bastian, I find if I put user control in Header, the click event will be ignored by Backstage. The BackstageAdorner opens when clicking the Backstage border, and nothing happened when clicking the icon in Header. I found the event handler code below.
image.png
This code snippet was cut from "Backstage.cs", and is it bringing the problem above?
Qian Zhongxiang
@qianzhongxiang
And how can I solve it?
Bastian Schmidt
@batzen
You can try to set IsHittestVisible to false on your control.
Qian Zhongxiang
@qianzhongxiang
Thanks, it works for me.
stefmancio
@stefmancio
hi
i'd like to style the menu that appears on right click of main ribbon
image.png
this one.. how can i reach this menu?
Bastian Schmidt
@batzen
It uses the default ContextMenu style, so overwriting that should also change the styling of that menu.
stefmancio
@stefmancio
thanks!
stefmancio
@stefmancio
sorry .. there is a way to style the "white line" that separe different groups?
image.png
the vertical line before the icon save... i'd like to chabge color to dark...
Bastian Schmidt
@batzen
image.png
I have no clue why it's so bright in your screenshot.
The default in the dark theme should look like this:
The resource key for the separator in groups is Fluent.Ribbon.Brushes.GroupSeparator.Background
and is of type Brush