This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I am attemting to bind to the Value property of an IntegerTextBox.
When I set the Value to a constant, it works fine. When I try to set a Binding, it throws an excepting deep down in framework code. See below for stack trace."
at System.Object.GetType()\r\n at System.Windows.Data.BindingExpressionBase.ConvertFallbackValue(Object value, DependencyProperty dp, Object sender)\r\n at System.Windows.Data.BindingExpressionBase.UseFallbackValue()\r\n at System.Windows.Data.BindingExpressionBase.get_Value()\r\n at System.Windows.DependencyObject.EvaluateExpression(EntryIndex entryIndex, DependencyProperty dp, Expression expr, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry newEntry)\r\n at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)\r\n at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)\r\n at System.Windows.Markup.BamlRecordReader.SetDependencyValueCore(DependencyObject dependencyObject, DependencyProperty dependencyProperty, Object value)\r\n at System.Windows.Markup.BamlRecordReader.SetDependencyComplexProperty(Object currentTarget, BamlAttributeInfoRecord attribInfo, Object o)\r\n at System.Windows.Markup.BamlRecordReader.SetPropertyValueToParent(Boolean fromStartTag, Boolean& isMarkupExtension)\r\n at System.Windows.Markup.BamlRecordReader.SetPropertyValueToParent(Boolean fromStartTag)\r\n at System.Windows.Markup.BamlRecordReader.ReadElementEndRecord(Boolean fromNestedBamlRecordReader)\r\n at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)\r\n at System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)\r\n at System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment()\r\n at System.Windows.Markup.TreeBuilder.Parse()\r\n at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)\r\n at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)\r\n at ResourceManager.Workflows.MailboxSizeDecrease.InitializeComponent() in c:\\TheDotNetFactory\\EmpowerID Suite 4.0\\Utilities\\ResourceManager\\ResourceManager\\Workflows\\MailboxSizeDecrease.xaml:line 1\r\n at ResourceManager.Workflows.MailboxSizeDecrease..ctor() in C:\\TheDotNetFactory\\EmpowerID Suite 4.0\\Utilities\\ResourceManager\\ResourceManager\\Workflows\\MailboxSizeDecrease.xaml.cs:line 24"
|
|
|
Hmm, I have tried this in our test application and have been unable to reproduce the problem: I have an IntegerTextBox.Value binding to an integer property successfully. If you are not using a recent nightly build, would it be possible for you to download the nightly build and try again? (http://www.mindscape.co.nz/Products/WpfElements/nightlybuilds.aspx for the trial edition, or from the store for the retail edition) I don't recall having seen or fixed a problem like this, but just in case. If you get the problem with the nightlies, could you send me a small project and instructions that reproduce the issue? You can attach zip files via the Options tab. Thanks! |
|