Unfortunately Microsoft tend to change their systems with each new release, so you (almost) have to start from scratch each time. The only thing for it is to plough through their documentation. I have to say that I did once post a query on a similar problem to their development forum, and got some very useful help from them.
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.
When splitting up into edible volumes, how would you handle selections across the volumes?
To put things straight - it's not about solving an actual problem. Some time ago, I worked with databases. There is nothing more frustrating than dumping a large MySQL database, just to realize after some hours, that the "CREATE TABLE" statement has been added to the export. Just as an example I've in my mind now.
But there is no customer request behind that. It's just an idea, stuck in my head for a few months now, which I'd like to solve.
What I've got so far: If you use the text approach, chunking would be the best option. There is no need to split the files on the drive, but you would need some kind of controller which would manage the changes being made, map them to the chunks and save them if necessary. This would require paging for navigation, because scrolling would simply be to difficult if you need to take the window size and linebreaks etc. into account.
If I want scrolling, I should take the Hex-Editor approach, that is: Set the textfield to a fixed amount of characters per line, and don't care for linebreaks, etc.
For the scrolling, as soon as you have more than a thousand line or so, you won't be able to reach each line by using the scrollbar so making approximations might be enough...
Or you can divide the file into blocks of a few KB and keep some information like the number of lines in that block or the actual size on screen once the information is known. In practice, I think that using approximations and make adjustment as required later could be more than enough.
And you can probably buy already made editor component that works with big files.
Finally, if files are so large, even if technical problems are solved, it would still be hard to use in many scenarios.
I was hoping someone can point me in the right direction.
I have developed a document reader based around XPS which allows the users to draw an image with the mouse on top of the paginated document in a Canvas. Now this works great in the original orientation (Portrait).
But as soon as I perform a RotateTransform (90 or 270 degrees) on the Canvas for Landscape pages, then attempt to draw again, the image is in the wrong orientation because the left and top of the Canvas has shifted.
Now I can do a RotateTransform on the image before the drawing begins, but on the mousemove event it's going in the opposite direction.
Is there a way to move the left and top of the Canvas to a new position after the RotateTransform?
I'm sorry, but your question is far too broad to be able to answer in a simple forum. Which particular part of this are you having a problem with? WCF? Saving to a database? The principles of MVVM? Some other issue? Remember that we don't know what problem you're actually trying to solve or what your level of knowledge is, so you have to help us by focusing in on the issue you're having a problem with.
Please picture the below points (WPF-> WCF-> DataBase)
1. MVVM is an architecture design pattern used in WPF
2. WPF application need to consume a WCF service for performing CRUD operations
3. WCF will contain the logic for performing CRUD operations with Database for that you can use NHibernate, Entity Framework or with simple ADO.net etc
Private moveRect AsBooleanPrivate trans As TranslateTransform = NothingPrivate originalMousePosition As Point
PrivateSub Rectangle_MouseLeftButtonDown(sender AsObject, e As MouseButtonEventArgs)
originalMousePosition = e.GetPosition(Image)
moveRect = True
Rect.IsHitTestVisible = FalseEndSubPrivateSub Image_MouseMove(sender AsObject, e As MouseEventArgs)
If moveRect Then
trans = TryCast(Rect.RenderTransform, TranslateTransform)
If trans IsNothingThen
trans = New TranslateTransform()
Rect.RenderTransform = trans
trans.Y = -(originalMousePosition.Y - e.GetPosition(Image).Y)
trans.X = -(originalMousePosition.X - e.GetPosition(Image).X)
EndIfEndSubPrivateSub Rectangle_MouseLeftButtonUp(sender AsObject, e As MouseButtonEventArgs)
moveRect = False
Rect.IsHitTestVisible = TrueEndSubEndClass
Now, the first time I move the rectangle it behaves as expected. But once its settled in its new location, it starts over again in its original location. It did not matter what I tried, the second time I clicked the moved rectangle its settled in the middle of the screen.
I tried saving the last Transformation and use this before mouse move was initiated in Rectangle_MouseLeftButtonDown, but that didn't do any good it simply refused to move.
I'll bet its something obvious that I have missed, but I cant see it now.
in part of my WPF Application I need something like a day of calendar that has from up 00:00 to down 23:59 and I need to drag and drop the songs on it to get play in specific time. like a play list.
that's in my mind and I need to know how can I create that calendar day.
what kind of controls should I use? is there some code sample to help me to get some idea?
Please suggest me any way to achieve this functionality. I have one textbox1, when I enter any value to this textbox1 then it should update to other textboxes i.e. textbox2, textbox3, textbox4, textbox5.....
Last Visit: 31-Dec-99 18:00 Last Update: 31-Jul-15 9:16