Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Issue: Code to solve issue where using markupProperty .Value throw exception [22042]

$
0
0
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 **

Hi,

This will be fixed in v2.9.


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>