如何让我的应用程序在谷歌闭包编译器方面100%打字?
我已经使用jsdoc注释标记了所有内容.甚至可以获得100?我在64.6%
我开始使用我的数据库的Sql Compact版本,在开发过程中发现数据库需要通过网络访问.因为我无法找到一种方法来通过网络共享SDF文件而无需复制我需要将其导入SQL Server 2008(Express).
有任何想法吗?
如何确定MethodInfo是否适合不同的委托类型?
bool IsMyDelegate(MethodInfo method);
Run Code Online (Sandbox Code Playgroud)
编辑:我给了一个MethodInfo对象,想知道它是否适合委托接口.除了明显的
private bool IsValidationDelegate(MethodInfo method)
{
var result = false;
var parameters = method.GetParameters();
if (parameters.Length == 2 &&
parameters[0].ParameterType == typeof(MyObject1) &&
parameters[1].ParameterType == typeof(MyObject2) &&
method.ReturnType == typeof(bool))
{
result = true;
}
else
{
m_Log.Error("Validator:IsValidationDelegate", "Method [...] is not a ValidationDelegate.");
}
return result;
}
Run Code Online (Sandbox Code Playgroud) 我尝试编辑项目模板后,通过提取它并在编辑后再次压缩它来从vs2010导出它.但之后它将不会出现在视觉工作室的新项目对话中.
所以我再次尝试了,没有编辑.只需再次提取和压缩.我甚至使用Windows拉链机制,但仍然无法工作.只有导出的模板才能正常工作.
我也试过这里写的:http: //msdn.microsoft.com/en-us/library/ms185298.aspx 无济于事.
那么有没有人告诉我要让它发挥作用的一些神奇的咒语?
我正在寻找的行为是在 ListView 中选择一个 Item 会导致聚焦第一个可聚焦的视觉子项。
问题:ItemsControler 中的数据模板化数据没有获得初始焦点。在下面的示例中,有 4 个字符串,然后通过 Datatemplate 将其填充到 TextBox 中。
例子:
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
<ListView>
<ListView.Resources>
<DataTemplate DataType="{x:Type sys:String}" >
<TextBox Width="100" Text="{Binding Mode=OneWay}"/>
</DataTemplate>
</ListView.Resources>
<ListView.ItemsSource>
<x:Array Type="{x:Type sys:String}">
<sys:String>test</sys:String>
<sys:String>test</sys:String>
<sys:String>test</sys:String>
<sys:String>test</sys:String>
</x:Array>
</ListView.ItemsSource>
</ListView>
</Grid>
</Window>
Run Code Online (Sandbox Code Playgroud)
我已经尝试过一些组合
FocusManager.FocusedElement="{Binding ElementName=[...]}"
Run Code Online (Sandbox Code Playgroud)
毫无意义地说:没有成功。有人知道我如何在不遍历 C# 中的可视化树的情况下获得我想要的东西吗?应该可以做到这一点,不是吗?
是否可以在不使用魅力条的情况下从metro风格的应用程序中触发共享操作?
c# ×1
datatemplate ×1
delegates ×1
focus ×1
import ×1
javascript ×1
jsdoc ×1
methodinfo ×1
sdf ×1
sql-server ×1
typing ×1
windows-8 ×1
wpf ×1
xaml ×1