Click here to Skip to main content
15,897,891 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Dynamic enumlist Pin
Not Active31-Aug-09 10:44
mentorNot Active31-Aug-09 10:44 
GeneralRe: Dynamic enumlist Pin
Pete O'Hanlon31-Aug-09 10:49
mvePete O'Hanlon31-Aug-09 10:49 
QuestionBinding DataSet to TreeView problem [Question specifically for Josh Smith/Anyone else who can help] Pin
Etienne_12331-Aug-09 7:09
Etienne_12331-Aug-09 7:09 
AnswerRe: Binding DataSet to TreeView problem Pin
Etienne_12331-Aug-09 7:34
Etienne_12331-Aug-09 7:34 
QuestionHow to upload and save images in database Pin
Nekkantidivya29-Aug-09 3:18
Nekkantidivya29-Aug-09 3:18 
AnswerRe: How to upload and save images in database Pin
Eduard Keilholz21-Sep-09 4:43
Eduard Keilholz21-Sep-09 4:43 
Questionlistbox, wpf and getchild Pin
pkboo29-Aug-09 0:31
pkboo29-Aug-09 0:31 
AnswerRe: listbox, wpf and getchild Pin
Pete O'Hanlon30-Aug-09 11:14
mvePete O'Hanlon30-Aug-09 11:14 
Your logic isn't correct here. The child of a Listbox is a border, so you need to keep enumerating through the child visuals using a recursive method. This is an example piece of code which gets the ScrollViewer (in C# I'm afraid):
public ScrollViewer FindScrollViewer(Visual myVisual)
{
  for (int i = 0; i < VisualTreeHelper.GetChildrenCount(myVisual); i++)
  {
    Visual child = (Visual)VisualTreeHelper.GetChild(myVisual, i);
    if (child is ScrollViewer)
    {
      return child as ScrollViewer;
    }
    return FindScrollViewer(child);
  }
  return null;
}
All you need do to call it is SV_ShowCalendarPanel = FindScrollViewer(monListBox);

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



GeneralRe: listbox, wpf and getchild Pin
pkboo30-Aug-09 22:13
pkboo30-Aug-09 22:13 
GeneralRe: listbox, wpf and getchild Pin
Pete O'Hanlon31-Aug-09 8:44
mvePete O'Hanlon31-Aug-09 8:44 
QuestionImage Pixel Manipulation Pin
Califer28-Aug-09 14:30
Califer28-Aug-09 14:30 
QuestionWPF sleeping-monitor-un-painted-windows problem Pin
FocusedWolf28-Aug-09 9:05
FocusedWolf28-Aug-09 9:05 
AnswerRe: WPF sleeping-monitor-un-painted-windows problem [modified] Pin
FocusedWolf30-Aug-09 8:52
FocusedWolf30-Aug-09 8:52 
QuestionWith ListBox embedded, DataGrid doesn’t popup ComboBox. Why? Pin
Frank W. Wu28-Aug-09 5:02
Frank W. Wu28-Aug-09 5:02 
AnswerRe: With ListBox embedded, DataGrid doesn’t popup ComboBox. Why? Pin
Abhinav S31-Aug-09 18:43
Abhinav S31-Aug-09 18:43 
QuestionNeed to convert win application to web application Pin
Hema Bairavan27-Aug-09 20:45
Hema Bairavan27-Aug-09 20:45 
AnswerRe: Need to convert win application to web application Pin
#realJSOP30-Aug-09 2:42
professional#realJSOP30-Aug-09 2:42 
Answer"specified element is already the logical child of another element. disconnect it first": (solved) PinPopular
kionaagility27-Aug-09 17:44
kionaagility27-Aug-09 17:44 
GeneralRe: "specified element is already the logical child of another element. disconnect it first": (solved) Pin
Edbert P31-Aug-09 16:26
Edbert P31-Aug-09 16:26 
Questionmedialine element does not play video from internet. Pin
vrajaraman27-Aug-09 16:04
vrajaraman27-Aug-09 16:04 
QuestionMajor help regarding WPF Application and WPF Browser Application? Pin
Johnny7927-Aug-09 7:51
Johnny7927-Aug-09 7:51 
AnswerRe: Major help regarding WPF Application and WPF Browser Application? Pin
Super Lloyd27-Aug-09 19:19
Super Lloyd27-Aug-09 19:19 
GeneralRe: Major help regarding WPF Application and WPF Browser Application? Pin
Johnny7928-Aug-09 5:20
Johnny7928-Aug-09 5:20 
AnswerRe: Major help regarding WPF Application and WPF Browser Application? Pin
Gideon Engelberth28-Aug-09 7:17
Gideon Engelberth28-Aug-09 7:17 
GeneralRe: Major help regarding WPF Application and WPF Browser Application? Pin
Johnny7928-Aug-09 7:28
Johnny7928-Aug-09 7:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.