Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: PropertyGrid custom type error

$
0
0
Simple
System.Windows.Data Error: 17 : Cannot get 'Brush' value (type 'Brush') from 'Value' (type 'myClass1'). BindingExpression:Path=Value.Brush; DataItem='PropertyItem' (Name=''); target element is 'TextBlock' (Name=''); target property is 'Background' (type 'Brush') InvalidCastException:'System.InvalidCastException: Unable to cast object of type 'Simple.myClass1' to type 'System.Windows.DependencyObject'.
   at MS.Internal.Data.PropertyPathWorker.GetValue(Object item, Int32 level)
   at MS.Internal.Data.PropertyPathWorker.RawValue(Int32 k)'
System.Windows.Data Error: 17 : Cannot get 'Text' value (type 'String') from 'Value' (type 'myClass1'). BindingExpression:Path=Value.Text; DataItem='PropertyItem' (Name=''); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String') InvalidCastException:'System.InvalidCastException: Unable to cast object of type 'Simple.myClass1' to type 'System.Windows.DependencyObject'.
   at MS.Internal.Data.PropertyPathWorker.GetValue(Object item, Int32 level)
   at MS.Internal.Data.PropertyPathWorker.RawValue(Int32 k)'

Viewing all articles
Browse latest Browse all 2157

Trending Articles



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