Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1250
xamComboEditor combobox items
posted

I am trying to iterate the combobox items and it is always null.

Here is what I'm trying to accomplish:

foreach (ComboBoxItem Item in ListEditor.ComboBox.Items)
    {
         Item.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
         if (Item.DesiredSize.Width > Width) Width = Item.DesiredSize.Width;
    }

ListEditor.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
ListEditor.Width = ListEditor.DesiredSize.Width + Width;

Parents Reply Children
No Data