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

Setting ResizeMode "CanResizeWithGrip" on the window removes Adonis title bar #201

Open
ividyon opened this issue Apr 9, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ividyon
Copy link

ividyon commented Apr 9, 2023

Describe the bug
ResizeMode="CanResizeWithGrip" adds a little resize grip element to the bottom right of a window for resizing purposes.

Adding ResizeMode="CanResizeWithGrip" to the definition of the Adonis window makes the title bar disappear.

To Reproduce

<adonisControls:AdonisWindow x:Class="RainbowStoneWPF.MainWindow"
                             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                             xmlns:local="clr-namespace:RainbowStoneWPF"
                             xmlns:adonisControls="clr-namespace:AdonisUI.Controls;assembly=AdonisUI"
                             xmlns:adonisUi="clr-namespace:AdonisUI;assembly=AdonisUI"
                             xmlns:adonisExtensions="clr-namespace:AdonisUI.Extensions;assembly=AdonisUI"
                             mc:Ignorable="d"
                             Title="Rainbow Stone" Width="1280" Height="720"
                             ResizeMode="CanResizeWithGrip"
                             >
    <adonisControls:AdonisWindow.TitleBarContent>
        <StackPanel Orientation="Horizontal"
                    HorizontalAlignment="Right">
            <Button Content="?"
                    Style="{DynamicResource {x:Static adonisUi:Styles.WindowButton}}"
                    FontFamily="Segoe UI"
                    FontSize="14"/>
        </StackPanel>
    </adonisControls:AdonisWindow.TitleBarContent>
    <adonisControls:AdonisWindow.Style>
        <Style TargetType="adonisControls:AdonisWindow"
               BasedOn="{StaticResource {x:Type adonisControls:AdonisWindow}}" />
    </adonisControls:AdonisWindow.Style>
</adonisControls:AdonisWindow>

Expected behavior
There is an Adonis title bar and a resize grip in the bottom corner.

Screenshots
image

Without ResizeMode line:
image

@ividyon ividyon added the bug Something isn't working label Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant