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
305
Styling Custom ToolboxItem
posted

Hi, 

I have custom items to the toolbox, this are special icons, I would like to modify the default height and width of DiagramToolboxItem, I didnt find anyway to do it, Please let us know How to do it, right now toolbox is taking lot of real estate of the sidebar.

  • 45
    Verified Answer
    posted

    Hello Manoj,

    Thank you for your post!

    The default width and height can be modified using a style tag in your xaml. I have provided a snipped for you:

    <Style TargetType="{x:Type igPrim:DiagramToolboxCategoryItem}">
    <Setter Property="Width" Value="90" />
    <Setter Property="Height" Value="30" />
    </Style>

    Where the igPrim namespace is defined like this:

    xmlns:igPrim="http://schemas.infragistics.com/xaml/primitives"

    This should help you resize the DiagramToolboxItems by your choice.

    I hope I answered your question.