Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8589231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:00:21+00:00 2026-06-11T23:00:21+00:00

I have a WPF window that is completely transparent with no title bar that

  • 0

I have a WPF window that is completely transparent with no title bar that contains a few buttons. How can I drag just the controls around?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:00:23+00:00Added an answer on June 11, 2026 at 11:00 pm

    Download the DragCanvas.cs from here
    its inherited from Canvas control give it a transparent background, and it’ll do the job for you.

    You can also add a DragCanvas as child to another DragCanvas and move many controls at the same time

    <Window x:Class="WpfApplication2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:WpfApplication2"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
    
        <local:DragCanvas Background="Green">
            <Grid Canvas.Left="48" Canvas.Top="57">
                <Image Source="cursor_drag_arrow.png" Margin="233,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="33" Width="29"></Image>
            <Button Content="Button" x:Name="btn" HorizontalAlignment="Left" Height="52" Margin="110,77,0,0" VerticalAlignment="Top" Width="124"/>
                <Button Content="Button" x:Name="btn_Copy" HorizontalAlignment="Left" Height="52" Margin="10,10,0,0" VerticalAlignment="Top" Width="124"/>
            </Grid>
        </local:DragCanvas>
    </Grid>
    </Window>
    

    there is no code behind this just click on the image and drag

    enter image description here

    and

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF Window that contains a TextBox. I have implemented a Command
I have a WPF / XAML Window that contains a ComboBox that is giving
I have two images on a WPF window that are on top of each
I have a RichTextBox on a WPF window that I am using kind of
At the moment I have a DocumentViewer in a WPF window that displays an
I develop on VS2010 WPF on Window 7. I have a project that does
I have a WPF window, which contains a button called Cancel. Under ordinary circumstances
i'm developing an application (wpf) that have 3 windows. in the main window user
I have a window (Windows form ) where i have two WPF user controls
I have a WPF window that I am launching from inside of a winform

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.