<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic GraphicLayer.GraphicsSource binding problem in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/graphiclayer-graphicssource-binding-problem/m-p/202007#M2357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using ArcGIS Runtime 10.2.7 and I am trying hard to bind GraphicsLayer.GraphicsSource to my view model. However, whatever I do, GraphicsSource of the GraphicsLayer is always null.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to set binding on this property? Is there some kind of bug with binding on this property you forgot to mention in Docs? Am I doing something wrong or missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If take following&amp;nbsp;code and inspect GraphicsLayer (eg. somewhere in codebehind), you will see that GraphicsSource is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My view:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;Window x:Class="EsriWpfApp1.MainWindow"
 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:local="clr-namespace:EsriWpfApp1"
 xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"
 mc:Ignorable="d"
 Title="MainWindow" Height="350" Width="525"&amp;gt;
 
 &amp;lt;Window.DataContext&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;local:MainViewModel/&amp;gt;
 &amp;lt;/Window.DataContext&amp;gt;
 &amp;lt;Grid&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:MapView&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Map&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer GraphicsSource="{Binding Shapes}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:MapView&amp;gt;
 &amp;lt;/Grid&amp;gt;
&amp;lt;/Window&amp;gt;&lt;/PRE&gt;&lt;P&gt;My ViewModel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;public class MainViewModel
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public GraphicCollection Shapes { get; set; } = new GraphicCollection();
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:10:41 GMT</pubDate>
    <dc:creator>JanPalas</dc:creator>
    <dc:date>2021-12-12T16:10:41Z</dc:date>
    <item>
      <title>GraphicLayer.GraphicsSource binding problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/graphiclayer-graphicssource-binding-problem/m-p/202007#M2357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using ArcGIS Runtime 10.2.7 and I am trying hard to bind GraphicsLayer.GraphicsSource to my view model. However, whatever I do, GraphicsSource of the GraphicsLayer is always null.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to set binding on this property? Is there some kind of bug with binding on this property you forgot to mention in Docs? Am I doing something wrong or missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If take following&amp;nbsp;code and inspect GraphicsLayer (eg. somewhere in codebehind), you will see that GraphicsSource is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My view:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;Window x:Class="EsriWpfApp1.MainWindow"
 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:local="clr-namespace:EsriWpfApp1"
 xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"
 mc:Ignorable="d"
 Title="MainWindow" Height="350" Width="525"&amp;gt;
 
 &amp;lt;Window.DataContext&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;local:MainViewModel/&amp;gt;
 &amp;lt;/Window.DataContext&amp;gt;
 &amp;lt;Grid&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:MapView&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Map&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer GraphicsSource="{Binding Shapes}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:MapView&amp;gt;
 &amp;lt;/Grid&amp;gt;
&amp;lt;/Window&amp;gt;&lt;/PRE&gt;&lt;P&gt;My ViewModel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;public class MainViewModel
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public GraphicCollection Shapes { get; set; } = new GraphicCollection();
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/graphiclayer-graphicssource-binding-problem/m-p/202007#M2357</guid>
      <dc:creator>JanPalas</dc:creator>
      <dc:date>2021-12-12T16:10:41Z</dc:date>
    </item>
  </channel>
</rss>

