c#

Items in ObservableCollection<string> do not update when bound to a WPF ListBox

孤街浪徒 提交于 2020-01-20 08:50:08
问题 I should like to manipulate an ObservableCollection of string s by binding it to the ItemsSource property of a ListBox and setting the item template to a TextBox . My problem is that the items in the ObservableCollection do not get updated when I edit them in the TextBox items that the ListBox

How to find a TextRange in RichTextBox (between two TextPointers)

坚强是说给别人听的谎言 提交于 2020-01-20 08:34:48
问题 In my System.Windows.Controls.RichTextBox, I would like to find a TextRange of a given word. However, it is not giving me the correct PositionAtOffset after the first found word. The first one is correct, and then for the next found words, the position is not correct. Am I using the correct

Logarithmic Vertical and Horizontal Axes lines in MS Chart Control

时光总嘲笑我的痴心妄想 提交于 2020-01-20 08:34:09
问题 The image presents a logarithmic graph. I want to create a similar graph using MS Chart control. I know there is a way to convert normal graph to logarithmic graph but i am not able to create vertical and horizontal axes lines (light gray in color) similar to the graph below. 回答1: You could try

C# console font

跟風遠走 提交于 2020-01-20 08:32:13
问题 I cannot find out which font the console app uses by default? Is it guaranteed that everyone has that font (when running this .NET app)? Want to display some unicode chars and need to be sure they are present within that font. Thanks 回答1: I strongly recommend avoiding the Console if you want to

Logarithmic Vertical and Horizontal Axes lines in MS Chart Control

社会主义新天地 提交于 2020-01-20 08:31:46
问题 The image presents a logarithmic graph. I want to create a similar graph using MS Chart control. I know there is a way to convert normal graph to logarithmic graph but i am not able to create vertical and horizontal axes lines (light gray in color) similar to the graph below. 回答1: You could try