Hi.
I have this kind of xaml code:
When I write something in tbBasicSearch textbox (in Expander's header) and then hit enter key, the Expander expands. I would like that it expands only when I click on the expand button and not when I press the enter key. Is this posible?
I was also wondering if it's posible to show the content of Expander's header on the right side of expand button?
I have this kind of xaml code:
<Grid x:Name="LayoutRoot" Background="White"> |
<telerik:RadExpander x:Name="radExpander" ExpandDirection="Down" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> |
<telerik:RadExpander.Header > |
<StackPanel Orientation="Horizontal"> |
<TextBlock Name="tbBasicSearch" Text="Filter: Tax Number or Title:" HorizontalAlignment="Center" VerticalAlignment="Center" /> |
<TextBox Height="Auto" Width="115" KeyDown="txt_KeyDown" x:Name="txtOsnovniPogojKons" Style="{StaticResource TextBoxStyle}" Margin="5,0,0,0"/> |
</StackPanel> |
</telerik:RadExpander.Header> |
<telerik:RadExpander.Content> |
<telerik:RadWrapPanel Orientation="Horizontal"> |
<Grid Style="{StaticResource GridRadWraper}" > |
<TextBlock Margin="2,2,85,0" x:Name="lblID" Style="{StaticResource LabelStyle}" Text="ID" HorizontalAlignment="Right"/> |
<TextBox Margin="100,0,0,0" Text="" KeyDown="txt_KeyDown" x:Name="txtID" Style="{StaticResource TextBoxStyle}" TabIndex="1" Width="80"/> |
</Grid> |
<Grid Style="{StaticResource GridRadWraper}"> |
<TextBlock TextWrapping="Wrap" Margin="2,2,85,0" x:Name="lblTitle" Style="{StaticResource LabelStyle}" Text="Title" Height="Auto" HorizontalAlignment="Right"/> |
<TextBox Height="Auto" Margin="100,0,0,0" KeyDown="txt_KeyDown" Text="" x:Name="txtTitle" Style="{StaticResource TextBoxStyle}" TabIndex="2" Width="80" /> |
</Grid> |
<Grid Style="{StaticResource GridRadWraper}"> |
<TextBlock Margin="2,2,85,6" Text="City" TextWrapping="Wrap" x:Name="lblCity" Style="{StaticResource LabelStyle}" Height="Auto" Width="Auto" HorizontalAlignment="Right"/> |
<TextBox Height="Auto" Margin="100,0,0,0" KeyDown="txt_KeyDown" Text="" x:Name="txtCity" Style="{StaticResource TextBoxStyle}" TabIndex="4" Width="80"/> |
</Grid> |
<Grid Style="{StaticResource GridRadWraper}"> |
<TextBlock Margin="2,2,85,0" Text="Tax" TextWrapping="Wrap" x:Name="lblTax" Style="{StaticResource LabelStyle}" ToolTipService.ToolTip="Tax number" Height="Auto" HorizontalAlignment="Right"/> |
<TextBox Height="Auto" Margin="100,0,0,0" Text="" KeyDown="txt_KeyDown" x:Name="txtTax" Style="{StaticResource TextBoxStyle}" TabIndex="5" Width="80"/> |
</Grid> |
<Grid Style="{StaticResource GridRadWraper}"> |
<TextBlock Text="Swift code" Margin="2,2,85,0" x:Name="lblSwift" Style="{StaticResource LabelStyle}" Height="Auto" Width="Auto" HorizontalAlignment="Right" /> |
<TextBox Height="Auto" Text="" x:Name="txtSwift" KeyDown="txt_KeyDown" Style="{StaticResource TextBoxStyle}" Width="80" TabIndex="6" HorizontalAlignment="Right" Margin="100,0,0,0"/> |
</Grid> |
<Grid Style="{StaticResource GridRadWraper}"> |
<TextBlock Text="Regist. number" x:Name="lblRegistrationNumber" Style="{StaticResource LabelStyle}" Margin="2,2,85,0" Height="Auto" HorizontalAlignment="Right"/> |
<TextBox Height="Auto" Margin="100,0,0,0" Text="" KeyDown="txt_KeyDown" x:Name="txtRegistrationNumber" Style="{StaticResource TextBoxStyle}" Width="80" TabIndex="7" HorizontalAlignment="Right"/> |
</Grid> |
</telerik:RadWrapPanel> |
</telerik:RadExpander.Content> |
</telerik:RadExpander> |
</Grid> |
I was also wondering if it's posible to show the content of Expander's header on the right side of expand button?