Posted 15 years ago
by Simon Deguire
Version: 9.1.0502
Platform: .NET 3.5
Environment: Windows Vista (32-bit)
![Avatar](https://secure.gravatar.com/avatar/bdaf66bf2c543727bdee06e0ccfd18aa.jpg?s=64&d=identicon&r=g)
When I change the width of a window trough code, it grows vertically in Vista Aero.
press + or - on keyboard to change window Width, bug will be visible only in vista aero.
Side note, it would be great to be able to post an entire solution to the thread.
<Ribbon:RibbonWindow x:Class="RibbonWindowResize.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Ribbon="clr-namespace:ActiproSoftware.Windows.Controls.Ribbon;assembly=ActiproSoftware.Ribbon.Wpf30"
Title="Window1" Height="300" Width="300">
<StackPanel Orientation ="Vertical">
<Button Click="increase">_+ increase</Button>
<Button Click="decrease">_- decrease</Button>
</StackPanel>
</Ribbon:RibbonWindow>
using System.Windows;
namespace RibbonWindowResize
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1
{
public Window1()
{
InitializeComponent();
}
private void increase(object sender, RoutedEventArgs e)
{
Width = ActualWidth + 1;
}
private void decrease(object sender, RoutedEventArgs e)
{
Width = ActualWidth - 1;
}
}
}
Side note, it would be great to be able to post an entire solution to the thread.