Fariborz Yazdani
Fariborz Yazdani

Reputation: 11

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...

Upvotes: 1

Views: 5118

Answers (1)

Wonko the Sane
Wonko the Sane

Reputation: 10823

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>

Upvotes: 4

Related Questions