可能重复:
在Eclipse中,如何在终止进程后更改透视图?
让Eclipse自动切换到调试透视图,同时调试是一个很棒的功能 - 相反可用吗?我希望它在终止调试会话时自动返回Java透视图.返回Java透视图的键盘快捷方式也可以提供帮助.
我试图通过使用最顶部,透明的非模态窗口来捕获WPF中的鼠标事件.我发现如果窗口的不透明度为0.01或更高并且它具有背景颜色,这可以正常工作,但是当不透明度设置为0时,它不再接收鼠标消息.有没有办法让这个窗口看起来完全透明,仍然可以输入鼠标?
是否有可用于读取AIS数据的API或Web服务?我从维基百科(http://en.wikipedia.org/wiki/Automatic_Identification_System)开始阅读的大多数链接都说可以免费获得AIS数据,但我很难找到数据提供者.AC#示例或与语言无关的Web服务会很有帮助.
我在Vista上的II7中托管了一个WCF服务(basicHttpBinding),我期望同时处理许多请求.我试图通过在测试应用程序中调用200个线程并调用WCF服务来加载测试服务.我在与服务器以及其他多台计算机相同的机器上运行此测试应用程序,我总是得到相同的结果 - 使用的工作人员不超过5个.这是WCF,HTTP还是IIS瓶颈?
我看到的大多数示例似乎在调用中使用了一个匿名方法,如button.setOnClickListener().相反,我想传入我正在使用的Activity类上定义的方法.在C#中,以下事件处理程序连接的Java/Android等价物是什么?
Button myButton = new Button();
myButton.Click += this.OnMyButtonClick;
Run Code Online (Sandbox Code Playgroud)
哪里:
private void OnMyButtonClick(object sender, EventArgs ea)
{
}
Run Code Online (Sandbox Code Playgroud)
本质上,我想重用一个非匿名方法来处理多个按钮的click事件.
我正在使用WPF中的图像管理应用程序来显示许多图像,并允许用户在文件系统中移动它们.我遇到的问题是显示带有<Image>元素的文件似乎保持文件打开,因此尝试移动或删除文件失败.有没有办法手动要求WPF卸载或释放文件,以便可以移动?或者是否有一种显示不保持文件打开的图像的方法?查看器Xaml如下:
<ListBox x:Name="uxImages" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<Border Margin="4">
<Image Source="{Binding}" Width="150" Height="150"/>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
Run Code Online (Sandbox Code Playgroud) 创建样式时,是否可以将ControlTemplate属性设置为先前定义的资源?例如,如果我在ResourceDictionary中有以下内容:
<ControlTemplate x:Key="MyControlTemplate" TargetType="{x:Type Button}">
...
</ControlTemplate>
Run Code Online (Sandbox Code Playgroud)
后来想在这样的样式中使用它:
<Style x:Key="MyStyle" TargetType="{x:Type Button}">
<Setter Property="Template" Value="???"/>
</Style>
Run Code Online (Sandbox Code Playgroud)
那可能吗?
在WP 7.0中,很容易测试墓碑系统 - 我按下了相机按钮然后按回去获取墓碑/简历.在WP 7.5中,应用程序暂停了一段时间,但在不确定的时间出现在墓碑上.是否可以强制这种情况进行测试?
我正在使用以下代码在设备上创建实时磁贴:
ShellTile tile = ShellTile.ActiveTiles.FirstOrDefault();
StandardTileData newTileData = new StandardTileData
{
BackgroundImage = new Uri(string.Format("isostore:{0}", DefaultLiveTilePath), UriKind.Absolute),
Title = "Test"
};
tile.Update(newTileData);
Run Code Online (Sandbox Code Playgroud)
稍后我想删除实时图块图像,并在固定时将其恢复为应用程序图标.这可能吗?
c# ×3
wpf ×3
java ×2
ais ×1
android ×1
concurrency ×1
eclipse ×1
file ×1
http ×1
iis ×1
image ×1
live-tile ×1
mouse ×1
styles ×1
testing ×1
tombstoning ×1
transparency ×1
wcf ×1
web-services ×1
xaml ×1