Click here to Skip to main content
15,892,059 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Help with textbox for calculator Pin
Not Active16-Mar-10 14:20
mentorNot Active16-Mar-10 14:20 
GeneralRe: Help with textbox for calculator Pin
Sonar8716-Mar-10 18:26
Sonar8716-Mar-10 18:26 
GeneralRe: Help with textbox for calculator Pin
guyet053-Aug-10 17:25
guyet053-Aug-10 17:25 
Questionhow to use silverlight tool in .aspx page Pin
DX Roster14-Mar-10 20:22
DX Roster14-Mar-10 20:22 
AnswerRe: how to use silverlight tool in .aspx page Pin
Abhinav S14-Mar-10 20:44
Abhinav S14-Mar-10 20:44 
QuestionC# code Equivalent in wpf Pin
amir-haghighi13-Mar-10 7:15
amir-haghighi13-Mar-10 7:15 
AnswerRe: C# code Equivalent in wpf Pin
Super Lloyd15-Mar-10 11:15
Super Lloyd15-Mar-10 11:15 
QuestionTab ordering in WPF controls. Pin
SRKSHOME11-Mar-10 23:15
SRKSHOME11-Mar-10 23:15 
Hi,

I want to set the tab order in a windnow which contains ToolBarTray. But it is not setting it. Below is my XAML.

<Window x:Class="WpfApplication2.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
<TextBox AcceptsTab="False" Height="23" HorizontalAlignment="Left" Margin="10,10,0,0" Name="textBox2" VerticalAlignment="Top" Width="104" KeyboardNavigation.TabIndex="1"/>
<Label x:Name="lblName" Height="27" HorizontalAlignment="Left" Margin="26,38,0,0" VerticalAlignment="Top" Width="61" Content="_Name" Target="{Binding ElementName=txtName}"></Label>
<TextBox x:Name="txtName" Height="23" Margin="112,38,62,0" VerticalAlignment="Top" KeyboardNavigation.TabIndex="2" />



<ToolBarTray ToolBarTray.IsLocked="True" Margin="4,0,-4,72" Height="55" VerticalAlignment="Bottom">
<ToolBar x:Name="mainToolBar" Background="Transparent">
<Button x:Name="newToolbarButton" KeyboardNavigation.TabIndex="3">
<StackPanel Orientation="Horizontal" Height="16" Width="50" Margin="0" VerticalAlignment="Top" >

<Label Content="New" Margin="4,0,0,0" VerticalAlignment="Center" Height="23" Width="37" />
</StackPanel>
</Button>
<Separator/>
<Button x:Name="helpToolbarButton" Margin="0,-1" KeyboardNavigation.TabIndex="4" >
<StackPanel Orientation="Horizontal">

<Label Content="Help" Margin="4,0,0,0" VerticalAlignment="Center" />
</StackPanel>
</Button>
</ToolBar>
</ToolBarTray>
<Button Height="31" Margin="19.81,0,0,22" Name="button1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="77" KeyboardNavigation.TabIndex="5">Button</Button>
<Button Margin="131,0,62,19.75" Name="button2" KeyboardNavigation.TabIndex="6" Height="35.5" VerticalAlignment="Bottom">Button</Button>
</Grid>
</Window>

In the above code I have set the tab order in the order of textBox2,txtName,newToolBarButton,helpToolBarButton,button1,button2.

When I run above code tab order is going in the order of textBox2,txtName,button1,button2,newToolBarButton,helpToolBarButton and then it is not coming out of ToolBarTray.

How to make it working the tab ordering in the order of textBox2,txtName,newToolBarButton,helpToolBarButton,button1,button2.

Please suggest.
QuestionWPF TextBox shrinks but Stackpanel doesn't Pin
Marcelo Ricardo de Oliveira11-Mar-10 8:58
Marcelo Ricardo de Oliveira11-Mar-10 8:58 
AnswerRe: WPF TextBox shrinks but Stackpanel doesn't Pin
Super Lloyd15-Mar-10 2:24
Super Lloyd15-Mar-10 2:24 
GeneralRe: WPF TextBox shrinks but Stackpanel doesn't Pin
Marcelo Ricardo de Oliveira15-Mar-10 5:52
Marcelo Ricardo de Oliveira15-Mar-10 5:52 
GeneralRe: WPF TextBox shrinks but Stackpanel doesn't Pin
Super Lloyd15-Mar-10 11:10
Super Lloyd15-Mar-10 11:10 
GeneralRe: WPF TextBox shrinks but Stackpanel doesn't Pin
Marcelo Ricardo de Oliveira17-Mar-10 12:21
Marcelo Ricardo de Oliveira17-Mar-10 12:21 
QuestionMost popular technology? Pin
Mark Walter Smith11-Mar-10 5:02
Mark Walter Smith11-Mar-10 5:02 
AnswerRe: Most popular technology? Pin
Abhinav S14-Mar-10 20:07
Abhinav S14-Mar-10 20:07 
QuestionUse HTML5 or otherwise? Pin
Mark Walter Smith11-Mar-10 4:59
Mark Walter Smith11-Mar-10 4:59 
AnswerRe: Use HTML5 or otherwise? Pin
Alan Beasley22-Mar-10 2:39
Alan Beasley22-Mar-10 2:39 
QuestionKeyBoard shortcuts Pin
SRKSHOME11-Mar-10 1:00
SRKSHOME11-Mar-10 1:00 
AnswerRe: KeyBoard shortcuts Pin
Pete O'Hanlon11-Mar-10 1:18
mvePete O'Hanlon11-Mar-10 1:18 
GeneralRe: KeyBoard shortcuts Pin
SRKSHOME11-Mar-10 2:33
SRKSHOME11-Mar-10 2:33 
GeneralRe: KeyBoard shortcuts Pin
Pete O'Hanlon11-Mar-10 2:45
mvePete O'Hanlon11-Mar-10 2:45 
GeneralRe: KeyBoard shortcuts Pin
SRKSHOME11-Mar-10 3:41
SRKSHOME11-Mar-10 3:41 
QuestionMessage Removed Pin
10-Mar-10 3:17
professionalN_tro_P10-Mar-10 3:17 
AnswerRe: ObservableCollection Changed Pin
Pete O'Hanlon10-Mar-10 4:14
mvePete O'Hanlon10-Mar-10 4:14 
GeneralMessage Removed Pin
11-Mar-10 3:05
professionalN_tro_P11-Mar-10 3:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.