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

How to hide flyout title #2552

Closed
biless opened this issue Jun 16, 2016 · 4 comments
Closed

How to hide flyout title #2552

biless opened this issue Jun 16, 2016 · 4 comments
Milestone

Comments

@biless
Copy link

biless commented Jun 16, 2016

How to hide flyout title

I Can't Hide Flyout title

pic…

Environment

  • MahApps.Metro v1.2.4
  • Windows 10
  • Visual Studio 2015
  • .NET Framework 4.5.2
@biless
Copy link
Author

biless commented Jun 16, 2016

@punker76

@punker76
Copy link
Member

@biless Do you use the Flyout without Flyouts control? Can you post your Xaml code?

@biless
Copy link
Author

biless commented Jun 17, 2016

<controls:MetroWindow x:Class="FlyoutHide.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:FlyoutHide"
                      xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
                      mc:Ignorable="d"
                      WindowTitleBrush="Transparent"
                      Background="BurlyWood"
                      Title="MainWindow" Height="350" Width="525">
    <controls:Flyout
                         TitleVisibility="Collapsed"
                         Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=controls:MetroWindow},Path=Width}"
                         IsOpen="True" Padding="0" UseLayoutRounding="False" CloseButtonVisibility="Collapsed" RenderTransformOrigin="0,0" Visibility="Visible" >

        <Button Width="30" Height="30" Cursor="Hand" HorizontalAlignment="Left" VerticalAlignment="Top" Click="Button_Click"></Button>
    </controls:Flyout>
</controls:MetroWindow>

punker76 added a commit that referenced this issue Jun 17, 2016
use flyout title thumb only if the Flyout is in the Flyouts collection
@punker76
Copy link
Member

@biless This is already fixed in pre-release. I disabled the title thumb usage with 7397c0c if a Flyout is not in the Flyouts collection. Available with MahApps.Metro 1.3.0-ALPHA164

@punker76 punker76 added this to the 1.3.0 milestone Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants