Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I created a user control from visual studio and right click then brought it over to Expression blend I manage to create the customized button but i add a event handler to it, i cant Btn.Click :\</p> <pre><code> &lt;UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:edc="clr-namespace:Microsoft.Expression.Controls;assembly=Microsoft.Expression.Drawing" mc:Ignorable="d" x:Class="Volunteer.LayoutRootControl" Height="127" Width="200"&gt; &lt;UserControl.Resources&gt; &lt;Style x:Key="ButtonStyle8" TargetType="Button"&gt; &lt;Setter Property="Template"&gt; &lt;Setter.Value&gt; &lt;ControlTemplate TargetType="Button"&gt; &lt;Grid&gt; &lt;edc:Callout AnchorPoint="0.85,1.19" CalloutStyle="Rectangle" Fill="#FFE054EF" FontSize="14.666999816894531" Stroke="Black"/&gt; &lt;ContentPresenter Height="96" Width="196"/&gt; &lt;/Grid&gt; &lt;/ControlTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;/Style&gt; &lt;/UserControl.Resources&gt; &lt;Button Style="{StaticResource ButtonStyle8}" HorizontalAlignment="Left" Height="102" VerticalAlignment="Top" Width="200"&gt; &lt;Button.Content&gt; &lt;StackPanel Orientation="Horizontal" Width="197" Margin="-40,-34,-41,-32"&gt; &lt;TextBlock Width="196" x:Name="BtnIN3" Text="" FontSize="22" TextWrapping="Wrap" Margin="0,0,0,-12" Height="95" /&gt; &lt;/StackPanel&gt; &lt;/Button.Content&gt; &lt;/Button&gt; &lt;/UserControl&gt; </code></pre>
 

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