I am trying to add icon to content pane using the following code in xaml.
but it is throwing error: "Cannot convert string '../WPF.UI/Images/CustomDialogInformation.png' in attribute 'Image' to object of type 'System.Windows.Media.ImageSource'"
Plese suggest the solution for this..
<igDock:SplitPane igDock:XamDockManager.InitialLocation="DockedRight" SplitterOrientation="Horizontal">
<igDock:ContentPane x:Name="cpAdvancedSearch" Header="Advanced Search"
Image
="../WPF.UI/Images/CustomDialogInformation.png"
Background="#FFE1E1E1" IsPinned="False" AllowClose="False">
</igDock:ContentPane>
</igDock:SplitPane
>
Ritesh_2009 said: I am trying to add icon to content pane using the following code in xaml. but it is throwing error: "Cannot convert string '../WPF.UI/Images/CustomDialogInformation.png' in attribute 'Image' to object of type 'System.Windows.Media.ImageSource'" Plese suggest the solution for this..
That is a general error that you will get from the WPF framework when the path given is not a valid path to that image or CustomDialogInformation.png does not have a Build Action of Resource.