﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - UXCallOut Focus on first control</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXCallOut-Focus-on-first-control/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>UXCallOut Focus on first control</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXCallOut-Focus-on-first-control/</link><pubDate>Thu, 10 Mar 2011 22:37:29 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Ross,&lt;/p&gt;&lt;p&gt;Actually you can focus directly by using Focus() method in Opened event. However, this could not work for the first time because the element has not beed rendered. Therefore, you can use Dispatcher as the workaround.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;private void coWeighHS_Opened(object sender, Intersoft.Client.Framework.ISRoutedEventArgs e)
{
     this.Dispatcher.BeginInvoke(delegate { nudCountHS.Focus(); });
}&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>UXCallOut Focus on first control</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXCallOut-Focus-on-first-control/</link><pubDate>Thu, 10 Mar 2011 11:22:40 GMT</pubDate><dc:creator>rasmister</dc:creator><description>&lt;p&gt;Hello all,&lt;/p&gt;
&lt;p&gt;I'm trying to get focus on the first field in a UXCallOut and can't seem to get it to work in MVVM.  Here's the xaml snippet:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;            &amp;lt;Intersoft:UXCallOut x:Name="coWeighHS" DisableOverlay="False" PreferredPosition="Right" IsOpen="{Binding IsWeighHSCalloutOpen, Mode=TwoWay}" VerticalAlignment="Center"&amp;gt;&lt;/p&gt;
&lt;p&gt;                &amp;lt;Intersoft:UXCallOut.Header&amp;gt;&lt;/p&gt;
&lt;p&gt;                    &amp;lt;Intersoft:UXButton Content="Weigh" HorizontalAlignment="Center" Margin="4" Command="{Binding WeighHSCommand}"&lt;/p&gt;
&lt;p&gt;                        Width="100" Background="#3FD7D7D7" GlassBackground="{x:Null}" Foreground="White" DisplayMode="ContentAndImage" Icon="/TourneyJett;component/Assets/Images/Dock/weighin.png" ImageHeight="20" ImageWidth="20"&amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;Intersoft:UXButton.ContentEffect&amp;gt;&lt;/p&gt;
&lt;p&gt;                            &amp;lt;DropShadowEffect ShadowDepth="1"/&amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;/Intersoft:UXButton.ContentEffect&amp;gt;&lt;/p&gt;
&lt;p&gt;                    &amp;lt;/Intersoft:UXButton&amp;gt;&lt;/p&gt;
&lt;p&gt;                &amp;lt;/Intersoft:UXCallOut.Header&amp;gt;&lt;/p&gt;
&lt;p&gt;                &amp;lt;StackPanel&amp;gt;&lt;/p&gt;
&lt;p&gt;                    &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;Intersoft:FieldLabel x:Name="flCountHS" Header="Count:" HeaderPosition="Top" HeaderForeground="White" &amp;gt;&lt;/p&gt;
&lt;p&gt;                            &amp;lt;Intersoft:UXNumericUpDown x:Name="nudCountHS" Width="40" Minimum="0" Maximum="5" Value="{Binding CurrentEventResultHS.ResultCount, Mode=TwoWay, NotifyOnValidationError=True}" DisplayMask="0" EditMask="0" VerticalAlignment="Center" Margin="2" /&amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;/Intersoft:FieldLabel&amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;Intersoft:FieldLabel Header="Weight:" HeaderPosition="Top" HeaderForeground="White" &amp;gt;&lt;/p&gt;
&lt;p&gt;                            &amp;lt;Intersoft:UXNumericUpDown Width="80" Minimum="0" Maximum="40" Value="{Binding CurrentEventResultHS.ResultValue, Mode=TwoWay, NotifyOnValidationError=True}" DisplayMask="#0.####" EditMask="#0.####" VerticalAlignment="Center" Margin="2"/&amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;/Intersoft:FieldLabel&amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;Intersoft:FieldLabel Header="Penalty:" HeaderPosition="Top" HeaderForeground="White" &amp;gt;&lt;/p&gt;
&lt;p&gt;                            &amp;lt;Intersoft:UXNumericUpDown Width="80" Minimum="0" Maximum="40" Value="{Binding CurrentEventResultHS.ResultPenalty, Mode=TwoWay, NotifyOnValidationError=True}" DisplayMask="#0.####" EditMask="#0.####" VerticalAlignment="Center" Margin="2"/&amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;/Intersoft:FieldLabel&amp;gt;&lt;/p&gt;
&lt;p&gt;                    &amp;lt;/StackPanel&amp;gt;&lt;/p&gt;
&lt;p&gt;                    &amp;lt;StackPanel Orientation="Horizontal" &amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;Intersoft:UXCheckBox Content="Disqualified" Margin="2" VerticalAlignment="Center" IsChecked="{Binding CurrentEventResultHS.IsDQ, Mode=TwoWay}" Foreground="White" /&amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;Intersoft:UXCheckBox Content="No Show" Margin="2" VerticalAlignment="Center" IsChecked="{Binding CurrentEventResultHS.IsNoShow, Mode=TwoWay}" Foreground="White" /&amp;gt;&lt;/p&gt;
&lt;p&gt;                    &amp;lt;/StackPanel&amp;gt;&lt;/p&gt;
&lt;p&gt;                    &amp;lt;StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,6,0,0"&amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;Intersoft:UXButton Content="OK" Command="{Binding WeighHSOKCommand}" Width="90" Height="24" VerticalAlignment="Bottom" Background="#3FD7D7D7" GlassBackground="{x:Null}" Foreground="White" DisplayMode="ContentAndImage" Icon="/TourneyJett;component/Assets/Images/Dock/tj.png" ImageHeight="20" ImageWidth="20" HorizontalContentAlignment="Left" Margin="2"&amp;gt;&lt;/p&gt;
&lt;p&gt;                            &amp;lt;Intersoft:UXButton.ContentEffect&amp;gt;&lt;/p&gt;
&lt;p&gt;                                &amp;lt;DropShadowEffect ShadowDepth="1" /&amp;gt;&lt;/p&gt;
&lt;p&gt;                            &amp;lt;/Intersoft:UXButton.ContentEffect&amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;/Intersoft:UXButton&amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;Intersoft:UXButton Content="Cancel" Command="{Binding WeighHSCancelCommand}" Width="90" Height="24" VerticalAlignment="Bottom" Background="#3FD7D7D7" GlassBackground="{x:Null}" Foreground="White" DisplayMode="ContentAndImage" Icon="/TourneyJett;component/Assets/Images/Dock/tj.png" ImageHeight="20" ImageWidth="20" HorizontalContentAlignment="Left" Margin="2"&amp;gt;&lt;/p&gt;
&lt;p&gt;                            &amp;lt;Intersoft:UXButton.ContentEffect&amp;gt;&lt;/p&gt;
&lt;p&gt;                                &amp;lt;DropShadowEffect ShadowDepth="1" /&amp;gt;&lt;/p&gt;
&lt;p&gt;                            &amp;lt;/Intersoft:UXButton.ContentEffect&amp;gt;&lt;/p&gt;
&lt;p&gt;                        &amp;lt;/Intersoft:UXButton&amp;gt;&lt;/p&gt;
&lt;p&gt;                    &amp;lt;/StackPanel&amp;gt;&lt;/p&gt;
&lt;p&gt;                &amp;lt;/StackPanel&amp;gt;&lt;/p&gt;
&lt;p&gt;            &amp;lt;/Intersoft:UXCallOut&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;When the IsWeighHSCalloutOpen is true in my MVVM property, I use:&lt;/p&gt;
&lt;p&gt;ISFocusManager.SetFocus("nudCountHS");&lt;/p&gt;
&lt;p&gt;However, it never gains focus until I click on a control in the UXCallOut or on the UXCallOut itself.  Once a control has focus, I can tab around the controls as expected but tabbing without first clicking on the callout or a control in the callout ignore the existence of the callout and tabs to other fields in the view.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Ross&lt;/p&gt;
&lt;p /&gt;</description></item></channel></rss>