Divelements Community
Customer discussion of all Divelements products

Is this a bug or am I missing something?

Latest post 09-15-2008 12:51 by Eset. 2 replies.
  • 09-12-2008 16:13

    • Eset
    • Not Ranked
    • Joined on 09-12-2008
    • Posts 2

    Is this a bug or am I missing something?

     

     

     

     

     

     

     

     

     

     

     

     

     

    SizeToContent

     

     

    ="WidthAndHeight" does not seem to work with RibbonWindow.

    I've got a regular WPF window and grid to autozize as the contents of a label changes. It works perfectly.

    Changing it to a RibbonWindow makes it look great, but the autoresizing stops working.

     

     

    All I'm changing is the window type. All other code remains identical.

    I'd like to use RibbonWindow, but short of writing rafts of code to manually calculate the element sizes and force the size of the Ribbon Window, I can't see a way to do it.

    By the way, this is a popup window to replace MessageBox (to get that nice look) so text etc. is not predictable at design time.

    Any ideas?

     

    Filed under:
  • 09-15-2008 9:01 In reply to

    Re: Is this a bug or am I missing something?

    You can't size a ribbon window automatically to its content; it's just not supported.

    Unfortunately there's no way of styling the MessageBox dialogs shown from WPF.

  • 09-15-2008 12:51 In reply to

    • Eset
    • Not Ranked
    • Joined on 09-12-2008
    • Posts 2

    Re: Is this a bug or am I missing something?

    Thanks, Tim.

    It's no problem. Still a fantastic product.

    (I skinned a standard WPF window instead.)

    Cheers.

Page 1 of 1 (3 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems