0 Replies - 2783 Views - Last Post: 09 April 2014 - 06:11 AM

#1 StealthRT  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 65
  • Joined: 29-September 08

WPF Expander content not wrapping

Posted 09 April 2014 - 06:11 AM

Need to add a WPF Expander to the form. It works just fine other than when you drop down the expander the text does not wrap around (meaning it just continues in a straight line even if the expander height is set to 200 or more)

My expander code is this:
Dim tmpExpander As New Expander

tmpExpander.Header = Mid(theHeader, 1, 75) & "..."
Canvas.SetTop(tmpExpander, 24 * calRowNum)
Canvas.SetLeft(tmpExpander, 0)
tmpExpander.Width = 308
tmpExpander.Name = "exp_" & calTheRowNum & "_" & calRowNum
tmpExpander.Background = New SolidColorBrush(Colors.Transparent)
tmpExpander.IsExpanded = False
tmpExpander.Content = theHeader
tmpExpander.BringIntoView()

Grid.SetRow(tmpExpander, 0)
Grid.SetColumn(tmpExpander, 0)
cavCal.Children.Add(tmpExpander)

AddHandler tmpExpander.GotFocus, AddressOf expanderFocus
AddHandler tmpExpander.LostFocus, AddressOf expanderLostFocus
AddHandler tmpExpander.Collapsed, AddressOf expanderLostFocus


How can i add a textbox inside the expander in order to use it's wrap-ability?

Is This A Good Question/Topic? 0
  • +

Page 1 of 1