Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here's a shot in the dark, based on what I imagine you're trying to achieve. I'm going to assume you're running a Window based full trust local app. Trust probably won't matter, just setting context.</p> <p>There are three pieces to the solution I'm imagining:</p> <pre><code>Window1.xaml (your main app window) &lt;Window blah blah&gt; &lt;Grid&gt; &lt;!--Your application content--&gt; &lt;local:PseudoDock VerticalAlignment='Bottom' /&gt; &lt;/Grid&gt; &lt;/Window&gt; PseudoDock.xaml &lt;UserControl Height='5'&gt; &lt;UserControl.Triggers&gt; &lt;Trigger Property='FrameworkElement.IsMouseOver'&gt; &lt;Setter Property='Height' Value='NaN' /&gt; &lt;/Trigger&gt; &lt;/UserControl.Triggers&gt; &lt;ItemsControl&gt; &lt;ItemsControl.ItemsPanelTemplate&gt; &lt;StackPanel Orientation='Horizontal' /&gt; &lt;/ItemsControl.ItemsPanelTemplate&gt; &lt;ItemsControl.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;Button Command='{Binding Path=Command}'&gt; &lt;StackPanel&gt; &lt;Image Source='{Binding Path=Icon}' /&gt; &lt;TextBlock Source='{Binding Path=Label}' /&gt; &lt;/StackPanel&gt; &lt;/Button&gt; &lt;/DataTemplate&gt; &lt;/ItemsControl.ItemTemplate&gt; &lt;/ItemsControl&gt; &lt;/UserControl&gt; </code></pre> <p>The important thing about the dock is that it's 5 pixels tall, which is unnoticeable at the bottom, and has a mouseover which raises it to full height. (You could also try setting an explicit height, I imagine that setting the height to NaN will have it measure against its children but I could be wrong).</p> <p>Lastly, the structure of the items which make up the dock:</p> <pre><code>DockItem.cs class DockItem{ ICommand Command{get;set;} String Label{get;set;} ImageSource Icon{get;set;} } </code></pre> <p>(After comment exchange) If you're looking to have it transparently sit over the desktop you'll need to set it this way:</p> <pre><code>&lt;Window WindowStyle='None' Background='Transparent' State='Maximized'&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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