Category / Section
How to avoid Exception thrown while setting ShowDisplayFieldsOnly property in Pivot Schema designer
1 min read
It might occur due to the property “ShowDisplayFieldsOnly” initialized before the loading of Pivot Schema Designer with applied templates. Please initialize the property after the Pivot Schema designer loaded.
C#
public MainWindow() { InitializeComponent(); this.SchemaDesigner.Loaded += SchemaDesigner_Loaded; } void SchemaDesigner_Loaded(object sender, RoutedEventArgs e) { this.SchemaDesigner.ShowDisplayFieldsOnly = true; }