|
Hi
I want to create a listbox or listview displaying various furniture parts such as "table leg" or "table top", and then I want to be able to click on these items, and then drag them onto a viewport, but soon as my mouse pointer enters the viewport, the application should generate a 3D model of a table leg or table top, and fix the model in place as soon as I release the mouse button. Similar to how MS Visio works.
Would this be possible? Any help will be appreciated!
|
|
|
|
|
|
Alrightie. As much as I hate WPF's unreasonable adoption for your typical desktop application, I actually want to write an app that has a viable need for WPF. Specifically, I'll be trying to implement some control animation and displaying graphics. To give you an idea of what I want to accomplish, check out Media Portal[^]. It has fancy control animation and displays graphics. My app will be a movie database of movies I own, and I want the interface to resemble the one used in Media Portal. I'm not necessarily interested in interfacing with Media Portal, I just want it to look kinda the same.
Any advice on where to start would be greatly appreciated.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
There is a sample application called photosuru photosuru for cataloging photos, it's interface is pretty good although its not like mediaportal/mediacenter. It is based around rss subscriptions instead of local storage but you may want to check out the source anyway.
I've looked for an app to do what you described but haven't found one I like. I also began writing one but lost interest. You way want to look at some existing ones for ideas perhaps Delicious Library (Mac) and Revolución (Java, not out yet).
I haven't used any of those composite application libraries perhaps someone else could recommend them if they're appropriate for this type of app?
|
|
|
|
|
Hi John, just incase you haven't taken a look at Sacha's Sonic[^] and Geoplaces[^] articles. They are really cool.
Also, take a look at this post on fancy cutom layouts[^]
Hope this helps :>
|
|
|
|
|
John Simmons / outlaw programmer wrote: Any advice
I have kind of hesitated to comment here but for what it's worth:
Try real hard to find something to use to create the actual UI other than using VS. VS is fine for the coding part but for visual designing a WPF UI, it's disappointing.
Line up some WPF resources before hand so you know where you can go for some specific issue. Some places specialize in the graphics portion and some in animation.
Other than that, nothing very specific. Like any other project, decide what you are going to do and how you are going to do it.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
Help humanity, join the CodeProject grid computing team here
|
|
|
|
|
What helped me was figuring out what 'cool things' I wanted to accomplish in my app and then spending some time doing proof of concept designs in a small isolated environment so I could see the effect I wanted in some uncluttered xaml, free of all the other application stuff that would normally be there.
I also second the other comment about using a design tool like the Expression suite to do the graphics work. Although VS is (IMHO) a good development environment, it sucks for doing anything graphical and remotely 'artsy'. You will only get frustrated. Get a copy of the Expression suite to play with to do your design in and keep VS for editing code.
AT least that was my experience with Silverlight. I have not done tons of straight WPF stuff yet, but I assume the experience would be the same.
|
|
|
|
|
Hi.
How can we use LINQ to XML in SilverLight 2 ?
Thanks.
|
|
|
|
|
|
Used in my project and works pretty well.
/// -------------------------
Braulio Díez
DBSchemaEditor.com
Free Silverlight based DB Schema Modeling Tool
/// -------------------------
|
|
|
|
|
here's a code snippet
i start a new thread:
Thread timeThread = new Thread(UpdateDateTime);
timeThread.Start();
then i use this to update the labels:
delegate void UpdateDate(string date);
void updateDate(string date)
{
lblDate.Content = date;
}
delegate void UpdateTime(string time);
void updateTime(string time)
{
lblTime.Content = time;
}
void UpdateDateTime()
{
int seconds;
string time;
DateTime dt = DateTime.Now;
seconds = dt.Second;
for (; ; )
{
dt = DateTime.Now;
if (seconds != dt.Second)
{
seconds = dt.Second;
string dateString;
dateString = dt.Month + "/" + dt.Day + "/" + dt.Year;
lblDate.Dispatcher.Invoke(DispatcherPriority.Send, new UpdateDate(updateDate), dateString);
time = dt.Hour.ToString() + ":" + dt.Minute.ToString() + ":" + dt.Second.ToString();
lblTime.Dispatcher.Invoke(DispatcherPriority.Send, new UpdateTime(updateTime), time);
}
}
}
is there any more efficient way to update the clock without taking up 50% of my resources????
|
|
|
|
|
Use System.Windows.Threading.DispatcherTimer
Nick
----------------------------------
Be excellent to each other
|
|
|
|
|
works perfectly, takes up 0% of resources now. thanks so much.
|
|
|
|
|
That's not a timer, it's an endless loop. What did you expect ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
buy a quad-core and see it consumes only 25% now.
or insert a Thread.Sleep(500) in the for loop
or use a timer instead of a thread
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
I am finding a solution in wpf which is similar to “treelistview” (http://www.codeproject.com/KB/list/treelistview.aspx)
I have an xml, which has lots of outer an inner node with same number and type of attribute.
According to hierarchy it should create tree and according to attributes it should create columns and display data contains in it.
Thanks
hiren shah
hirenkshah@gmail.com
Thanks
hiren shah
|
|
|
|
|
|
sir,
Thanks sir, it will help me lot but I wanted to put editable controls like textbox, checkbox etc in single column, According to Node type (Parent or child). With key navigation like F2 selected Row and 2nd columns editable control is appear.
Can you please help me regards to this problem.
Thanks.
Thanks
hiren shah
|
|
|
|
|
Have you even tried to play around with the controls I shared for you? What did you try which did not work ?
|
|
|
|
|
Hello everybody.
Can we get user session ID with SilverLight 2 ?
Is it possible at all ?
Thank you.
|
|
|
|
|
I don't know what "user session ID" you're referring to,
but I'll answer yes and yes.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: I don't know what "user session ID" you're referring to,
Well, I know a session ID from PHP that we could get it with session_id() function.
How many session ids do we have in SL2 ?
|
|
|
|
|
Mohammad Dayyan wrote: How many session ids do we have in SL2 ?
None.
Session IDs are a server side thing - Silverlight is a client technology.
You can use ASP.NET sessions through ASP.NET/WCF services...
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark .
Mark Salsbery wrote: You can use ASP.NET sessions through ASP.NET/WCF services...
I'm working just with SL2 (client side) and I wanna get an unique thing for every visitor.
Can we get a something in SL2?
Is there an unique thing in Client side that I could get it with SL2 ?
Would appreciate for helping.
|
|
|
|
|
Mohammad Dayyan wrote: I'm working just with SL2 (client side) and I wanna get an unique thing for every visitor.
Silverlight runs on the client so it's already "unique".
There's no concept of "visitor" on the client side.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|