Message 1 of 23
My first .NET code with lots of errors, please need help.
Not applicable
05-19-2010
05:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I am having a difficult time understanding the errors that the .NET API is giving me. When I run my first code:
'---code--------------------------------------
Imports Autodesk.AutoCAD.Runtime
Public Class vbstudentClass
' Define command 'NewCmd1'
_
Public Sub NewCmd1()
MsgBox("NewCmd1")
' Type your code here
End Sub
End Class
'----Immediate Window--------------------------------------
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='NaN' BindingExpression:Path=Source.MinimumWidth; DataItem='ToolBarControl' (Name=''); target element is 'ToolBarControl' (Name=''); target property is 'MinWidth' (type 'Double')
System.Windows.Data Error: 39 : BindingExpression path error: 'BackgroundOpacity' property not found on 'object' ''ContentPresenter' (Name='PART_CustomizeButtonInMainPanel')'. BindingExpression:Path=BackgroundOpacity; DataItem='ContentPresenter' (Name='PART_CustomizeButtonInMainPanel'); target element is 'SystemDropShadowChrome' (Name='Shdw'); target property is 'Opacity' (type 'Double')
System.Windows.Data Error: 39 : BindingExpression path error: 'Current' property not found on 'object' ''QuickAccessUndoControl' (HashCode=32115247)'. BindingExpression:Path=Current; DataItem='QuickAccessUndoControl' (HashCode=32115247); target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 39 : BindingExpression path error: 'Current' property not found on 'object' ''QuickAccessRedoControl' (HashCode=6503226)'. BindingExpression:Path=Current; DataItem='QuickAccessRedoControl' (HashCode=6503226); target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='NaN' BindingExpression:Path=Source.MinimumWidth; DataItem='InfoToolbar' (Name='InfoCenter'); target element is 'InfoToolbar' (Name='InfoCenter'); target property is 'MinWidth' (type 'Double')
System.Windows.Data Error: 39 : BindingExpression path error: 'BackgroundOpacity' property not found on 'object' ''ContentPresenter' (Name='PART_CustomizeButtonInMainPanel')'. BindingExpression:Path=BackgroundOpacity; DataItem='ContentPresenter' (Name='PART_CustomizeButtonInMainPanel'); target element is 'SystemDropShadowChrome' (Name='Shdw'); target property is 'Opacity' (type 'Double')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mToggleButton'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'KeyTipPlacementTarget' (type 'UIElement')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mToggleButton'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'KeyTipActivationTarget' (type 'UIElement')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mText'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'KeyTipPlacementTarget' (type 'UIElement')
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=BackgroundBorderColor; DataItem=null; target element is 'SolidColorBrush' (HashCode=5425146); target property is 'Color' (type 'Color')
Thank you,
-Jay
I am having a difficult time understanding the errors that the .NET API is giving me. When I run my first code:
'---code--------------------------------------
Imports Autodesk.AutoCAD.Runtime
Public Class vbstudentClass
' Define command 'NewCmd1'
Public Sub NewCmd1()
MsgBox("NewCmd1")
' Type your code here
End Sub
End Class
'----Immediate Window--------------------------------------
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='NaN' BindingExpression:Path=Source.MinimumWidth; DataItem='ToolBarControl' (Name=''); target element is 'ToolBarControl' (Name=''); target property is 'MinWidth' (type 'Double')
System.Windows.Data Error: 39 : BindingExpression path error: 'BackgroundOpacity' property not found on 'object' ''ContentPresenter' (Name='PART_CustomizeButtonInMainPanel')'. BindingExpression:Path=BackgroundOpacity; DataItem='ContentPresenter' (Name='PART_CustomizeButtonInMainPanel'); target element is 'SystemDropShadowChrome' (Name='Shdw'); target property is 'Opacity' (type 'Double')
System.Windows.Data Error: 39 : BindingExpression path error: 'Current' property not found on 'object' ''QuickAccessUndoControl' (HashCode=32115247)'. BindingExpression:Path=Current; DataItem='QuickAccessUndoControl' (HashCode=32115247); target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 39 : BindingExpression path error: 'Current' property not found on 'object' ''QuickAccessRedoControl' (HashCode=6503226)'. BindingExpression:Path=Current; DataItem='QuickAccessRedoControl' (HashCode=6503226); target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='NaN' BindingExpression:Path=Source.MinimumWidth; DataItem='InfoToolbar' (Name='InfoCenter'); target element is 'InfoToolbar' (Name='InfoCenter'); target property is 'MinWidth' (type 'Double')
System.Windows.Data Error: 39 : BindingExpression path error: 'BackgroundOpacity' property not found on 'object' ''ContentPresenter' (Name='PART_CustomizeButtonInMainPanel')'. BindingExpression:Path=BackgroundOpacity; DataItem='ContentPresenter' (Name='PART_CustomizeButtonInMainPanel'); target element is 'SystemDropShadowChrome' (Name='Shdw'); target property is 'Opacity' (type 'Double')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mToggleButton'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'KeyTipPlacementTarget' (type 'UIElement')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mToggleButton'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'KeyTipActivationTarget' (type 'UIElement')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mText'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'KeyTipPlacementTarget' (type 'UIElement')
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=BackgroundBorderColor; DataItem=null; target element is 'SolidColorBrush' (HashCode=5425146); target property is 'Color' (type 'Color')
Thank you,
-Jay