Hi, can anyone tell me how I can add a button inside a tile header?
I need create a button that would open a new form for editing the component inside the tile, and every thing I tried was awfull and disgusting in the appearance.
Like that :
When editing, every time I'm trying to encapsulate the Edit Button into the header, it creates a new tile that is only composed with the button.
I don't know how to create my edit button by coding. Maybe I could change the event of the native closeButton of the component, but I don't know if it's possible.
Can anyone help me, please?
Thanx, Mike.
And here is part of the screen shot that shows how the edit button is put inside a new tile when i'm trying to encapsulate the button componant inside the tile header.
Hello Mike,
One possible approach to achieve desired behavior could be if you are using CreationFilter. I made small sample for you. Please take a look at the attached sample and let me know if you have any questions.
Regards
Hello Murat,
I suppose that you are talking about Option 2 from my sample, where I used ButtonUIElement. If so, the mentioned issue is expected, because when you try to set the color in Appearance.BorderColor , your Appearance instance is NULL. To solve this task, you could try the code below:
// Second Option
ButtonUIElement bb = new ButtonUIElement(El);
bb.Rect = new Rectangle(El.Rect.X + El.Rect.Width - 100, El.Rect.Y, 35, 18);
bb.Text = "V";
Infragistics.Win.Appearance appearance = new Infragistics.Win.Appearance();
appearance.BackColor = Color.Yellow;
appearance.BorderColor = Color.Red;
appearance.BorderColor3DBase = Color.Red;
appearance.ForeColor = Color.Magenta;
appearance.ThemedElementAlpha = Alpha.Transparent;
bb.Appearance = appearance;
El.ChildElements.Add(bb);
bb.ElementClick += new UIElementEventHandler(bb_ElementClick);
The result from this code is in attached screenshot
About your second question "I've tried several times to renew my subscription but sales do not respond... Can you pass this information to related person please", I`ll talk with our sales department and I`ll inform you.
Let me know if you have any questions
Hi Georgi,
Again, you made it! Just one thing... I cannot set border style of the custom button (I got a famous red cross), how can I change the appearance of the button? (I've tried BorderStyle and Appearance.BorderColor properties but no luck).
One last thing: I've tried several times to renew my subscription but sales do not respond... Can you pass this information to related person please...
Hello Georgi, and sorry for that long time with no answer. I was working on another project and did not have time to spend on that one.
I cannot tell you about your sample project, because I'm working on Progress with infragistics components, and when I try to open it in Visual Studio 2010, it appears that I do not have infragistics tools installed for VS...
So I'm trying to test what you said about the CreationFilter.
Thanx for your help.
Mike.
Have you been able to resolve your issue ? Did you have a time to take a look at the attached sample. If you still have any concerns or questions I will be glad to help. If you need any additional assistance don’t hesitate to ask.