alexander.skibin
alexander.skibin

Reputation: 133

wpf form does not redraw

I have made plugin for autodesk navisworks with wpf. It have a form that should be filled in after mouse down event.

public override bool MouseDown(...)
{
    ...
    //wpf Form
    WPFControl wpf = new WPFControl();

    //GetProperty - method that cleares all items
    //then creates tab control, tab items and fills gridview
    wpf.GetProperty();

}

First time after initialization wpf form fills, but then it does not redraw. However, tab control, tab items and grid view changes in debug mode. I can't understand why it does not redraw.

At the same time programmatically added button with GetProperty method refreshes wpf form.

private void btnChooseTemp_Click(object sender, RoutedEventArgs e)
{
     GetProperty();
}

Upvotes: 0

Views: 146

Answers (0)

Related Questions