Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
Design time features at Runtime
posted

Hi, is it possible to get all the features of the UltraGridBagLayoutPanel from design time, i.e. inserting objects into the panel, rearrange them, getting those red arrows that would tell the user where the object would be inserted?

What I'm trying to do is to give the user an ability to create a layout (of course with some restrictions) that will be used to display different types of controls. It would be nice if they could drag and drop objects onto the panel

Parents
No Data
Reply
  • 71886
    Offline posted

    Hello ehan,

    I tried to implement this and I think it is possible when we speak about your first requirement, but when it comes down to these red arrows I cannot think of any other way to do this except of showing some background pictures in the panel when a control is being dragged over. I tried with DrawFilter ( http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.1/CLR2.0/html/Win_Draw_Filter.html ) but It cannot be assigned to the UltraGridBagLayoutPanel control so it would be very hard for implementation. Bottomline, I was able to create a small sample project for one particular control just to show you the path you could take in order to get the desired behavior. Please take a look at it and let me know if there is something bothering you.

    DragControlGridBagLayout.zip
Children