Note that there are some explanatory texts on larger screens.

plurals
  1. POThe component does not have a resource identified by the uri
    text
    copied!<p>I want to create a Generic DataGrid to use on all my Views/UserControls.</p> <p>This is my structure:</p> <p><code>Class Library</code> called <code>"Core"</code>:</p> <p><code>Class</code> called <code>"ViewBase"</code>:</p> <pre><code>public class ViewBase : UserControl { public ViewBase() { } //Rest of Methods and Properties } </code></pre> <p><code>Class Library</code> called <code>"Controls"</code>:</p> <p><code>UserControl</code> Called <code>"GridView"</code>:</p> <p>XAML:</p> <pre><code> &lt;vb:ViewBase x:Class="Controls.GridView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vb="clr-namespace:Core;assembly=Core"&gt; &lt;Grid&gt; &lt;DataGrid&gt;&lt;/DataGrid&gt; &lt;/Grid&gt; &lt;/vb:ViewBase&gt; </code></pre> <p>Code Behind:</p> <pre><code>using Core; public partial class GridView : ViewBase { public GridView () { InitializeComponent(); } } </code></pre> <p>Then is the WPF Aplication called "WPFApp":</p> <p><code>Class</code> called <code>"View"</code>:</p> <pre><code>using Controls; public class View : GridView { public View() { InitializeComponent(); } } </code></pre> <p>My whole idea is to use <code>GridView</code> where i need a <code>DataGrid</code>.</p> <p>When i run the application i get this error:</p> <pre><code>"The component 'WpfApp.View' does not have a resource identified by the URI '/Controls;component/GridView.xaml'." </code></pre> <p>What am i doing wrong?</p> <p>Is this the correct approach or am i way off?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload