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 8713777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:25:14+00:00 2026-06-13T05:25:14+00:00

I’m using the http://wpfmdi.codeplex.com/ library to handle MDI in my WPF application. I’ve got

  • 0

I’m using the http://wpfmdi.codeplex.com/ library to handle MDI in my WPF application.

I’ve got a Canvas which contains a child container, which in turn contains a number of small windows.

I would like to disable the titlebar on my child windows. Is this possible? I haven’t found a single property which achieves this, especially since the MdiChild object is of type Control rather than Window.

This is my code for creating an MDIChild, which contains an object of my TableWindow class.

            MdiChild child = new MdiChild()
            {
                MaximizeBox = false,
                MinimizeBox = false,
                Resizable = true,
                ShowIcon = false,
                Content = tableWindow.Content as UIElement
            };

            mainContainer.Children.Add(child);

EDIT:

enter image description here

  • 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-13T05:25:15+00:00Added an answer on June 13, 2026 at 5:25 am

    Since its a Control so you have to override its default template (ControlTemplate).

    In source code you will see two xamls – Aero.xaml and Luna.xaml containing the style for MdiChild control. Source code can be seen here. Just get rid of StackPanel(ButtonsPanel) containing buttons and Grid(HeaderContent).

    Thats the power WPF gives us, you can customize any control to give it a look whatever you feel like by overriding its ControlTemplate.

    EDIT

    To override the template you have to redefine it in your xaml. What you have to do is create a style again in your Window resources, set the template for the control and it will automatically override the default control template. Simply copy paste the entire template from here and remove the StackPanel and Grid which i mentioned above.

    <Window.Resources>
       <Style TargetType="{x:Type mdi:MdiChild}">
          <Setter Property="Template">
              <Setter.Value>
                  <ControlTemplate>
                      <!-- Copy paste entire template here and
                           just remove the StackPanel and Grid -->
                  </ControlTemplate>
              </Setter.Value>
          </Setter>
       </Style>
    </Window.Resources>
    

    EDIT2

    Replace your ControlTemplate with this to disable the title bar but still enable the drag operation and resizable operation for your control –

    <ControlTemplate TargetType="{x:Type mdi:MdiChild}">
       <Border Name="BaseBorder" BorderThickness="1" CornerRadius="5,5,0,0"
               Background="{StaticResource BackBorderBackgroundBrush}"
               BorderBrush="{StaticResource BackBorderBrush}">
                   <Grid>
                      <Border Name="ContentBorder"
                              Background="{TemplateBinding Background}"
                              BorderBrush="{TemplateBinding BorderBrush}"
                              BorderThickness="{TemplateBinding BorderThickness}">
                             <ContentControl Content="{TemplateBinding Content}" />
                       </Border>
                      <Thumb Name="DragThumb" Height="20" Margin="0,0,40,0"
                             VerticalAlignment="Top" Opacity="0"/>
    
                       <Rectangle Name="LeftBorder" Width="1" HorizontalAlignment="Left" 
                                  RadiusX="9" RadiusY="9"
                                  Fill="{StaticResource NearBorderBrush}" />
                       <Rectangle Name="TopBorder" Height="1" VerticalAlignment="Top" 
                                  RadiusX="9" RadiusY="9"
                                  Fill="{StaticResource NearBorderBrush}" />
                       <Rectangle Name="RightBorder" Width="1" HorizontalAlignment="Right" 
                                  RadiusX="9" RadiusY="9"
                                  Fill="{StaticResource FarBorderBrush}" />
                       <Rectangle Name="BottomBorder" Height="1" VerticalAlignment="Bottom" 
                                  RadiusX="9" RadiusY="9"
                                  Fill="{StaticResource FarBorderBrush}" />
    
                       <Thumb Name="ResizeLeft" Width="6" HorizontalAlignment="Left" 
                              Margin="0,6,0,6" Opacity="0" Cursor="SizeWE"
                              IsHitTestVisible="{TemplateBinding Resizable}" />
                       <Thumb Name="ResizeTop" Height="4" VerticalAlignment="Top" 
                              Margin="6,0,6,0" Opacity="0" Cursor="SizeNS"
                              IsHitTestVisible="{TemplateBinding Resizable}" />
                       <Thumb Name="ResizeRight" Width="6" HorizontalAlignment="Right" 
                              Margin="0,6,0,6" Opacity="0" Cursor="SizeWE"
                              IsHitTestVisible="{TemplateBinding Resizable}" />
                       <Thumb Name="ResizeBottom" Height="6" VerticalAlignment="Bottom" 
                              Margin="6,0,6,0" Opacity="0" Cursor="SizeNS"
                              IsHitTestVisible="{TemplateBinding Resizable}" />
                       <Thumb Name="ResizeTopLeft" Width="6" Height="6" 
                              HorizontalAlignment="Left" VerticalAlignment="Top" Opacity="0" 
                              Cursor="SizeNWSE"
                              IsHitTestVisible="{TemplateBinding Resizable}" />
                       <Thumb Name="ResizeTopRight" Width="6" Height="6" 
                              HorizontalAlignment="Right" VerticalAlignment="Top"
                              Opacity="0" Cursor="SizeNESW"
                              IsHitTestVisible="{TemplateBinding Resizable}" />
                       <Thumb Name="ResizeBottomRight" Width="6" Height="6" 
                              HorizontalAlignment="Right" VerticalAlignment="Bottom" 
                              Opacity="0" Cursor="SizeNWSE"
                              IsHitTestVisible="{TemplateBinding Resizable}" />
                       <Thumb Name="ResizeBottomLeft" Width="6" Height="6" 
                              HorizontalAlignment="Left" VerticalAlignment="Bottom"
                              Opacity="0" Cursor="SizeNESW"
                              IsHitTestVisible="{TemplateBinding Resizable}" />
                 </Grid>
           </Border>
    </ControlTemplate>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I am using Paperclip to handle profile photo uploads in my app. They upload
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the

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.