Note that there are some explanatory texts on larger screens.

plurals
  1. POLabel Target="{Binding ElementName=UIName}" bug, or is it just me?
    primarykey
    data
    text
    <p>I've been tring to get this example to work, but there seems to be a bug in the code Label Target code, in that when you click on the second label the focus is set to the DatePicker rather than the TextBox, regardless which label you click first, also when you have entered the date the second label still sets it focus to DatePicker.</p> <pre><code>&lt;!-- Unbound Date of Birth field --&gt; &lt;sdk:Label Content="Date of Birth" IsRequired="True" Margin="5" /&gt; &lt;StackPanel Orientation="Horizontal" Grid.Column="1"&gt; &lt;sdk:DatePicker Height="23" /&gt; &lt;sdk:DescriptionViewer Description="Please enter your date of birth."/&gt; &lt;/StackPanel&gt; &lt;!-- ID Number field --&gt; &lt;sdk:Label Grid.Row="1" Margin="5" Target="{Binding ElementName=tbIdNumber}" /&gt; &lt;StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="1"&gt; &lt;TextBox x:Name="tbIdNumber" Height="23" Width="100" Text="{Binding IdNumber, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" /&gt; &lt;sdk:DescriptionViewer Target="{Binding ElementName=tbIdNumber}"/&gt; &lt;/StackPanel&gt; </code></pre> <p>I found this example here on the MSDN <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.label%28VS.95%29.aspx" rel="nofollow noreferrer">link text</a>. To me this seems to be a bug, or am I just losing it?</p> <p>Apologies if this is a duplicate question... I have googled this and all the examples seem to be the same, in that the target element is not being focused to.</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.
 

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