Problem

SizeToContent bug

Posted 7 years ago by Avatar Simon Deguire
I don't know if this has been fixed in the 340 version.
Try this window.
<ribbon:RibbonWindow x:Class="Sample.Application.SizeToContentBug"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
    Title="SizeToContent bug"
    SizeToContent="WidthAndHeight"
    >
  <Button>A simple button</Button>
</ribbon:RibbonWindow>
namespace Sample.Application
{
    /// <summary>
    /// Interaction logic for SizeToContentBug.xaml
    /// </summary>

    public partial class SizeToContentBug : RibbonWindow
    {

        public SizeToContentBug()
        {
            InitializeComponent();
        }

    }
}
The window appears black on the bottom and on the right because the bordres are hidden I think.

Comments (1)

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Simon,

Thank you for the sample code. I was able to repro it and fix the problem for the next maintenance release.

Actipro Software Support
Information The latest build of this product (2014.2 build 0610) was released 11 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.