Note that there are some explanatory texts on larger screens.

plurals
  1. POxaml parser is not detecting my converter
    text
    copied!<p>Like many others the xaml parser has decided not to detect my IvalueConverter object. First the converter: </p> <pre><code>using System; using System.Windows.Data; namespace Chess_Piece_Viewer.Helpers { public class DebugConverter : IValueConverter { public Object Convert(Object value, Type targetType, Object parameter, System.Globalization.CultureInfo culture) { //set a breakpoint here return value; } public Object ConvertBack(Object value, Type targetType, Object parameter, System.Globalization.CultureInfo culture) { //set a breakpoint here return value; } } </code></pre> <p>}</p> <p>Now the View (please note the DebugConverter object is underlined in Visual Studio because the parser cannot detect it which is my problem:</p> <pre><code> &lt;UserControl x:Class="Chess_Piece_Viewer.Views.ChessBoardView" 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:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:diagnostics="clr-namespace:System.Diagnostics;assembly=WindowsBase" xmlns:Helpers ="clr-namespace:CanvasViewTest.Helpers;assembly=CanvasViewTest" mc:Ignorable="d" MinHeight="80" MinWidth="80" d:DesignHeight="160" d:DesignWidth="160"&gt; &lt;UserControl.Resources&gt; &lt;Helpers:DebugConverter x:Name="DebugConverter"/&gt; &lt;/UserControl.Resources&gt; &lt;Border x:Name="border" BorderBrush="{Binding Path=ChessBoard.BoardBorderBrush, diagnostics:PresentationTraceSources.TraceLevel=High}" BorderThickness="{Binding Path=ChessBoard.BoardBorderThickness}" &gt; &lt;UniformGrid Rows="8" Columns="8" x:Name="Board"&gt; &lt;Canvas&gt; &lt;Rectangle x:Name="a1" Stroke="{Binding Path=ChessBoard.DarkSquareBorder, diagnostics:PresentationTraceSources.TraceLevel=High}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[0]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[1]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[2]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[3]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[4]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[5]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[6]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[7]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[8]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[9]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[10]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[11]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[12]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[13]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[14]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[15]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[16]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[17]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[18]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[19]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[20]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[21]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[22]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[23]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[24]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[25]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[26]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[27]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[28]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[29]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[30]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[31]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[32]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[33]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[34]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[35]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[36]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[37]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[38]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[39]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[40]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[41]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[42]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[43]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[44]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[45]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[46]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[47]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[48]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[49]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[50]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[51]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[52]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[53]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[54]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[55]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[56]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[57]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[58]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[59]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[60]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[61]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.LightSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.LightSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[62]}"/&gt; &lt;/Canvas&gt; &lt;Canvas&gt; &lt;Rectangle Stroke="{Binding Path=ChessBoard.DarkSquareBorder}"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{Binding Path=ChessBoard.DarkSquareColor}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;ContentControl DataContext="{Binding Path=ChessSquareViewModels[63]}"/&gt; &lt;/Canvas&gt; &lt;/UniformGrid&gt; &lt;/Border&gt; </code></pre> <p></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