I used Infragistics ver 11.2.
I want to delete this button
How can i ?
Hello Min,
Please take a look on attached sample with one possible solution. If you have any questions, feel free to write me
Regards
Here is the sample
Hello,
If you need any additional assistance don’t hesitate to ask.
I used VB.net language.
Public Class CreatingUIElement
Implements IUIElementCreationFilter
Public Function BeforeCreateChildElements(ByVal parent As Infragistics.Win.UIElement) As Boolean Implements IUIElementCreationFilter.BeforeCreateChildElements
Return False
End Function
Public Sub AfterCreateChildElements(ByVal parent As UIElement) Implements IUIElementCreationFilter.AfterCreateChildElements
Dim oElement As QatQuickCustomizeToolUIElement = CType(parent, QatQuickCustomizeToolUIElement)
If oElement IsNot Nothing Then
oElement.Rect = New Rectangle(oElement.Rect.X, oElement.Rect.Y, 0, 0)
End If
End Sub
End Class
I tried this way.
But
" Dim oElement As QatQuickCustomizeToolUIElement = CType(parent, QatQuickCustomizeToolUIElement) "
the casting error appear this area.
Hi,
Please try the code below:
Public Sub AfterCreateChildElements(parent As UIElement)
Dim El As QatQuickCustomizeToolUIElement = TryCast(parent, QatQuickCustomizeToolUIElement)
If El IsNot Nothing Then
El.Rect = New Rectangle(El.Rect.X, El.Rect.Y, 0, 0)
Public Function BeforeCreateChildElements(parent As UIElement) As Boolean
Let me know if you have any questions.