<?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 Style and Brushes programatically in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/style-and-brushes-programatically/m-p/737155#M203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I access Esri styles and brushes programatically. I searched everywhere to find something like&amp;nbsp;SystemColors.ActiveBorderBrush. I want to create controls dynamically by code but can't find a way to add the style.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2020 12:15:38 GMT</pubDate>
    <dc:creator>PierreMasson</dc:creator>
    <dc:date>2020-09-10T12:15:38Z</dc:date>
    <item>
      <title>Style and Brushes programatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/style-and-brushes-programatically/m-p/737155#M203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I access Esri styles and brushes programatically. I searched everywhere to find something like&amp;nbsp;SystemColors.ActiveBorderBrush. I want to create controls dynamically by code but can't find a way to add the style.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2020 12:15:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/style-and-brushes-programatically/m-p/737155#M203</guid>
      <dc:creator>PierreMasson</dc:creator>
      <dc:date>2020-09-10T12:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Style and Brushes programatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/style-and-brushes-programatically/m-p/737156#M204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a ProGuide&amp;nbsp;for styling:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://github.com/esri/arcgis-pro-sdk/wiki/proguide-style-guide" title="https://github.com/esri/arcgis-pro-sdk/wiki/proguide-style-guide"&gt;ProGuide Style Guide · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&amp;nbsp; and there are references for brushes and colors:&lt;/P&gt;&lt;UL style="color: #24292e; background-color: #ffffff; margin-bottom: 16px; padding-left: 2em;"&gt;&lt;LI style="margin-top: 0.25em;"&gt;&lt;A href="https://esri.github.io/arcgis-pro-sdk/content/brushescolors/brushes.html" rel="nofollow" style="color: #0366d6; background-color: initial; text-decoration: underline;"&gt;Esri Brushes&lt;/A&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0.25em;"&gt;&lt;A href="https://esri.github.io/arcgis-pro-sdk/content/brushescolors/colors.html" rel="nofollow" style="color: #0366d6; background-color: initial; text-decoration: none;"&gt;Esri Colors&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And here is some sample code that might be of help:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/Styling-with-ArcGIS-Pro" title="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/Styling-with-ArcGIS-Pro"&gt;arcgis-pro-sdk-community-samples/Framework/Styling-with-ArcGIS-Pro at master · Esri/arcgis-pro-sdk-community-samples · G…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2020 14:53:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/style-and-brushes-programatically/m-p/737156#M204</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2020-09-10T14:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Style and Brushes programatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/style-and-brushes-programatically/m-p/737157#M205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have read and review all of this but still the only way to use Esri styles and brushes is through DynamicResources. I can't find nothing in SDK where I would be able to do this but with Esri Brushes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;TextBlock descrip = new TextBlock()&lt;BR /&gt; {&lt;BR /&gt; Visibility = Windows.Visibility.Visible,&lt;BR /&gt; TextWrapping = TextWrapping.Wrap,&lt;BR /&gt; TextTrimming = TextTrimming.CharacterEllipsis,&lt;BR /&gt; &lt;STRONG&gt;Background = Media.Brushes.Black&lt;/STRONG&gt;&lt;BR /&gt; };&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2020 15:00:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/style-and-brushes-programatically/m-p/737157#M205</guid>
      <dc:creator>PierreMasson</dc:creator>
      <dc:date>2020-09-10T15:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Style and Brushes programatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/style-and-brushes-programatically/m-p/737158#M206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can try something like this code snippet below.&amp;nbsp; All the Esri brushes are listed in the wiki page shared by Wolf above.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;      &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; esriBrush &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Application&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Current&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Resources&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Esri_BorderPressedBrush"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; Brush&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
      textBlock&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Foreground &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; esriBrush&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:24:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/style-and-brushes-programatically/m-p/737158#M206</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2021-12-12T07:24:25Z</dc:date>
    </item>
  </channel>
</rss>

