RadGeometryButton error AutoFit

6 posts, 0 answers
  1. Muralee
    Muralee avatar
    7 posts
    Member since:
    Jun 2012

    Posted 25 Jun 2012 Link to this post

    Hi,

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



    Thanks,
    Muralee.
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 27 Jun 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. Muralee
    Muralee avatar
    7 posts
    Member since:
    Jun 2012

    Posted 27 Jun 2012 Link to this post

    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.
  5. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 02 Jul 2012 Link to this post

    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 >>

  6. Muralee
    Muralee avatar
    7 posts
    Member since:
    Jun 2012

    Posted 02 Jul 2012 Link to this post

    Hi Miroslavov,

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

    Thanks,
    Muralee.
  7. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 04 Jul 2012 Link to this post

    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 >>

Back to Top
DevCraft banner