<?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 Trigger Focus Mode programmatically in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Trigger-Focus-Mode-programmatically/m-p/991819#M22816</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a custom visual where I display different content depending on the &lt;STRONG&gt;&lt;EM&gt;options.isInFocus&lt;/EM&gt;&lt;/STRONG&gt; property. I would like to add a way to trigger &lt;STRONG&gt;&lt;EM&gt;Focus Mode&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;directly from the visual. I intend on adding a "button" via d3 that can potentially trigger the change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if anyone has any suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gabriel GH&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Mar 2020 21:27:01 GMT</pubDate>
    <dc:creator>gabereal</dc:creator>
    <dc:date>2020-03-25T21:27:01Z</dc:date>
    <item>
      <title>Trigger Focus Mode programmatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Trigger-Focus-Mode-programmatically/m-p/991819#M22816</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a custom visual where I display different content depending on the &lt;STRONG&gt;&lt;EM&gt;options.isInFocus&lt;/EM&gt;&lt;/STRONG&gt; property. I would like to add a way to trigger &lt;STRONG&gt;&lt;EM&gt;Focus Mode&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;directly from the visual. I intend on adding a "button" via d3 that can potentially trigger the change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if anyone has any suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gabriel GH&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 21:27:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Trigger-Focus-Mode-programmatically/m-p/991819#M22816</guid>
      <dc:creator>gabereal</dc:creator>
      <dc:date>2020-03-25T21:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Focus Mode programmatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Trigger-Focus-Mode-programmatically/m-p/991838#M22817</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="146402" data-lia-user-login="gabereal" class="lia-mention lia-mention-user"&gt;gabereal&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If you've made the &lt;FONT face="courier new,courier"&gt;IVisualHost&lt;/FONT&gt; object (&lt;FONT face="courier new,courier"&gt;options.host&lt;/FONT&gt;) object from the &lt;FONT face="courier new,courier"&gt;constructor&lt;/FONT&gt; available to your visual, you can attach its &lt;FONT face="courier new,courier"&gt;switchFocusModeState&lt;/FONT&gt; method to a button's &lt;FONT face="courier new,courier"&gt;click&lt;/FONT&gt; event, which will trigger focus mode, e.g.:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="pl-en"&gt;switchFocusModeState&lt;/SPAN&gt;&lt;SPAN class="pl-kos"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-c1"&gt;true&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN class="pl-kos"&gt;&lt;FONT face="courier new,courier"&gt;)&lt;/FONT&gt; will maximise the visual&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="pl-en"&gt;switchFocusModeState&lt;/SPAN&gt;&lt;SPAN class="pl-kos"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-c1"&gt;false&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN class="pl-kos"&gt;&lt;FONT face="courier new,courier"&gt;)&lt;/FONT&gt; will return the visual to its standard size&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;: &lt;A href="https://video.twimg.com/tweet_video/ETckkujU8AAWBu1.mp4" target="_self"&gt;Here's a quick proof-of-concept I recently posted on Twitter that I'm currently working on,&lt;/A&gt; that confirms what you're planning to do is possible (using the &lt;FONT face="courier new,courier"&gt;isInFocus&lt;/FONT&gt; property to render different content depending on view).&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 22:02:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Trigger-Focus-Mode-programmatically/m-p/991838#M22817</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2020-03-25T22:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Focus Mode programmatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Trigger-Focus-Mode-programmatically/m-p/991903#M22819</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397" data-lia-user-login="dm-p" class="lia-mention lia-mention-user"&gt;dm-p&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick response. I was able to implement the functionality I wanted using the &lt;U&gt;&lt;EM&gt;switchFocusModeState&lt;/EM&gt;&lt;/U&gt; method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gabriel&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 22:42:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Trigger-Focus-Mode-programmatically/m-p/991903#M22819</guid>
      <dc:creator>gabereal</dc:creator>
      <dc:date>2020-03-25T22:42:23Z</dc:date>
    </item>
  </channel>
</rss>

