This is a migrated thread and some comments may be shown as answers.

Vertical Separator for wpf

4 Answers 3249 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 25 Jul 2012, 08:55 AM
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

4 Answers, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
answered on 25 Jul 2012, 09:24 AM
Never mind, I found out how:

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

Alex
0
Vanya Pavlova
Telerik team
answered on 25 Jul 2012, 09:28 AM
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.

0
Alex
Top achievements
Rank 1
answered on 25 Jul 2012, 09:40 AM
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
0
Vanya Pavlova
Telerik team
answered on 25 Jul 2012, 09:48 AM
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.

Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or