473,624 Members | 2,562 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Staggered columns in WrapPanel or Custom Panel for ListView

1 New Member
I've been trying for a while now and I can't seem to replicate this model without using a grid. I've tried making some simple custom panels and a WrapPanel that makes a new column after n pixels or n number of items which works; however, I'm unable to find a way to stagger each column.

Here's an image of what I'm trying to do:



I've made solutions that use a Grid that do stagger the columns however what I need is a panel that uses columns only and it must be able to be used as the ItemsPanel for a ListView.
Jan 24 '14 #1
0 5935

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1666
by: Bill Merrill | last post by:
I'm having a problem with a custom-painted panel. Upon resize, it's invalidated, and redrawn properly. It's also double-buffered so there's no flicker. When I resize the control during runtime, it paints fine. However, when the control is docked, and it's parent is expanded, the child isn't properly redrawn. It's being invalidated and OnPaint is properly called, but sometimes the repaint doesn't actually take effect. If you...
0
1247
by: timtos | last post by:
I just started to create my own ListView control and already have big problems... I use the following code at the moment: protected override void OnPaint(PaintEventArgs pe) { this.SuspendLayout(); if (this.View == View.Details) { Graphics g = pe.Graphics;
2
2106
by: Smokey Grindle | last post by:
I am trying to write a custom panel control that I can place objects into at design time, however, i want a header on the top of it which can not contain controls (its a static header) in the image shown below, I have a red outline marking the region i dont want a control to be able to be placed in, I want the white area below that to be the container only. How do I go about making a panel that can do this with a header on the top and a...
0
1087
by: gerry.brennan | last post by:
Hi I have a treeview and i can add and remove nodes which are linked to a database table. I want to add this treeview to a panel. When I press a button I want to execute a member function which belongs to the treeview. MY problem -Ho can I access aparticular panel control function ?
0
1150
by: --== Alain ==-- | last post by:
Hi, i would like to custom my ListView control by making a particular property editor for ListView.Columns property. Basically, i want to allow use to choose among several types of columns (with checkboxes, with progressbars, only text, with images,..) for that i thought it could be good to create a special property editor for Columns (columnheadercollection type).
2
1772
by: gshzheng | last post by:
Hi,all How can I custom a listview which item contains a processbar-like control? And each processbar can be set respectively. Any help gratefully received. gshzheng 20070526
1
1840
by: Vivien Parlat | last post by:
Hello, I'm trying to create a custom panel in WPF, which would act like a WrapPanel but with a "NewLine" option. So I'm trying to create kinda "StackPanel" which would host WrapPanels. Tutorials on custom Panels over the internet talk a lot about creating a new Panel from scratch, overriding MeasureOverride and ArrangeOverride. However, all that i want to do is to "route" any new UIElement to the current row's WrapPanel.
0
1153
by: melance | last post by:
I am developing a custom panel control that inherits the usercontrol and uses a designer that inherits the parentcontroldesigner. It has a panel on the control where controls will be placed and a label across the top as a title. I am able to place controls on the panel during design time and they persist and move with the control when it is moved, however; when I run the code, they do not appear. Any suggestions? Lance
2
5650
tranc3d
by: tranc3d | last post by:
Hello, I have a custom panel in my project (this one: http://www.codeproject.com/KB/graphics/fastimagedrawing.aspx) with a custom paint event ( protected override void OnPaint(PaintEventArgs pe) ). You set an image to the Image property of the custom panel, and it scrolls very smoothly through that image according to the value of the scrollbars, in an optimised way in the above OnPaint function. Through the designer, i dropped this custom...
1
2347
by: priyamtheone | last post by:
I have inherited the standard panel control to create a panel having custom border color. The problem is, while the panel is on a form and any other form is moved across it, it paints hapazard lines of the same color as the panel custom border color, all throughout background of the panel. I tried to Refresh or Invalidate the panel in its paint event but of no avail. The same is happening while designing in the design editor too. See attached...
0
8231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8168
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8672
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8614
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8330
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7153
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6107
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5561
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2603
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.