Vertical Separator for wpf

5 posts, 0 answers
  1. Alex
    Alex avatar
    6 posts
    Member since:
    Jun 2011

    Posted 25 Jul 2012 Link to this post

    Hi all

    Does telerik have a vertical separator for wpf that separates sections of the 'form'?
    eg something similar to the winforms version here: http://www.telerik.com/help/winforms/panels-and-labels-separator.html

    I want to use both vertical and horizontal separators strictly for visual appearance, but there doesn't seem to be anything available. 

    cheers

    Alex
  2. Alex
    Alex avatar
    6 posts
    Member since:
    Jun 2011

    Posted 25 Jul 2012 Link to this post

    Never mind, I found out how:

    <Separator>
      <Separator.LayoutTransform>
        <RotateTransform Angle="90" />
      </Separator.LayoutTransform>
    </Separator>

    Alex
  3. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 25 Jul 2012 Link to this post

    Hi Alex,

     


    We do not provide an exact alternative of the separator implemented in WinForms. However you can easily implement it as demonstrated in the following blog post "How To Create a Vertical Separator with WPF".



    Greetings,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  4. Alex
    Alex avatar
    6 posts
    Member since:
    Jun 2011

    Posted 25 Jul 2012 Link to this post

    Hi Vanya

    >> easily

    hmmm, i don't quite get styles/templates etc and haven't even used Expression Blend.

    I had a look at the SpoiledTechie's instructions, but they look like they will set _all_ separators to be vertical (though that interpretation might be due to me not translating properly).  I want both horizontal and vertical separators in different places.

    Plus, my code works (so far)      ;-)

    cheers

    Alex
  5. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 25 Jul 2012 Link to this post

    Hello Alex,

     

    In my opinion you do not have to use Microsoft Expression Blend for that purpose.
    Actually you have a variety of options here. 
    For example you may define a simple Border as follows, no matter horizontal/vertical:


    <Border Background="White" BorderBrush="#FF848484" BorderThickness="0,1,0,0" Height="2"/>
            

    You may adjust those according to the desired layout of your application. 
    On the other hand you may also use a GridSplitter for that purpose. 


    Regards,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top