Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fluent:Ribbon Issues #356

Closed
henrymcbean opened this issue Oct 3, 2016 · 6 comments
Closed

Fluent:Ribbon Issues #356

henrymcbean opened this issue Oct 3, 2016 · 6 comments

Comments

@henrymcbean
Copy link

  1. Trying to set the buttons size (fluent:ToggleButton) in the RibbonGroupBox to change icon when the application change size not sure what to do. I tried setting the SizeDefintion but that did not work.
  2. Create some fluent:MenuItem menus but the icon image is too small, can the size be changed.
    You did a change for this item - 3.2.0 Height and FontSize of MenuItem #28, but the you reverted 3.3.0 Height and FontSize of MenuItem #28, not sure if done.
  3. Need to change the Fluent:Button icon at runtime, cannot change the icon by binding to it. Had a search on the internet and the problem has raised before.
    Checked your bug dixes, this has been marked as done. - 3.6.1 Cannot change Fluent.Button Icon Dynamically #201.
  4. Using your latest version of the ribbon and I have a problem with the fluent:InRibbonGallery. It contains the style information (similar to Word). A style is selected, I go to another style and right click on it which will give me the menu option to modify it. I must be able to determine which style is being selected. So I am using the "Ribbon_SelectedEvent" event, in their I get the visual tree then determine which on the mouse cursor is on. Using the method below. With your new version of the ribbon I cannot search the visual tree. Please advice?
    private void Ribbon_SelectedEvent(object sender, EventArgs e)
    {
    IEnumerable enumGallery = styleGallery.FindChildren();
    if (enumGallery == null) throw new ArgumentNullException(nameof(enumGallery));
    var count = (from GalleryItem item in enumGallery
    select item).Count(x =>
    {
    if (x.IsMouseOver)
    {
    SelGallaryItem = (GalleryItemViewModel)x.Content;
    }
    return true;
    });
    }
@batzen
Copy link
Member

batzen commented Oct 3, 2016

Could you create a small repro which includes code for all your issues? That would make it much easier for me to help you.

@henrymcbean
Copy link
Author

  1. Is it possiable to resize a fluent:Button when the application resizes, your sample has no examples?
  2. Can the fluent:MenuItem height be changd icons bing displayed are too small?
    You did a change for this item - 3.2.0 Height and FontSize of MenuItem #28, but the you reverted 3.3.0 Height and FontSize of MenuItem #28, not sure if done.
  3. Need to change the Fluent:Button icon at runtime, cannot change the icon by binding to it. Had a search on the internet and the problem has raised before.

Checked your bug dixes, this has been marked as done. - 3.6.1 #201.
4. Previous version allowed me to use styleGallery.FindChildren(); on the gallery to get all the children. I then use method below to find which one the cursor is over, not able to do this in current version FindChildren does give me the chidren.
private void Ribbon_SelectedEvent(object sender, EventArgs e)
{
IEnumerable enumGallery = styleGallery.FindChildren();
if (enumGallery == null) throw new ArgumentNullException(nameof(enumGallery));
var count = (from GalleryItem item in enumGallery
select item).Count(x =>
{
if (x.IsMouseOver)
{
SelGallaryItem = (GalleryItemViewModel)x.Content;
}
return true;
});
}

I have marked the one your bug report says is done just need answers and sample code for question 1.

@batzen
Copy link
Member

batzen commented Oct 6, 2016

  1. Have a look at the showcase application. In the tab "Resizing & Screentips" are quite a few examples which show dynamically sized buttons.

@batzen
Copy link
Member

batzen commented Oct 22, 2016

Did that answer your question?

@batzen
Copy link
Member

batzen commented Dec 23, 2016

@henrymcbean ping

1 similar comment
@batzen
Copy link
Member

batzen commented Jan 20, 2017

@henrymcbean ping

@batzen batzen closed this as completed Feb 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants