<?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 Floating Dockpane Width and Height as a proportion of screen resolution in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/floating-dockpane-width-and-height-as-a-proportion/m-p/859016#M4653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to set the initial width and height of a floating Dockpane as a proportion of the screen resolution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that the width or height is set in DAML via the width and height attributes.&amp;nbsp; ie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;dockPane id="myDockpane"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; caption="My Dockpane"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; className="myDockpaneViewModel"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dock="float"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="1200"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height="700"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;content className="myDockpaneView" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/dockPane&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, how can i make these values proportional to the screen resolution of the current user?&amp;nbsp; For example, if the users screen resolution was 1920 x 1080 and i wanted the initial floating dockpane to be 60% of this (i.e. 1152 x 648).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be achieved via Bindings or Code-Behind?&amp;nbsp; I am unsure as to how this would work in DAML (where the Dockpane width and height are set) as opposed to conventional approaches in XAML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance is kindly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Feb 2016 02:11:30 GMT</pubDate>
    <dc:creator>NaveenAdair</dc:creator>
    <dc:date>2016-02-14T02:11:30Z</dc:date>
    <item>
      <title>Floating Dockpane Width and Height as a proportion of screen resolution</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/floating-dockpane-width-and-height-as-a-proportion/m-p/859016#M4653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to set the initial width and height of a floating Dockpane as a proportion of the screen resolution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that the width or height is set in DAML via the width and height attributes.&amp;nbsp; ie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;dockPane id="myDockpane"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; caption="My Dockpane"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; className="myDockpaneViewModel"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dock="float"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="1200"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height="700"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;content className="myDockpaneView" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/dockPane&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, how can i make these values proportional to the screen resolution of the current user?&amp;nbsp; For example, if the users screen resolution was 1920 x 1080 and i wanted the initial floating dockpane to be 60% of this (i.e. 1152 x 648).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be achieved via Bindings or Code-Behind?&amp;nbsp; I am unsure as to how this would work in DAML (where the Dockpane width and height are set) as opposed to conventional approaches in XAML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance is kindly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Feb 2016 02:11:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/floating-dockpane-width-and-height-as-a-proportion/m-p/859016#M4653</guid>
      <dc:creator>NaveenAdair</dc:creator>
      <dc:date>2016-02-14T02:11:30Z</dc:date>
    </item>
  </channel>
</rss>

