This is a migrated thread and some comments may be shown as answers.

RadGeometryButton error AutoFit

5 Answers 96 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Muralee
Top achievements
Rank 1
Muralee asked on 25 Jun 2012, 09:12 PM
Hi,

I am getting the following error in the RadDigram --> RadGeometryButton -->Autofit .



Thanks,
Muralee.

5 Answers, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 27 Jun 2012, 10:44 AM
Hi Muralee,

 Can you elaborate more on how do you get this design-time error? Is it the samples solution part of the distribution or this is part of your project? Do you have any problems with the run-time?
Thank you.

All the best,
Miro Miroslavov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Muralee
Top achievements
Rank 1
answered on 27 Jun 2012, 02:59 PM
Hi Miroslavov,

It was in the sample solution provided. I use the same code from DiagramToolBox project. Most of the other part of the code work fine in the Run-time. Accept for the Auto-fit Button.

Thank you,
Muralee.
0
Miro Miroslavov
Telerik team
answered on 02 Jul 2012, 07:18 AM
Hello Muralee,

 I noticed that the command name is misspelled - it should be DiagramCommands.AutoFit (not Autofit).
Pleas let us know if this fix the issue.  

Greetings,
Miro Miroslavov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Muralee
Top achievements
Rank 1
answered on 02 Jul 2012, 01:44 PM
Hi Miroslavov,

But the Tag is having the  Command="telerik:DiagramCommands.Autofit"

Thanks,
Muralee.
0
Miro Miroslavov
Telerik team
answered on 04 Jul 2012, 11:59 AM
Hi Muralee,

 Originally the example code is as follows: 

<telerik:RadGeometryButton Height="22" Width="22"
    Command="telerik:DiagramCommands.AutoFit" ToolTipService.ToolTip="Autofit"
    CommandTarget="{Binding ElementName=diagram}" Margin="1" VerticalAlignment="Top"
    HorizontalAlignment="Left" Style="{StaticResource autoFitButtonStyle}" />

The Command property is the important tag. The Tooltip is only for help to the users and you can write anything there.

All the best,
Miro Miroslavov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Diagram
Asked by
Muralee
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Muralee
Top achievements
Rank 1
Share this question
or