Note that there are some explanatory texts on larger screens.

plurals
  1. POWPF include resource directory XamlParserException
    text
    copied!<p>I have a userControl like this:</p> <pre><code>&lt;UserControl x:Class="LoginModule.LoginView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:controls="clr-namespace:UserControls;assembly=UserControls" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" &gt; &lt;UserControl.Resources&gt; &lt;ResourceDictionary Source="pack://application:,,,/UserControls;component/Styles.xaml" /&gt; &lt;/UserControl.Resources&gt; &lt;Grid&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="30" /&gt; &lt;RowDefinition Height="30" /&gt; &lt;RowDefinition Height="30" /&gt; &lt;RowDefinition Height="40" /&gt; &lt;/Grid.RowDefinitions&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition Width="200" /&gt; &lt;ColumnDefinition Width="200" /&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Label Grid.Row="1" Grid.Column="0" Name="labelLogin" VerticalAlignment="Center"&gt;Login:&lt;/Label&gt; &lt;Label Grid.Row="2" Grid.Column="0" Name="labelPassword" VerticalAlignment="Center"&gt;Password:&lt;/Label&gt; &lt;TextBox Grid.Row="1" Grid.Column="1" Name="textboxLogin" VerticalAlignment="Center"&gt;&lt;/TextBox&gt; &lt;TextBox Grid.Row="2" Grid.Column="1" Name="textboxPassword" VerticalAlignment="Center"&gt;&lt;/TextBox&gt; &lt;Button Grid.Row="3" Grid.ColumnSpan="2" Template="{StaticResource SilverButton}" Height="25" Width="200" Name="buttonLogin" Content="Log In" Click="buttonLogin_Click" /&gt; &lt;/Grid&gt; &lt;/UserControl&gt; </code></pre> <p>In designer mode everything is ok (style works), all solution building with success. But when I run program with debug I get XamlParserException in:</p> <pre><code>&lt;ResourceDictionary Source="pack://application:,,,/UserControls;component/Styles.xaml" /&gt; </code></pre> <p>with message like: Could not load UserControl oir one of his elements. Could not load file. I have reference to UserControl.dll I don't know what's going on.</p> <p>Thanks for any fast help. Kamilos</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