最近谷歌宣布了Chrome浏览器中的一项功能,可以使用麦克风搜索文本或翻译文本.
http://www.seroundtable.com/google-search-speak-now-13346.html
我想开发一个C#桌面应用程序来向谷歌发送语音并获得结果.怎么做到呢?
存储在数据库中的XAML文本,如何在XmlReader读取XAML后在RichTextBox中显示其文本?
StringReader stringReader = new StringReader(xamlString);
XmlReader xmlReader = XmlReader.Create(stringReader);
Run Code Online (Sandbox Code Playgroud)
rt.Document = ???
------ UPDATE -------------------这里是xamlString的内容:
<Section xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xml:space="preserve" TextAlignment="Left" LineHeight="Auto" IsHyphenationEnabled="False" xml:lang="en-us" FlowDirection="RightToLeft" NumberSubstitution.CultureSource="User" NumberSubstitution.Substitution="AsCulture" FontFamily="Tahoma" FontStyle="Normal" FontWeight="Normal" FontStretch="Normal" FontSize="13" Foreground="#FF000000" Typography.StandardLigatures="True" Typography.ContextualLigatures="True" Typography.DiscretionaryLigatures="False" Typography.HistoricalLigatures="False" Typography.AnnotationAlternates="0" Typography.ContextualAlternates="True" Typography.HistoricalForms="False" Typography.Kerning="True" Typography.CapitalSpacing="False" Typography.CaseSensitiveForms="False" Typography.StylisticSet1="False" Typography.StylisticSet2="False" Typography.StylisticSet3="False" Typography.StylisticSet4="False" Typography.StylisticSet5="False" Typography.StylisticSet6="False" Typography.StylisticSet7="False" Typography.StylisticSet8="False" Typography.StylisticSet9="False" Typography.StylisticSet10="False" Typography.StylisticSet11="False" Typography.StylisticSet12="False" Typography.StylisticSet13="False" Typography.StylisticSet14="False" Typography.StylisticSet15="False" Typography.StylisticSet16="False" Typography.StylisticSet17="False" Typography.StylisticSet18="False" Typography.StylisticSet19="False" Typography.StylisticSet20="False" Typography.Fraction="Normal" Typography.SlashedZero="False" Typography.MathematicalGreek="False" Typography.EastAsianExpertForms="False" Typography.Variants="Normal" Typography.Capitals="Normal" Typography.NumeralStyle="Normal" Typography.NumeralAlignment="Normal" Typography.EastAsianWidths="Normal" Typography.EastAsianLanguage="Normal" Typography.StandardSwashes="0" Typography.ContextualSwashes="0" Typography.StylisticAlternates="0"><Paragraph><Run xml:lang="fa-ir">Hello</Run><Run xml:lang="fa-ir" FontStyle="Italic">Hello1</Run><Run xml:lang="fa-ir" FontWeight="Bold">Testing</Run><Run …
Run Code Online (Sandbox Code Playgroud) 在企业项目中,我需要记录大量数据(原始值,修改后的值,已更改数据的用户等)我正在使用NLog记录此类数据,而使用ELMAH记录异常.我不确定是否使用单独的数据库来存储日志记录信息或使用主数据库.使用单独数据库的优点是:
缺点是:
当然还有更多的优点和缺点,但总而言之,我需要知道:使用大型事务RDBMS的企业软件中的最佳实践是什么?或者根据某些因素,它可能因项目而异?
c# ×2
elmah ×1
google-voice ×1
logging ×1
nlog ×1
rdbms ×1
richtextbox ×1
sql-server ×1
wpf ×1
xaml ×1