How can I custom an editable container panel control in wpf? - c#

I am trying to custom an editable container panel control like below in wpf.
The container panel control is an parent control that chould contains any other control and it is an editable control.It displays a plus icon with blank space when the panel control did not contain any control.User could click the panel which displays a plus icon to add any control to the panel.User could remove the control by floating bar which contains in the panel control.
Is there anybody could tell me what the name of this kind of control panel?And how can I achieve it in wpf?Any clue?
Thank you!

Try take alook at This,It should helps.

Related

How can I add controls to a tab control that is inside of a custom control, at design time?

I have a custom control that is made up of two main controls, a FlowLayoutPanel on the left side, and a TabControl on the right side. The FLP is just used to store custom "buttons" that change the selected index of the tab control. I have it working at design time so that I can select the buttons and move through the pages.
I'm trying to make it so that I can drag controls to those pages, but the controls are just being added to the custom control.
Any ideas on how to accomplish this task?

How I can bring ListView control in top of other controls in WPF

I have a ListView control which is behind other controls. I cant set parent nor use BringInFront function like in winforms to make it front. How I can achieve this in WPF? Bring ListView control in top of other controls.
You can set the ZIndex Property to the maximum.
Read this
OR
Alternatively, just move the ListView control to the bottom of the declarations inside the Grid (z-order is bottom (highest) to top (lowest)). Perhaps a bit counterintuitive.
You can do this,
Goto View->Designer (Shift+f7)
Right Click your ListView ,
Order->Bring To Front

increase User control size while re-sizing Form

I have an application based on two user controls and one form. This form is parent to my 2 user controls and i pragmatically add them to the form. My issue here is that when anchor components in the user control, they are not anchored in the form. So when re-sizing the form by dragging one of the corners, it seems like the user control does not also get re-sized. I was told that i had to listen to the Forms size and append that size to the User control. Is that a good solution? if yes how would i do that?
My user controls are inserted in a tab component btw.
This is my code for adding the user controls to the form. (if it is needed)
public void addUC(UserControl control, TabPage tab)
{
control.Parent = tab;
}
can anyone help ?
You might want to anchor the child usercontrols using the Anchor property.
If there are only 2 use controls in the form why not use dock - it will always stretch the use control to the maximum size of the form

how to put multiple controls at the same position

I want to show some info about a merchant. I want to put an logo image and a textbox at the same position. If the merchant has a logo, I'll show the logo image, hide the textbox. If the merchant doesn't have a logo, I'll show the merchant name in textbox and hide the logo image. How can I do that in xaml? Thanks!
You can use Grid Control for that. Place multiple controls inside exact same Column and Row. Then use show hide to display one and hide another.
To show and hide controls use the Visibility property of the control
if you are working on WPF application
You can make use of WPF canvas control and in that make use of z-index property to show hide your control.
check this for detail : Controlling z-order using the ZIndex Property

How to Change the DevExpress Split Container Control Pannel Name?

Any body please help how to change the DevExpress splitContainer control Panel Name.
Neither standard SplitContainer nor our SplitContainerControl allows you to change the Name property of their Panels.

Categories

Resources