Unplanned
Last Updated: 19 Jul 2017 10:23 by ADMIN
ADMIN
Kiril Vandov
Created on: 25 Feb 2014 15:12
Category: RibbonView
Type: Bug Report
3
RibbonWindow: Icon appears clipped and offset
RibbonWindow icon appears clipped when the DPI  is set larger than 100%. Also, the icon separator is offset.
2 comments
ADMIN
Kiril Vandov
Posted on: 17 Mar 2015 12:08
Until this issue is resolved you could workaround this issue like follows:
- use the loaded event of the window to get the TemplatePart holding the Image -> "PART_Icon"
- set its width and height to the default size 16x16.

void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            var image = this.ChildrenOfType<Image>().FirstOrDefault(x => x.Name == "PART_Icon");

            if (image != null)
            {
                image.Width = 16;
                image.Height = 16;
            }
        }
Daniel
Posted on: 09 Mar 2015 09:16
Is there a workarround meantime?