We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

EXCEPTIONS/crashes in wpf-designer AND fix!

Thread ID:

Created:

Updated:

Platform:

Replies:

94546 May 19,2010 07:38 PM UTC May 24,2010 05:16 AM UTC WPF 1
loading
Tags: GridControl
Dennis Schöpper
Asked On May 19, 2010 07:38 PM UTC


Since several versions of the WPF Grid, there are issues with exceptions in the wpf designer and expression blend.

For example when putting the cursor on a GridDataColumnStyle element, the wpf designer raises an exception,
and you have to reload the whole file.

The exceptions are caused by empty Category attributes in the Syncfusion libraries.
I am giving you detailed information on how to fix this.

The following parts in your libraries contain Category("") entries. Each of them crashes the designer!
PLEASE fix that by for example replacing Category("") with Category("Other").

namespace Syncfusion.Windows.Controls.VirtualTreeView
{
public class TreeStyleInfo : StyleInfoBase, IRenderCellInfo
{
[Category(""), Description(""), Browsable(true)]
public Brush Background;
[Description(""), Browsable(true), Category("")]
public CellMarginsInfo BorderMargins;
[Browsable(true), Description("Top, left, bottom, and right border settings."), Category(""), DesignerSerializationVisibility(2)]
public CellBordersInfo Borders;
[Description("Contains cell type information of a cell."), Browsable(true), Category("")]
public TreeCellRenderer CellRenderer;
[Browsable(true), Description("The DataTemplate used to display an item."), Category(""), DesignerSerializationVisibility(0)]
public DataTemplate CellTemplate;
[Browsable(true), Description("The DataTemplate used to display an item."), Category(""), DesignerSerializationVisibility(0)]
public string CellTemplateKey;
[DesignerSerializationVisibility(0), Category(""), Description("Contains cell value information of a cell."), Browsable(false)]
public object CellValue;
[Description("Contains cell value type information of a cell."), Browsable(true), Category("")]
public Type CellValueType;
[TypeConverter(typeof(CultureInfoConverter)), DisposeableProperty(false), Description("The culture information holds rules for parsing and formatting the cell's value."), Browsable(true), Category(""), ImmutableObject(true), CloneableProperty(false)]
public System.Globalization.CultureInfo CultureInfo;
[Category(""), NotifyParentProperty(true), Browsable(true), Description("Contains format information of a cell.")]
public string Format;
[Browsable(true), Category(""), Description("Gets the formatted text value")]
public string FormattedText;
[Description("Gets the formatted text value"), Browsable(true), Category("")]
public string Text;
}
}
namespace Syncfusion.Windows.Controls.Grid
{
public class GridStyleInfo : StyleInfoBase, IRenderCellInfo
{
[Browsable(true), Description(""), Category("")]
public Brush Background;
[Description("The base style for this style instance with default values for properties that are not initialized for this style object."), Category(""), Browsable(true)]
public string BaseStyle;
[Browsable(true), Category(""), Description("")]
public CellMarginsInfo BorderMargins;
[Description("Top, left, bottom, and right border settings."), Browsable(true), DesignerSerializationVisibility(2), Category("")]
public CellBordersInfo Borders;
[Browsable(true), DesignerSerializationVisibility(0), Category(""), Description("The DataTemplate for the cell.")]
public DataTemplate CellTemplate;
[Description("The DataTemplate used to display the cell."), DesignerSerializationVisibility(0), Browsable(true), Category("")]
public string CellTemplateKey;
[Browsable(true), Description("Contains cell type information of a cell."), TypeConverter(typeof(GridCellTypeNameConverter)), Category("")]
public string CellType;
[DesignerSerializationVisibility(0), Description("Contains cell value information of a cell."), Browsable(false), Category("")]
public object CellValue;
[Description("Contains cell value type information of a cell."), Browsable(true), Category("")]
public Type CellValueType;
[TypeConverter(typeof(CultureInfoConverter)), DisposeableProperty(false), Description("The culture information holds rules for parsing and formatting the cell's value."), Browsable(true), Category(""), ImmutableObject(true), CloneableProperty(false)]
public System.Globalization.CultureInfo CultureInfo;
[Description("Gets / sets the text that is shown in check box or pushbuttons."), Browsable(true), Category("")]
public string Description;
[Browsable(false), Category(""), Description("Holds error information if a text could not be converted to the Type specified with CellValueType.")]
public string Error;
[Description("Holds exception."), Browsable(false), Category("")]
public System.Exception Exception;
[Description("The font for drawing text."), Browsable(true), DesignerSerializationVisibility(2), Category("")]
public GridFontInfo Font;
[Category(""), Description("The brush that paints the foreground of the control."), Browsable(true)]
public Brush Foreground;
[Description("Contains format information of a cell."), Browsable(true), Category("")]
public string Format;
[Browsable(true), DesignerSerializationVisibility(0), Category(""), Description("Returns a formatted text for the default value for a specified Cell")]
public string FormatPreview;
[Description("Gets the formatted text value"), Browsable(true), RefreshProperties(2), Category(""), DesignerSerializationVisibility(0)]
public string FormattedText;
[Category(""), Browsable(true), Description("")]
public CellMarginsInfo Padding;
[Browsable(false), Description("Specifies the permissable formats used to parse a user entry."), NotifyParentProperty(true), DesignerSerializationVisibility(0), Category("")]
public string[] ParseFormats;
[Category(""), Description("Specifies if cell contents can be modified by the user. You can programmatically change Read-only cells by setting IgnoreReadOnly to True."), Browsable(true)]
public bool ReadOnly;
[Category(""), Browsable(true)]
public bool StrictValueType;
[Browsable(false), Description("A custom tag you can associate with a cell."), Category("")]
public object Tag;
[Browsable(true), Description("Gets / sets the value as a string."), Category("")]
public string Text;
[Description(""), Category(""), Browsable(true)]
public CellMarginsInfo TextMargins;
}
public class GridRenderStyleInfo : GridStyleInfo, IStyleChanged, IAllowInvalidateCell
{
[Browsable(true), Description("Contains cell type information of a cell."), Category("")]
public IGridCellRenderer CellRenderer;
}
public class GridFontInfo : StyleInfoSubObjectBase
{
[Browsable(true), Description("Gets or sets the orientation of this font object."), Category("")]
public int Orientation;
}
}
namespace Syncfusion.Windows.Controls.Cells
{
public class CellBordersInfo : StyleInfoSubObjectBase
{
[Browsable(true), Category(""), Description("The bottom border")]
public Pen Bottom;
[Description("The left border"), Browsable(true), Category("")]
public Pen Left;
[Browsable(true), Description("The right border"), Category("")]
public Pen Right;
[Description("The top border"), Category(""), Browsable(true)]
public Pen Top;
}
}

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On May 24, 2010 05:16 AM UTC

Hi Dennis,
Thanks for the details. We request you to create a Direct-Trac incident to follow up on this.

Thanks,
Fahad

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;