Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try adding your <code>HubTile</code> as Content of <code>HyperLinkButton</code> or <code>Button</code> which supports <code>TiltEffect</code></p> <p>Add a <code>Style</code> to <code>PhoneApplicationPage.Resources</code> which works for <code>Button</code> and <code>HyperLinkButton</code> that adds support for other controls as <code>Content</code></p> <pre><code>&lt;phone:PhoneApplicationPage.Resources&gt; &lt;Style x:Key="EmptyButtonStyle" TargetType="primitives:ButtonBase"&gt; &lt;Setter Property="Background" Value="Transparent" /&gt; &lt;Setter Property="Padding" Value="0" /&gt; &lt;Setter Property="Template"&gt; &lt;Setter.Value&gt; &lt;ControlTemplate TargetType="primitives:ButtonBase"&gt; &lt;Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}"&gt; &lt;ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/&gt; &lt;/Border&gt; &lt;/ControlTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;/Style&gt; &lt;/phone:PhoneApplicationPage.Resources&gt; </code></pre> <p>Also add the primitives namespace to the page</p> <pre><code>xmlns:primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows" </code></pre> <p>Then use your <code>HubTile</code> as <code>HyperLinkButtons</code>'s (or <code>Button</code>) <code>Content</code> like this</p> <pre><code>&lt;HyperlinkButton Style="{StaticResource EmptyButtonStyle}"&gt; &lt;toolkit:HubTile toolkit:TiltEffect.IsTiltEnabled="True" Title="title" Message="This is message" x:Name="name" DisplayNotification="False" Source="pB.png" Tap="tap" /&gt; &lt;/HyperlinkButton&gt; </code></pre> <p>This will finally support <code>TiltEffect</code> and <code>HubTile</code></p>
    singulars
    1. This table or related slice is empty.
    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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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