Click here to Skip to main content
15,902,445 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In the below code
<y:base x:Name="baseclass" x:Key="basetest"/>
this line prompting error like "Can't create instance of 'base'".

base.vb

Imports Tool2DLL
Public Class base
    Inherits WpfBaseToolBar   
End Class


In the above code, Tool2DLL is the dll we created and wpfbasetoolbar is the class which in the DLL

MainWindow.xaml

<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:y="clr-namespace:WpfApplication1" 
    xmlns:y1="clr-namespace:Tool2DLL;assembly=WpfControlLibrary1" 
    Height="350" Width="525">
    <Window.Resources>
        <y:base x:Name="baseclass" x:Key="basetest"/>
     </Window.Resources>
    <Grid>
          
    </Grid>
</Window>


How to solve the error. Any idea would be appriciable

Thanks & Regards
jai
Posted
Updated 23-Dec-14 0:19am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900