简体   繁体   中英

resizable Custom Window in WPF

I am needing to make a custom window with WindowStyle.None, AllowsTransparency = true, etc.

and " resizeable "

how con help me to create resizeable this?

tanx...

The most simple solution is to implement the ResizeMode property, setting it to "CanResizeWithGrip".

<Window x:Class="TestProject.ScratchWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
        Opacity="1.0" 

        ResizeMode="CanResizeWithGrip"

        WindowStyle="None" 
        AllowsTransparency="True"
        Title="Test Window">

    <!-- Window Contents Here -->
</Window>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM