2

I set an one way binding to Width property of GridViewColumn.At 1st time it gets value from binding and sets it to Width property.When source is changed it gets value from binding, but it doesnt set to Width property.What to do ? Here is code

<GridViewColumn Width="{Binding MaxWidthForTypeColumn}" >

I dont know clearly,maybe it is set,but no change in GridViewColumn.

public int MaxWidthForTypeColumn
    {
        get
        {
            if (suggestions.Count != 0)
            {
                var max = from elemnt in suggestions
                          select elemnt.TypeInfo.Length;
                int x = max.Max();
                return x + 100;
            }
            else
                return 20;
        }

    }

i call event from other property

[EDIT] This is bug as bug in ListViewItem width property

Rabi
  • 135
  • 1
  • 2
  • 16

0 Answers0