以编程方式选择ListBox项后,需要按下\ up键两次以移动选择.有什么建议?
视图:
<ListBox Name="lbActions" Canvas.Left="10" Canvas.Top="10"
Width="260" Height="180">
<ListBoxItem Name="Open" IsSelected="true" Content="Open"></ListBoxItem>
<ListBoxItem Name="Enter" Content="Enter"></ListBoxItem>
<ListBoxItem Name="Print" Content="Print"></ListBoxItem>
</ListBox>
Run Code Online (Sandbox Code Playgroud)
码:
public View()
{
lbActions.Focus();
lbActions.SelectedIndex = 0; //not helps
((ListBoxItem) lbActions.SelectedItem).Focus(); //not helps either
}
Run Code Online (Sandbox Code Playgroud) 为什么要将所有Javascript代码放在一个文件中?是否可能并且分成较小的逻辑文件单元是否有意义?
对我而言,理解app.config,web.config文件如何在深层次上工作有点困难和令人沮丧.
是否可以描述.config文件的格式,内部实现和解析的任何文档.
.net ×1
app-config ×1
http ×1
javascript ×1
listbox ×1
listboxitem ×1
listview ×1
select ×1
web-config ×1
wpf ×1