Exception: "An exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll but was not handled in user code.
Additional information: 'Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '22' and line position '40'. "
Have Tried:
- Set Build Action of image to Resource
- Turned on first chance exceptions
- Running without an image on the button
- adding to front
pack://application:,,,
When I run the project without an image, everything loads just fine.
the namespace of this project Ribbon.Views
Xaml:
<Ribbon>
<Ribbon.ApplicationMenu>
<RibbonApplicationMenu Visibility="Collapsed"/>
</Ribbon.ApplicationMenu>
<Ribbon.QuickAccessToolBar>
<RibbonQuickAccessToolBar Visibility="Collapsed"/>
</Ribbon.QuickAccessToolBar>
<RibbonTab>
<RibbonTab.Header>
<RibbonTabHeader Visibility="Collapsed"/>
</RibbonTab.Header>
<RibbonGroup>
<RibbonButton Label="Main"
LargeImageSource="/imgs\FileIcon.png"
>
</RibbonButton>
</RibbonGroup>
</RibbonTab>
</Ribbon>