我在了解Windows 8 metro应用程序中的一个样式定义时遇到问题.
使用VS创建metro风格应用程序时,还有一个名为的文件夹
共同
创建.在这个文件夹里有一个名为的文件
StandardStyles.xaml
现在,以下代码片段来自此文件:
<!-- Grid-appropriate 250 pixel square item template as seen in the GroupedItemsPage and ItemsPage -->
<DataTemplate x:Key="Standard250x250ItemTemplate">
<Grid HorizontalAlignment="Left" Width="250" Height="250">
<Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}">
<Image Source="{Binding Image}" Stretch="UniformToFill"/>
</Border>
<StackPanel VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}">
<TextBlock Text="{Binding Title}" Foreground="{StaticResource ListViewItemOverlayForegroundThemeBrush}" Style="{StaticResource TitleTextStyle}" Height="60" Margin="15,0,15,0"/>
<TextBlock Text="{Binding Subtitle}" Foreground="{StaticResource ListViewItemOverlaySecondaryForegroundThemeBrush}" Style="{StaticResource CaptionTextStyle}" TextWrapping="NoWrap" Margin="15,0,15,10"/>
</StackPanel>
</Grid>
</DataTemplate>
Run Code Online (Sandbox Code Playgroud)
我在这里不明白的是静态资源定义,例如边界
Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}"
Run Code Online (Sandbox Code Playgroud)
它与您如何使用模板,绑定和资源无关.
ListViewItemPlaceholderBackgroundThemeBrush位于何处?
非常感谢您的帮助.
迪米
有人有数据库比较工具的经验吗?你会推荐哪一个?
我们目前正在使用Redgate的"SQLCompare",但我很想知道市场上是否有更好的工具.
主要要求是他们应该能够将脚本文件夹与实时数据库进行比较.
谢谢,迪米
提前编写代码以使我面临的问题可视化:
Run Code Online (Sandbox Code Playgroud):20:0444453880181732 :21:0444453880131350 :22:CANCEL/ABCDEF0131835055 :23:BUY/CALL/E/EUR :82A:ABCDEFZZ80A :87A:4444655604 :30:061123 :31G:070416/1000/USNY :31E:070418 :26F:PRINCIPAL :32B:EUR1000000,00 :36:1,31000000 :33B:USD1310000,00 :37K:PCT1,60000000 :34P:061127USD16000,00 :57A:ABCDEFZZ80A
这是我的正则表达式
Regex r = new Regex(@"\:\d{2}\w*\:", RegexOptions.Multiline);
MatchCollection matches = r.Matches(Content);
string[] items = r.Split(Content);
// ----- Fix for first entry being empty string.
int index = items[0] == string.Empty ? 1 : 0;
foreach (Match match in matches)
{
MessageField field = new MessageField();
field.FieldIdExtended = match.Value;
field.Content = items[index];
Fields.Add(field);
index++;
}
Run Code Online (Sandbox Code Playgroud)
从注释中可以看出,分裂字符串时会出现问题.它作为第一项返回一个空字符串.有没有优雅的方法来解决这个问题?
谢谢,迪米
我使用谷歌图表,在x轴上,我有一周的日子,在y轴上有一些值.我想改变周末的背景.有可能在谷歌图表?
我在屏幕上标记应该有不同颜色的字段:

任何人都可以告诉我的flags参数的有效值是什么
sp_MSdependencies 存储过程
尤其是他们的意思.
我想要做的是记住我在输入流中的位置,然后再回到那里.在使用mark()和reset()的java中非常简单,但我不知道如何在c#中实现这一点.没有这样的方法.
例如
public int peek()
{
try
{
file.x; //in java file.mark(1)
int tmp = file.read();
file.+ //in java file.reset();
return tmp;
}
catch (IOException ex) {}
return 0;
}
Run Code Online (Sandbox Code Playgroud) 尝试从中执行SQL并对SQL数据库执行Access数据库时,出现日期转换错误。我们的机器都在Office 2010上运行Windows7。前端是附件。
数据库中有一个搜索表单,除两个日期字段外,所有字段均正常工作。
查询是where子句在前端VB代码中看起来像这样
"WHERE DrawnDate BETWEEN #" & Format(FromDate, "yyyy-mm-dd") & "# AND #" & _
Format(ToDate, "yyyy-mm-dd") & "#"
Run Code Online (Sandbox Code Playgroud)
根据一些研究,我还尝试了日期格式,dd-mon-yyyy并且dd-mm-yyyy结果没有变化。
作为事件属性设置输入的表达式“单击时”产生了以下错误:ODBC-调用失败。
收到的错误是:
从字符串转换日期和/或时间时,[Microsoft] [ODBC SQL Server驱动程序] [SQL Server]转换失败。(#241)
另一个问题是,到目前为止,这仅在一台PC上发生,而在我或我测试过的其他PC上则没有。
c# ×3
.net ×2
sql ×2
sql-server ×2
.net-4.5 ×1
compare ×1
comparison ×1
date ×1
javascript ×1
ms-access ×1
regex ×1
split ×1
streamreader ×1
t-sql ×1
xaml ×1