By: Dr. WPF
Hey Josh! Excellent question. There is really no "elegant" solution for this type of scenario, but there are certainly some approaches that will work. Typically, rather than create a generic, reusable...
View ArticleBy: Deepak Makhija
Hi Dr. WPF, Firstly I must say it’s a very nice article which gives insight picture . I am stuck at one point in WPF. I have one drop down say DropDown1, on the basis of it’s change event, another drop...
View ArticleBy: Dr. WPF
Hi Deepak, In general, if you are doing this in code by waiting on containers to be generated, then you are probably going about it the wrong way. It would be much better to adapt your view model to...
View ArticleBy: Jim
wonderful posts, i really love them from my heart, in my job, they give me a more lovely understanding in WPF, Thanks.
View ArticleBy: rwb
OK. I want to write a customized listbox that represents a bar graph of sorts. Each bar will represent an execution time for one of many events. I want the bar height to represent a scaled value...
View ArticleBy: Dr. WPF
Hi rwb. It definitely sounds like a good candidate for a custom panel. You could have an attached property for both the start time and the duration. The panel would layout its children based on the...
View ArticleBy: Arnaud
I built a custom Panel for a ListBox that displays items like a “carousel”.It is 2D and displays item like if it was 3D.I use Panel.SetZIndex() on children to manage Z-Index.All is working well when I...
View ArticleBy: Dr. WPF
Hi Arnaud, I think you might be hitting a bug that I discovered about a year ago. (I provided a repro to Microsoft and they are aware of the problem in the underlying panel code, but I don’t know if a...
View ArticleBy: Max Palmer
Hi, I want to write a control that behaves like the Windows Media Centre menu. Essentially, it’s a carousel type control where the selected item is always in a fixed vertical location and selecting an...
View ArticleBy: Dr. WPF
Hi Max, It does sound like a good scenario for a custom panel. You are correct that a panel has no innate concept of selection, however, there is no reason you cannot define the concept of...
View Article
More Pages to Explore .....