Customizing RadWindow Titlebar

21 posts, 0 answers
  1. Sanjay
    Sanjay avatar
    2 posts
    Member since:
    Nov 2008

    Posted 11 Jan 2009 Link to this post

    Hi,

    I would like to know if there is a way to customize the titlebar of the RadWindow control. Basically, I would like to place a button next to the minimize and maximize buttons and attach an event handler to it. Kindly let me know if this is possible.

    Thanks,
    Sanjay.
  2. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 12 Jan 2009 Link to this post

    Hi Sanjay,

    Currently you cannot set custom buttons next to the tool buttons. We are working on improving the blend support of our controls, in which you will be able to edit the control template of our controls, and thus customize its look. Unfortunately, I cannot say whether the support will be for our service pack or Q1 release. We are sorry for this inconvenience and we hope that this won't be a show stopper for you.

    All the best,
    Hristo Borisov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. Droidilate
    Droidilate avatar
    5 posts
    Member since:
    Nov 2010

    Posted 03 Nov 2010 Link to this post

    Any update on this?

    I've been contemplating purchasing for months, and this sort of thing is why I haven't yet.

    A little while back, I created my own Window control, and it was very easy to just expose the titlebar container (a grid in this case with two columns and two respective stack panels) to the control consumer.  Then they could simply add linear gradient brushes to that container's background property (and set the stack panels to transparent).  I was able to easily create custom, glossy titlebars and add my own buttons.

    From the consumer's perspective, it was very easy.  I would expect it to be just as easy (if not more so) with a professional, commercial tool set.

    Am I missing something here?

    -d

  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 05 Nov 2010 Link to this post

    Hi Droidilate,

    Thank you for contacting us.

    You have 2 options:
    1. You can set the HeaderTemplate property and apply a DataTemplate which will fit your requirements.
    2. You could edit the Header of the RadWindow with Expression Blend very easy.

    Please let us know if you need further assistance.

    All the best,
    Konstantina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Droidilate
    Droidilate avatar
    5 posts
    Member since:
    Nov 2010

    Posted 05 Nov 2010 Link to this post

    I'm afraid that method 1 will not work for recoloring the titlebar (though I could use it for adding icons for sure!).

    When I replace the TemplateHeader, it does not reach all the way to the left side of the control.  So Even if I recolor where the template is, it doesn't get rid of that default gray, linear gradient titlebar.

    I don't just want to use a default theme.  I want to change the color on the fly, even in such a fashion as to create color animations or state indications.

    Come on guys, it shouldn't be this hard.  Why isn't the real background brush for the root control exposed?  One property, immediate results.

    What should I do?  Perhaps I should just customize the control template?  Is that advisable?

    Thanks!! :)
  7. Droidilate
    Droidilate avatar
    5 posts
    Member since:
    Nov 2010

    Posted 05 Nov 2010 Link to this post

    It looks like method 2 works pretty good because Blend makes it a snap to customize a control template.  I see the WindowHeaderBackground resource and can modify it.  Hopefully I will also be able to modify this at run time.

    Please, let me know if this was what you meant by using Blend (to customize the control template) or if I'm on the wrong path.

    Thanks!
  8. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 09 Nov 2010 Link to this post

    Hello Droidilate,

    Thank you for your reply.

    Yes, the WindowHeaderBackground is the resource you need to change, that was exactly what I meant by editing the Header in Expression Blend. Of course, you can change pretty much everything, that is way this is the recommended way for customizing the look and feel of our controls.

    Please let us know if you need further assistance.

    Kind regards,
    Konstantina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Raphael
    Raphael avatar
    15 posts
    Member since:
    Jan 2011

    Posted 29 Mar 2011 Link to this post

    Hello,

    I try to modify my header adding custom buttons. The buttons appear but I cannot click on my buttons because the header bar has got the focus and allows me moving the window but not clicking my buttons.
    Do you have a solution for this problem ?
    Remarks : I tried with CanMove property to False but no more expected result.

    Thanks

    Raphael
  10. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 31 Mar 2011 Link to this post

    Hi Raphael,

    You can try setting the IsHeaderHitTestVisible property of the RadWindow to True. In that way the buttons will become clickable.

    Please let us know if you have further questions.

    Regards,
    Konstantina
    the Telerik team
  11. Raphael
    Raphael avatar
    15 posts
    Member since:
    Jan 2011

    Posted 31 Mar 2011 Link to this post

    Hi Constantina,

    Thank you for your support.
    It works very well.

    Raphael
  12. Enal
    Enal avatar
    39 posts
    Member since:
    Oct 2011

    Posted 07 Oct 2011 Link to this post

    Hi - 

    When attempting IsHeaderHitTestVisible I get a notification that it is obsolete and to use WindowHost.HitTestable instead.
    But I don't see any related documentation.

    Do you have an example, how to use this please?

    Thanks!
  13. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 11 Oct 2011 Link to this post

    Hi Enal,

    Yes, this property is marked obsolete. It is not needed anymore.
    Could you please share with us why do you need to set it?

    Best wishes,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  14. Enal
    Enal avatar
    39 posts
    Member since:
    Oct 2011

    Posted 11 Oct 2011 Link to this post

    Hi Konstantina -

    I apply a DataTemplate as HeaderTemplate, which works fine with the defaults...
    However, if I apply a Theme with the theme manager (either to the RadWindow or application-wide) a few things stop working...

    1. The controls in the header template become unresponsive. This can be solved by setting 'obsolete' IsHeaderHitTestVisible to true (which I found by trial and error and googling, which led to this thread...)

    2. (Unrelated to IsHeaderHitTestVisible, but maybe similar cause...) The stretch of the Header template breaks. In defaults I can place a grid as the template and it stretches all the way from the left start of the header to just left of the standard window controls. Once a Theme is being applied, the header template does not stretch any longer regardless of any setting. I have a workaround now that intercepts resize events on the window and forcibly sets the header width to window width-100, but it feels like a hack.

    Ideally I would like things to behave identically with or without a Telerik theme applied with StyleManager :-)

    Thanks and Best!

    (I should mention that I have another post regarding #2: http://www.telerik.com/community/forums/silverlight/window/theming-vs-headertemplate-issue-on-stretch.aspx)
  15. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 13 Oct 2011 Link to this post

    Hello Enal,

    Then, we will continue the discussion there in order the communication to be more structured. I believe your question is already answered.

    Greetings,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  16. Enal
    Enal avatar
    39 posts
    Member since:
    Oct 2011

    Posted 13 Oct 2011 Link to this post

    Hi Konstantina - 

    Nope, there are 2 issues.

    1. The one here, which is about the issue discussed in this thread
    2. The 'stretch' issue (which may or may not be related - just FYI when investigating), which is discussed in the other thread.

    This here is about #1, 'IsHeaderHitTestVisible', which seems to be required despite being marked as obsolete.

    Best!
    e
  17. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 17 Oct 2011 Link to this post

    Hi Enal,

    Which theme you are using? Not OfficeBlack? If so, a fix for this issue will be provided with Q3 2011 release of the controls, which due in the middle of November.
    Sorry for the caused inconvenience.

    All the best,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  18. Enal
    Enal avatar
    39 posts
    Member since:
    Oct 2011

    Posted 17 Oct 2011 Link to this post

    Hi Konstantina -

    We are defaulting to Expression_DarkTheme - and soon want to offer the user a theme selector to suit their preferences.

    I guess it's not a big deal since we can just set the property despite the IDE complaining. I was just wondering if there is more info about WindowHost.HitTestable (which is suggested to use instead) since I cannot find related docs. Or shall we just ignore it?

    Thanks!

  19. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 18 Oct 2011 Link to this post

    Hi Enal,

    The WindowHost.HitTestable attached property has to be set in order the elements in the header to receive the events. The Buttons receive the events by default, because this property is set by default.

    All the best,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  20. Jittu
    Jittu avatar
    18 posts
    Member since:
    Sep 2012

    Posted 17 Sep 2012 Link to this post

    Can I change the Top color of the Title bar of Rad WIndow?
    Because I dont see any property related to it.

    Thanks
  21. Masha
    Admin
    Masha avatar
    355 posts

    Posted 20 Sep 2012 Link to this post

    Hi Sanjay,

    You can edit very easily the template and the style of the RadWindow with Expression Blend. Just drop a RadWindow control into the design surface, right-click it and choose from the menu Edit Template-> Edit a Copy. Then Blend will generate all the needed resources for customization. 

     You could refer to our online documentation about
     
    In the attached project I demonstrated the approach.

    I hope this helps. 
    Kind regards,
    Maria
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

  22. baggu
    baggu avatar
    1 posts
    Member since:
    Feb 2013

    Posted 20 Mar 2013 Link to this post

    Hi,

    I have a similar issue. I have a set of custom commands and standard commands. Custom commands show up on the title bar and standard commands show as a drop down on clicking one of the buttons on title bar. Now when i maximize the Radwindow, i want all the commands to show on the title bar. How do i achieve this when i have two separate calls for custom and standard buttons.

    Thanks,
    Baggu
Back to Top
DevCraft banner