Page 1 of 1

How to customize the Toolbar in WPF Viewer

Posted: Tue May 03, 2011 7:05 am
by euregon
Hi,

i'd like to customize the toolbar of the WPF Viewer.

We used the following code:

Code: Select all

            Button myButton = new Button()
            {
                Content="My cool button"
            };

            ToolBar tb = viewerControl1.FindToolBar;
            tb.Items.Add(myButton);
However there is no additional Button in the Toolbar.

Is there a way to achieve this?

Thank you.

How to customize the Toolbar in WPF Viewer

Posted: Wed May 04, 2011 7:16 am
by Alex K.
Hello,

Please check the sample in attachment.

Thank you.

How to customize the Toolbar in WPF Viewer

Posted: Wed May 04, 2011 8:00 am
by euregon
Hello Aleksey,

we are using "Stimulsoft Reports.Ultimate 2011.1 Trial".

Unfortunately there is still no button.

Even with:

Code: Select all

    
        
    

How to customize the Toolbar in WPF Viewer

Posted: Thu May 05, 2011 4:38 am
by Alex K.
Hello,

Your code add button in Find toolbar:


Thank you.

How to customize the Toolbar in WPF Viewer

Posted: Fri May 06, 2011 1:45 am
by euregon
Hello Aleksey,

sorry I mixed up MainToolBar with FindToolbar. The "Find" implyed to find the
ToolBar - and not the Finder's toolbar :)

My programm works very nice!

Thanks a lot!

How to customize the Toolbar in WPF Viewer

Posted: Fri May 06, 2011 2:59 am
by Alex K.
Hello,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.