You are trying to edit Visual Studio's start page?
I don't find any solid reason why to do so... Secondly, if you need help, please see the XMLNS for vs and look for what is provided there to make these buttons run. I would like to say, don't do it. Let it be the actual page.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
Let me educate you a bit since you clearly don't know... Starting in VS 2010 MS introduced Start Page templates so developers could create their own start pages. It's a WPF user control and is easy to modify. But they did not provide templates for later versions of VS, so you have to use the 2010 template, which can be difficult.
Please, if you don't have a solution to the problem, don't responde.
for some weeks now, I'm getting my head around an interesting problem: I'd like to display a text file of several gigs, and let it be editable.
Now - how would you do that? All standard approaches fail, because they rely on the file being fully loaded into RAM, which is impossible with several gigabytes of data. So, I thought I'll create a CustomControl. Basically, I've derived a Control from the Control class, which embeds a FrameworkElement in it's Generic.xaml. This FrameworkElement has a VisualCollection. Now, I hand over a Stream to this control. The Stream must be seekable and writable, otherwise you will encounter an exception. So far, I do the following: I read a chunk of data from the Stream, draw that using FormattedText on a DrawingContext, retrieved by a DrawingVisual. For scrolling, I simply adjust the offset of the FormattedText-function. To achieve seamless scrolling (which is needed, so you can scroll from one buffer chunk to the next without a visible gap), I have a function which calculates the amount of text that fits precisely into a rectangle (e.g. the Window's viewport), so that the rest of the current buffer, together with the next buffer, can be printed on the next rectangle.
But, for the sake of it, I can't find out how I would do standard editing functionality. Because, for the scrollbar and this "chunking" to work, one needs to precompute the needed amount of text to fill the rectangle, which changes when editing the text.
Do you have a smart concept on hand, together with WPF and C#, to create a TextEditor, which is capable of editing gigabytes of text?
Not really, at least for Windows. On the one hand, there is Large Text File Viewer, but that is hard to find at the moment. EmEditor is commercial Software, but disables word wrapping and some other options, afaik. And I don't think editing will work.
Then, there is HxD, a Hexeditor. It can even read your disk. That would be the last option, cause with a hex editor, you dont have to deal with line breaks etc. Everything can be set to fixed with. But that would be too easy.^^
A little bit easier to approach would be paging, I guess, instead of scrolling. But that is not so nice, but would be an Option, too.
Last Visit: 31-Dec-99 19:00 Last Update: 31-Mar-15 7:25