Open PathListBoxScrollBehavior WPF - c#

I'm using blend 4 and vs 2010 to develop a port of an app from iPad to Windows Desktop.
I have a pathlistbox with PathListBoxScrollBehavior attached like in the carousel tutorial showed by Microsoft in the presentation of PathListBoxUtils.
My path is a open path (a line) and I don't want a infinite carousel but a path list box that go through the items but stops when comes in the last or first item. Am I being clear?
Something similar to what exist is on ios (similar to the cover flow effect too)
http://www.youtube.com/watch?v=YIWDlnvHRLw&feature=related
I know there are ways to do that but I can't find it.

There are a check box called WrapItems. When unchecked your Path List Box won't spin infinitely.
There are some bugs to solve yet but are specific to my project.
Hope this solution helps you too.

Related

c# code to show miniature live view of another window

On Win11, when I use Alt-Tab to cycle through the windows on my machine, I can see live miniature versions of the active windows, including video on YouTube. Does anyone know a way to do this in c#.
Ultimately, I want to have a page that shows a few live miniature windows that the user can click on one to go to that program. It is important to be able to see changes, e.g. flashing alerts, on the miniatures, so ideally the update rate for each should be <200ms
I've tried searching online for solutions, but I've not found a way to phrase the problem such that I get any clues where to even start

Problems while running C# application on a mac using mono

I have a C# WinForms application with very simple controls: Message boxes, labels, pictureboxes and textboxes. I want to be able to run this app on a Mac so I downloaded mono and ran it using the terminal.
I have 2 questions:
1.) How do I make the default process for a windows based exe application to open using the framework so I dont have to open it from the terminal every time?
2.) The controls don't appear at the right position. Most of the labels, textboxes have moved their position and the position of a button on the screen is not where it is supposed to be clicked but a little below it. The form looks perfect on Windows.
Can anyone help me figure this out?
Thanks in advance

Drag an image from window in a wpf project to another window in a separate project?

I am very new to WPF and I've tried to find the guides and tutorials about this but haven't found exactly I wanted.
This post has been the closest, a solution for moving an item between two different windows (in the same project). However this limits any other drag and drop features you want to do (e.g. within a canvas).
In a similar fashion, I want to move something (an image, within a listbox specifically) from one app to another (when both are running at the same time).
Any help or tips would be appreciated, thank you!

Adding a context menu item to windows explorer

I've been searching for days about this, but haven't found anything.
I am trying to find out how I can add a context menu item to the windows explorer. I do not want it for specific filetypes, BUT I want it to appear on everything inside a specific path.
For example, I want right-click menus of anything inside "C:\folder" to contain this item, but it shouldn't appear outside this folder...
Is that possible?
Any help will be really appreciated!
Thanks in advance,
John.
The normal way this is achieved is to add it to the Registry under:
HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell
However in your specific case you want to do some preprocessing before it is displayed (eg is it in the specified directory) which wouldn't work with a simple registry alteration.
I think there is a way to force you way into any operation and add a hook to it. I'm talking about old school knowledge now though and I cannot think what the technology would be called. I think its how you would have, for example, forced your way into the rendering engine to put custom skins on normal explorer windows or inject an extra button into the title bar of apps like you used to see back in the day.
It just occurred to me that adding a button to the windows title bar might have given a search starting point, I found this article which refers to subclassing windows components and injecting your own behaviour. I think that is what I'm talking about above:
http://www.codeproject.com/KB/wtl/titlebar.aspx
Hope this gives you a new direction to search in.

How to build a simple source code editor using WPF?

Hello there and Merry Christmas !!!
I am new to WPF and I am trying to build a text editor for a assembly language. The assembler provides me a two lists:
a list of errors
a list of warnings
My editor should have the ability to inport the contents of a file and display it in a text-panel. I want it to be similar to Visual Studio. Line numbers on the side. And a tabbed pane for the warning/error messages.
Each list element contains the line number as an Int and a String that contains the error/warning message. (It would be really cool if I could click on it in the tabbed pane and it would jump to that line and highlight it.)
How I said I am new to WPF, I don't know the control library and I don't have too much time to dig and get friendly with google.
So I would really appreciate it if someone could point me to at least the controls I need to develop my GUI.
My best regards,
John
Free one http://blog.bodurov.com/Wpf-Source-Code-Editor
All I has for you is two links:
CodeyProject
Commercial one (SandDock)
Our SyntaxEditor for WPF control was just released to the public last week. It is a syntax-highlighting code editor control similar to the Visual Studio 2010 editor. You can find more info about the control here:
www.actiprosoftware.com/Products/DotNet/WPF/SyntaxEditor/

Categories

Resources