我有36个项目的解决方案.当我正在处理其中一个项目时,我希望能够调试它而无需右键单击项目,然后选择"debug",然后选择"启动新实例".
谢谢.
我正在尝试修改HTML5 Boilerplate标题以使中心图像具有任意一侧的单词,如下所示: 
你可以看到我设法做到了,但这只是使用了样板和坏css的一部分,打破了h5bp的实用性.我想现在正确使用h5bp并实现同样的目的.我只是不确定该怎么做.
我目前的尝试看起来像这样:

图像不在单词之间,即使标记中的顺序如下:
<div id="header-container">
<header class="wrapper clearfix">
<div class="center">
<h1 id="title">First</h1> <img src="img/mf_coffee_cup.png" alt="" height="280" width="340" /> <h1 id="title">Second</h1>
</div>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
</div>
Run Code Online (Sandbox Code Playgroud)
相关CSS:
.center { display: table; margin: 0 auto; }
#title
{
padding: 20px;
display: inline;
font-size: 4.5em;
border-top: 4px solid #5dc1c4;
border-bottom: 4px solid #5dc1c4;
}
Run Code Online (Sandbox Code Playgroud)
如果有人能解释为什么文本不是图像的任何一侧,将非常感激.
谢谢
编辑:
虽然下面的答案是有效的,但我实际上通过将<img>放入<h1>而不是将它们分开来解决了这个问题,如下所示:
<h1 id="title">First <img src="img/mf_coffee_cup.png" alt="" height="280" width="340" /> Second</h1>
Run Code Online (Sandbox Code Playgroud) 我有一个窗口,托管各种UserControl作为页面.是否可以在usercontrol的datacontext中关闭我没有引用的窗口?简化细节:
SetupWindow
public SetupWindow()
{
InitializeComponent();
Switcher.SetupWindow = this;
Switcher.Switch(new SetupStart());
}
public void Navigate(UserControl nextPage)
{
this.Content = nextPage;
}
Run Code Online (Sandbox Code Playgroud)
SetupStart UserControl
<UserControl x:Class="...">
<UserControl.DataContext>
<local:SetupStartViewModel/>
</UserControl.DataContext>
<Grid>
<Button Content="Continue" Command="{Binding ContinueCommand}"/>
</Grid>
</UserControl>
Run Code Online (Sandbox Code Playgroud)
SetupStartViewModel
public SetupStartViewModel()
{
}
private bool canContinueCommandExecute() { return true; }
private void continueCommandExectue()
{
Switcher.Switch(new SetupFinish());
}
public ICommand ContinueCommand
{
get { return new RelayCommand(continueCommandExectue, canContinueCommandExecute); }
}
Run Code Online (Sandbox Code Playgroud) 我有一个项目控件,它在画布上有项目,当我按下删除我想从画布中删除一个项目:
<ItemsControl.InputBindings>
<KeyBinding Command="{Binding DeleteItemCommand}" Key="Delete"/>
</ItemsControl.InputBindings>
Run Code Online (Sandbox Code Playgroud)
但是,从不调用DeleteItemCommand中的方法.
我怎样才能做到这一点?
wpf ×2
c# ×1
css ×1
css3 ×1
datacontext ×1
debugging ×1
html5 ×1
inputbinding ×1
itemscontrol ×1
key-bindings ×1
position ×1
viewmodel ×1
xaml ×1