Note that there are some explanatory texts on larger screens.

plurals
  1. POStyles form app.xaml not found by the designer
    primarykey
    data
    text
    <p>I've just noticed than my xaml editor cannot see styles defined in App.xaml.</p> <pre><code>&lt;Application x:Class="MyApp.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="Windows\MainWindow.xaml"&gt; &lt;Application.Resources&gt; &lt;ResourceDictionary&gt; &lt;ResourceDictionary.MergedDictionaries&gt; &lt;ResourceDictionary Source="/Assets/Themes/ShinyBlue.xaml"/&gt; &lt;/ResourceDictionary.MergedDictionaries&gt; // this one gets a warning that's never used, though it is &lt;LinearGradientBrush x:Key="backgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0"&gt; &lt;GradientStop Color="{StaticResource NormalBrushGradient3}" Offset="0.1" /&gt; &lt;GradientStop Color="{StaticResource NormalBrushGradient1}" Offset="0.4" /&gt; &lt;/LinearGradientBrush&gt; </code></pre> <p>Every call to such a style is underlined and neither of the styles is loaded by designer (everything is back and white). When I run the app it all looks well - style are being loaded.</p> <p>Recently I changed the entry point to my app:</p> <pre><code>public partial class App : Application { [System.STAThreadAttribute()] public static int Main(string[] args) { var dirsToCreate = new[] { Settings.Default.PhotosDirectory }; foreach (var dir in dirsToCreate) { if (!Directory.Exists(dir)) Directory.CreateDirectory(dir); } App app = new App(); app.InitializeComponent(); app.Run(); return 0; } </code></pre> <p>I suspect, but cannot be sure that this changed entry point may have something to do with that (I changed MainWinow's build action to 'Page').</p> <p>Any ideas what's going on and how to fix that?</p>
    singulars
    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