Note that there are some explanatory texts on larger screens.

plurals
  1. POSilverlight: The resource {0} could not be resolved (in design time only)
    primarykey
    data
    text
    <p>I've created a new silverlight 4 project in VS2010.</p> <p>My App.xaml file is as follows:</p> <pre><code>&lt;Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="ZCall.App"&gt; &lt;Application.Resources&gt; &lt;ResourceDictionary&gt; &lt;ResourceDictionary.MergedDictionaries&gt; &lt;ResourceDictionary Source="Resources/Styles.xaml"/&gt; &lt;ResourceDictionary Source="Resources/ObjectResourceDictionary.xaml"/&gt; &lt;/ResourceDictionary.MergedDictionaries&gt; &lt;/ResourceDictionary&gt; &lt;/Application.Resources&gt; &lt;/Application&gt; </code></pre> <p>a sample xaml view that generates the error is:</p> <pre><code>&lt;UserControl x:Class="ZCall.View.Control.CDetailsControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" mc:Ignorable="d"&gt; &lt;Grid x:Name="LayoutRoot" Background="White"&gt; &lt;toolkit:BusyIndicator x:Name="biCDetails" BusyContent="Busy..."&gt; &lt;Grid&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition/&gt; &lt;RowDefinition Height="10"/&gt; &lt;RowDefinition/&gt; &lt;RowDefinition Height="10"/&gt; &lt;RowDefinition/&gt; &lt;RowDefinition Height="10"/&gt; &lt;RowDefinition/&gt; &lt;/Grid.RowDefinitions&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition Width="150"/&gt; &lt;ColumnDefinition Width="10"/&gt; &lt;ColumnDefinition Width="150"/&gt; &lt;ColumnDefinition Width="10"/&gt; &lt;ColumnDefinition Width="170"/&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="5" Orientation="Horizontal"&gt; &lt;TextBlock Text="Name:" Style="{StaticResource PatientLabel}"/&gt; &lt;TextBlock x:Name="txtName" Style="{StaticResource PatientData}"/&gt; &lt;/StackPanel&gt; &lt;/Grid&gt; &lt;/toolkit:BusyIndicator&gt; &lt;/Grid&gt; &lt;/UserControl&gt; </code></pre> <p>I get the errors on both PatientLabel and PatientData resources.</p> <p>My style.xaml file is located in Resources folder in the root of the project.</p> <p>My problem is that in design time, none of my styles defined in styles.xaml are recognized, and i get the error "The resource could not be resolved" for every style used, while in run time all the styles are resolved and displayed as it should be.</p> <p>Any suggestions?</p> <p>Thanks in advance, kruvi</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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