提交 3d1477e8 编写于 作者: I Ivan Basov

make containers non-focusable

上级 7d15682d
......@@ -36,11 +36,11 @@
</Grid.RowDefinitions>
<Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Content="Type Name:" />
<Border Grid.Row="1" Grid.Column="1" BorderThickness="1" BorderBrush="LightGray" Margin="5,5,5,5">
<ContentControl x:Name="TypeContentControl" Focusable="True" Margin="0,0,0,0" PreviewKeyDown="TypeNameContentControl_PreviewKeyDown"/>
<ContentControl x:Name="TypeContentControl" Focusable="False" Margin="0,0,0,0" PreviewKeyDown="TypeNameContentControl_PreviewKeyDown"/>
</Border>
<Label Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Content="Parameter Name:" />
<Border Grid.Row="3" Grid.Column="1" BorderThickness="1" BorderBrush="LightGray" Margin="5,5,5,5">
<ContentControl x:Name="NameContentControl" Focusable="True" Margin="0,0,0,0" PreviewKeyDown="TypeNameContentControl_PreviewKeyDown"/>
<ContentControl x:Name="NameContentControl" Focusable="False" Margin="0,0,0,0" PreviewKeyDown="TypeNameContentControl_PreviewKeyDown"/>
</Border>
<Label Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Content="If this is an optional parameter, enter its default value:" />
<TextBox Grid.Row="5" Grid.Column="1" Margin="5,5,5,5" />
......
......@@ -34,7 +34,8 @@ internal partial class AddParameterDialog : DialogWindow
IntellisenseTextBoxViewModel nameIntellisenseTextBoxViewModel,
INotificationService notificationService)
{
// TODO this should be initlialized when called for Edit.
// The current implementaiton support the Add only.
// The dialog should be initlialized other way if called for Edit.
ViewModel = new AddParameterDialogViewModel(notificationService);
_typeIntellisenseTextBoxView = typeIntellisenseTextBoxViewModel;
_nameIntellisenseTextBoxView = nameIntellisenseTextBoxViewModel;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册