|
Hi Pete,
A few questions:
1- Who is Chris?
2- What/who is univoter?
3- what do you mean by blanketing me with 1 votes?
Thank you, it is great to find a few like you who help the biginners like me.
Well done.
|
|
|
|
|
Chris is Chris Maunder - he's one of the founders of Code Project.
A univoter is somebody who votes one without a reason. Basically, somebody has taken exception to you for some reason and has been unfairly voting 1 against your posts, without giving you a reason why they've voted 1. It's annoyed me greatly, so I've asked Chris to have a word with them to stop - what they are doing is against the spirit of the site.
I'm glad to help. This is the reason I come to the forums after all.
|
|
|
|
|
What happens if someone gives 1 vote?
|
|
|
|
|
Not a lot really. It just gives them an ego boost, but whoever it is, they are a coward because they hide behind anonymity. The thing is, you can filter messages so that you can't see low vote posts, so potentially somebody could miss your posts.
|
|
|
|
|
each object on Canvas can be added to one of the layer (say layer 1, 2, 3) and is hidden.
only one layer is visible at a time and only targetted portion of the
layer show expose the object in it.
any idea how to acheive this in wpf???
- Regards - J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers
|
|
|
|
|
There are many different ways of achieving this, and the answer really depends on what you are most comfortable with:
You could add multiple canvases, and just display one depending on the particular one you need.
You could implement one canvas, with a collection of layer items which contains as properties, the objects you want to display and a single flag determining whether or not the layer was visible.
You could have a collection of all objects (this is the one I wouldn't choose if I were you), and have a flag on each determining whether or not it was visible.
|
|
|
|
|
Canvas.Zorder should help you out.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
Hi,
I did a application (WPF) which has ImageContrl inside a Border, and using mouse we can Zoom and Pan the control. It works fine except that while Panning the image after zoom, it moves out of the viewport of the Border. Can any one throw me light on hw to solve this
|
|
|
|
|
One thing to be aware of when using a ScaleTransform is that it does not affect the size of the element you are scaling. If you are panning your object by a value that corresponds to the ActualWidth/Height then it might explain why it is panning incorrectly. Perhaps multiply the scale amount with your ActualWidth/Height to get its 'real' screen dimensions.
Cheers,
Daniel
|
|
|
|
|
Good answer Dan. Good to see you here among the mortals.
|
|
|
|
|
Thanks Pete!
The awesome work you do on the CP technical forums blows my mind.
Cheers,
Daniel
|
|
|
|
|
Gosh, thanks. Coming from you Dan, that means a heck of a lot.
BTW - I've got my preorder in for WP7 Unleashed.
|
|
|
|
|
Hello,
I am new to Silverlight. Can anyone help me for creating the Image Viewer using Silverlight.
Here are the requirements:
1) Image Viewer contains images at the bottom of the window. There are arrows for showing next/previous images. i.e.
[Image Preview]
<-- [][][][][][][][][][] -->
where [] = image
2) When User clicks on the image at bottom Image Pane, the image have been previewed in the Image Preview window.
Any help regarding this will be greatly appreciated..
Thanks in advance..
|
|
|
|
|
You could always download and take a look at this[^] sample. Modifying the UI to do what you want should not be that complex.
|
|
|
|
|
Does anyone know about having a family tree control in silverlight. There's a WPF application on codeplex, but that is too extensive to show the already built tree on a website. Their's API is also too big to port back.
In case anyone wants to do this with me, let me know.
|
|
|
|
|
|
Thanks Rob, it seems that your control can provide some guidance for the full family tree control. Would keep you posted if i get to design it further 
|
|
|
|
|
Currently I am trying to incorporate the person user control as collapsible to show hide children. Also to show person's detail on mouse hover.
|
|
|
|
|
The simplest way to do this would be to have a treeview containing the information, and then restyle the template to show the view as appropriate.
|
|
|
|
|
In windows forms application we used to add a data source to the application and then dragged & dropped the fields to the application, that worked fine.
I tried the same in the WPF app but it's not dragging it there on the window.
Can we use the windows form data binding method in wpf or is there any other procedure?
|
|
|
|
|
The databinding in WPF is completely different to Winforms, but much better once you get the hang of it and one of the principle reasons I prefer WPF. I suggest you look for resources on WPF databinding, because with the improved power comes more complexity. Moving Toward WPF Data Binding One Step at a Time[^] by Josh Smith is a very good place to start.
[Edit]
You should also look up MVVM with WPF once you've got the binding down, it will make life much easier.
|
|
|
|
|
WPF binding concepts are a little different. Start here[^].
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
I am trying to show another window using the visible property as:
Window2.Visibility = Windows.Visibility.Hidden
I have written the command in window1 on a command button. But its giving an error
"Reference to a non-shared member requires an object reference."
Any solutions??
|
|
|
|
|
Looks like you may need to declare an instance of Window2 and then hide the instance
Window2 window = new Window2();
window.Visibility = Windows.Visibility.Hidden;
"You get that on the big jobs."
|
|
|
|
|
Can you recommend a book which takes you step by step through a complete silverlight or wpf project from finish to the end?
Thanks
|
|
|
|