Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. WCF and WF
  4. Expander control show up with the button on the right? [modified]

Expander control show up with the button on the right? [modified]

Scheduled Pinned Locked Moved WCF and WF
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aaron Hickman
    wrote on last edited by
    #1

    I would like to use an expander control, however I want the expansion indicator to be on the right side of the text. Is this possible with the Expander control, or will I need to try and get tricky with my layout? I have found that I can set the "FlowDirection" property to RightToLeft and it will put the text and button aligned to the right, but then I have to set my text to "...More Details" rather than "More Details..." and I also have to set the FlowDirection to LeftToRight on all of the child items within that expander. It just seems like this is a hack.

    modified on Wednesday, November 5, 2008 12:28 AM

    T 1 Reply Last reply
    0
    • A Aaron Hickman

      I would like to use an expander control, however I want the expansion indicator to be on the right side of the text. Is this possible with the Expander control, or will I need to try and get tricky with my layout? I have found that I can set the "FlowDirection" property to RightToLeft and it will put the text and button aligned to the right, but then I have to set my text to "...More Details" rather than "More Details..." and I also have to set the FlowDirection to LeftToRight on all of the child items within that expander. It just seems like this is a hack.

      modified on Wednesday, November 5, 2008 12:28 AM

      T Offline
      T Offline
      Timmy Kokke
      wrote on last edited by
      #2

      You'll have to create a template for the expander. The easiest way to do this is in Expression Blend, so you don't have to type all the template stuff. The expansion indicator is nothing more than a circle and a poly on a grid, which can be changed and moved aound very easily. The tricky part is that an expander contains 4 templates, one for every direction. So, You'll have your expander. In Blend you right-click the expander and click edit template -> edit a copy. This will give you the main template. Now you right-click "HeaderSite" in the objects pane and edit that template. I believe you're now where you want to be. If you change the grid and move the parts around you're done. Good Luck!

      Dawn is nature's way of telling you to go to bed.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups