天道酬勤,学无止境

sharpdevelop

WPF 调试 AvalonEdit 绑定到文档属性(WPF Debugging AvalonEdit binding to Document property)

问题 我整天都坐在那里,试图找出绑定到 AvalonEdits 文档属性不起作用的原因。 AvalonEdit 是一个高级 WPF 文本编辑器 - SharpDevelop 项目的一部分。(它将在 SharpDevelop v4 Mirador 中使用)。 因此,当我建立一个简单的项目 - 一个 TextEditor(这是库中 AvalonEdits 的真实名称)并创建一个具有一个属性的简单类 - Document 并返回一个带有一些静态文本的虚拟对象时,绑定工作正常。 但是在现实生活中的解决方案中,我将 SomeEditor 对象的集合绑定到 TabControl。 TabControl 有用于 SomeEditor 的 DataTemplate,还有 TextEditor 对象。 <TabControl Grid.Column="1" x:Name="tabControlFiles" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" > <TabControl.Resources> <DataTemplate DataType="{x:Type m:SomeEditor}"> <a:TextEditor Document="{Binding Path=Document, Mode=TwoWay

2021-09-20 10:29:06    分类:技术分享    wpf   data-binding   sharpdevelop   avalonedit

WPF Debugging AvalonEdit binding to Document property

all day long I am sitting and trying to find out why binding to AvalonEdits Document property isn't working. AvalonEdit is an advanced WPF text editor - part of the SharpDevelop project.(it's going to be used in SharpDevelop v4 Mirador). So when I set up a simple project - one TextEditor (that's the AvalonEdits real name in the library) and made a simple class that has one property - Document and it returns a dummy object with some static text the binding is working perfectly. However in real life solution I'm binding a collection of SomeEditor objects to TabControl. TabControl has

2021-09-06 08:44:07    分类:问答    wpf   data-binding   sharpdevelop   avalonedit

有人在 SharpDevelop 中使用 System.Data.SQLite 吗?(Is anyone using System.Data.SQLite within SharpDevelop?)

问题 我只是想知道你们中是否有人成功地将SQLite集成到SharpDevelop项目中? 如果是这样的话,如果您不介意继续与我们其他人分享经验,那将会非常有趣。 我已经尝试了使用Visual Studio 2008 Express Editions等更正统的方法,但是,虽然它显然与Visual Web Developer配合得很好,但不幸的是SQlite.NET包无法与Visual C# 一起使用,所以 SharpDevelop 几乎是我的现在只希望。 提前谢谢大家。 回答1 在谷歌搜索并混合了各种来源和方法之后,我找到了一种方法来实现这一点。 这是最重要的代码片段: /// <remarks> /// Creating a DataSet to feed the DataGridView /// </remarks> // DataSet results = new DataSet(); try { /// <remarks> /// Setting the path where the database file is located /// </remarks> string database = "X:\\path\\to\\database\\file\\books.db"; /// <remarks> /// Creating a ConnectionString

2021-07-09 20:04:56    分类:技术分享    .net   database   sqlite   ado.net   sharpdevelop

Is anyone using System.Data.SQLite within SharpDevelop?

I was just wondering if perhaps any of you guys has been successful integrating SQLite into a SharpDevelop project? If that's the case it'd be really interesting if you wouldn't mind to go ahead and share the experience with the rest of us. I've tried the more sort of orthodox approach of using Visual Studio 2008 Express Editions and whatnot but, although it apparently plays well with Visual Web Developer, unfortunately the SQlite.NET package fails to work with Visual C#, so SharpDevelop is pretty much my only hope now. Thanks everyone in advance.

2021-06-25 14:40:23    分类:问答    .net   database   sqlite   ado.net   sharpdevelop

如何在SharpDevelop 4.2中启动国际化的WPF项目?(How to start an internationalized WPF-Project in SharpDevelop 4.2?)

问题 我想创建一个软件,用户可以在其中选择几种语言。 首先,我想学习如何处理国际化,因为我以前从未做过。 作为IDE,我使用SharpDevelop或#develop,但是您可以拼写它。 我想使用C#和WPF,因为我现在也在学习XAML / WPF。 因此,我在ShardDevelop中创建了一个新的WPF项目。 在主窗口上,我创建一个ComboBox和一个TextBlock。 ComboBox get的两个条目:“德语”和“英语”。 textBlock应该显示“ Hallo Welt!” 或“ Hello World!”,具体取决于所选的语言。 现在是我被卡住的部分。 我猜每种语言都有一个XML / XAML样式的独立文件(有意义)。 这些文件在哪里,如何加载它们及其内容,以便加载所选语言的文本? 我找到了几个示例,但所有示例都是关于创建Resource-DLL并使用一些奇怪的程序将它们反编译回csv文件...我不明白,难道没有更简单的方法吗? 我迈出了下一步。 现在通过“ {StaticResource Strings.MainForm.hwText}”加载TextBlock的文本。 现在看起来像这样: <TextBlock Text="{StaticResource Strings.MainForm.hwText}" />

2021-05-17 23:43:59    分类:技术分享    c#   wpf   xaml   internationalization   sharpdevelop

如何将VB项目转换为C#项目(How Convert VB Project to C# Project [closed])

问题 关闭。 此问题不符合堆栈溢出准则。 它当前不接受答案。 想改善这个问题吗? 更新问题,使其成为Stack Overflow的主题。 5年前关闭。 改善这个问题 我有一个用VB编写的项目,我需要将整个项目转换为C#项目。 我不想逐个文件地处理它,我找到了一些在线转换器,但是它们仅转换代码行,而不转换整个项目。 我在研究中发现,在这里写到我看到了这个问题,然后写到 “关于Sharpdevelop的最好的部分是它将VB和C#转换为整个项目(源文件),并且采用另一种方式” 我还在Google上进行了研究,如果您右键单击该项目,我会在这里找到“在“项目”窗口中右键单击该项目,然后选择“转换-从VB.NET到C#”。 但是,当我在“项目”窗口中右键单击“项目”时,我可以找到“转换”。 我必须为SharpDevelop安装任何工具,然后才能转换项目吗? 谢谢 回答1 我假设您尝试过SharpDevelop 5,因为该版本缺少转换功能。 SharpDevelop团队的VB到C#代码转换器现在是Visual Studio的独立扩展。 安装后,可以通过打开解决方案,在解决方案资源管理器中右键单击解决方案节点,然后选择“转换为C#” ,将整个VB.NET项目转换为C# 。 回答2 抱歉,但是我还没有遇到可以转换整个项目的任何工具。 过去,我刚刚创建了一个临时C#项目,并一次转换了一部分。

2021-05-06 18:45:15    分类:技术分享    c#   .net   vb.net   converter   sharpdevelop

How to start an internationalized WPF-Project in SharpDevelop 4.2?

I want to create a Software, where the User can choose between several Languages. As a start i want to learn how to handle Internationalization, since i have never done that before. As IDE i use SharpDevelop or #develop, however you would spell it. I want to use C# and WPF, since i'm also learning XAML/WPF at the moment. So i create a new WPF-Project in ShardDevelop. On the Main Window i create a ComboBox and a TextBlock. The ComboBox get's two Entries: "German" and "English". The textBlock should show "Hallo Welt!" or "Hello World!", depending on the Language which is selected. Now comes the

2021-04-28 11:00:53    分类:问答    c#   wpf   xaml   internationalization   sharpdevelop

AvalonEdit WPF TextEditor (SharpDevelop): How to highlight a specific range of text?

The incredibly awesome AvalonEdit WPF TextEditor control seems to lack an important feature, or at least i can't figure it out. Given an offset and a length, highlight that portion in the TextDocument with a HighlightColor. Simple, right? Apprentely not. I've RTFM, and the documentation on "Syntax Highlighting" confused me even more. Someone else asked the same question in the SharpDevelop forums, and i'm afraid i can't make sense of Herr Grunwald's answer. Here's my attempt, using the DocumentHighlighter class (of course it doesn't work): textEditor1.Text = "1234567890"; HighlightingColor c =

2021-04-26 11:56:13    分类:问答    c#   .net   wpf   sharpdevelop   avalonedit

How to develop a Microsoft Office AddIn without Visual Studio

I'm trying to develop an MS Office Addin in C# .Net and I don't have access to Visual Studio. Instead I'm using SharpDevelop as my IDE, (but my question is equally relevant to anyone developing using any other IDE or compiling from the command line...) I've done a bit of searching for guides on how to develop AddIns, but they all seem to require Visual Studio and follow these steps: Install the Interop Assemblies Create a Visual Studio .Net Project (I'm unable to do this bit) Extend the VS ThisAddIn template What I've managed to do is to: Install the Interop Assemblies Create a C# empty

2021-04-22 13:34:02    分类:问答    c#   vsto   ms-office   add-in   sharpdevelop

How Convert VB Project to C# Project [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago. Improve this question I have a project written in VB, and I need to convert the whole project to C# project. I don't want to do it file by file, I found some online converters, but they convert only lines of codes, not the whole project. I found on researches, and here was written that I saw this question , there was written that "The best part about Sharpdevelop is it converts the whole

2021-04-12 04:33:04    分类:问答    c#   .net   vb.net   converter   sharpdevelop