c# - How can I access the ItemsPanel of a ListBox at runtime in silverlight? -
How do I use the items panel in a list box at runtime in Silverlight?
There are two ways to achieve this, the simplest is the Silverlight Toolkit: Or you can use VisualTreeHelper and type the following recursive method: and get results in a similar way:
using System.Windows.Controls.Primitives; Private Zero LB_loaded () {var itemsPanel = LB.GetVisualChildren (.) OfType & lt; Panel & gt; (). FirstOrDefault (); }
T GetFirstChildOfType
zero item page Nmuna_loded (object sender, routing Aventarj e) {var item = Table = GetFirstChildOfType & lt; Panel & gt; (LB); }
Comments
Post a Comment