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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:38:56+00:00 2026-05-20T07:38:56+00:00

I need to create control wich can show items over itself (just dont clip

  • 0

I need to create control wich can show items over itself (just dont clip them if there is no space)

enter image description here

All textblocks added to grid. Grid and control has property ClipToBounds = false.
Why items clipped by control in my case?

   <Style TargetType="{x:Type local:SomeControl}">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type local:SomeControl}">
                <!-- Root Grid-->
                <Grid x:Name="LayoutRoot"
                      Background="{TemplateBinding Background}">
                    <Grid x:Name="TicksHolder"
                          ClipToBounds="False"
                          Background="Transparent" >
                 <!-- Items Dynamically added here-->
                    </Grid>
                </Grid>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

And as you can see from image only right border clips items. rectangles out of right border doesnot clipped!

I found how to reproduce with more simple code:

      <Grid HorizontalAlignment="Left" Height="112" VerticalAlignment="Top" Width="52">
                <TextBlock TextWrapping="Wrap" Text="TextBlock" Width="78" Margin="37,0,0,0"/>
            </Grid>

And also i noticed that Grid clips content and Canvas is not

  • 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-05-20T07:38:56+00:00Added an answer on May 20, 2026 at 7:38 am

    I Think that only one way out is to use Canvas instead of grid

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

Sidebar

Related Questions

I need to create user control where <sc:text/> element should showed over the <sc:image>
I need to create a user control in C#.Net, which can be added to
I need to create control to draw border around its child. So, I have
I need to create a user control, that will be used in an application
I need to create a quick-n-dirty knob control in Visual Basic 2005 Express, the
I need to create hot-keys for every control + number combination and would prefer
I need to create a simple editor using a RichTextBox control in a windows
I've to create an activeX control that need to run without any prerequisit (like
I'm trying to create a custom control by deriving from a ZedGraphControl I need
I start develop application on Android! I need to show common control on 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.