I propose to change some with the following in order to prevent exception while debugging:
(It also solve one of your to :-))
DescriptorPropertyDefinitionBase.cs
internal void UpdateAdvanceOptionsForItem(MarkupObject markupObject, DependencyObject dependencyObject, DependencyPropertyDescriptor dpDescriptor,
out object tooltip)
{
tooltip = StringConstants.AdvancedProperties;
bool isResource = false;
bool isDynamicResource = false;
// EO: Modified next check about Style and DynamicResourceExtension which was given exception using: "markupProperty.Value"
var markupProperty = markupObject.Properties.FirstOrDefault(p => p.Name == PropertyName);
if (markupProperty != null)
{
isResource = typeof(Style).IsAssignableFrom(markupProperty.PropertyType);
isDynamicResource = typeof(DynamicResourceExtension).IsAssignableFrom(markupProperty.PropertyType);
}
if (isResource || isDynamicResource)
{
tooltip = StringConstants.Resource;
}
Comments: ** Comment from web user: BoucherS **
(It also solve one of your to :-))
DescriptorPropertyDefinitionBase.cs
internal void UpdateAdvanceOptionsForItem(MarkupObject markupObject, DependencyObject dependencyObject, DependencyPropertyDescriptor dpDescriptor,
out object tooltip)
{
tooltip = StringConstants.AdvancedProperties;
bool isResource = false;
bool isDynamicResource = false;
// EO: Modified next check about Style and DynamicResourceExtension which was given exception using: "markupProperty.Value"
var markupProperty = markupObject.Properties.FirstOrDefault(p => p.Name == PropertyName);
if (markupProperty != null)
{
isResource = typeof(Style).IsAssignableFrom(markupProperty.PropertyType);
isDynamicResource = typeof(DynamicResourceExtension).IsAssignableFrom(markupProperty.PropertyType);
}
if (isResource || isDynamicResource)
{
tooltip = StringConstants.Resource;
}
Comments: ** Comment from web user: BoucherS **
Hi,
This will be fixed in v2.9.