Hi I am working on one project on one page there are many controls like hyperlinkbutton, buttons, borders all these bounded by viewbox. when page loads all the buttons shows hand cursor but if i mouse over any other buttons this first buttons do not show any hand cursor or do not take any mouse event. But I abserved one strange thing here when i make full screen in browser buttons will show hand cursor when i disable the full screen view I abserved hit area of the button is above one 2cm from the respective buttons.
I browsed many sites I could not get the answer.
among them I pasted one link here so that you can understand well
http://forums.silverlight.net/t/44026.aspx
So can any one help me help me to resolve this? Please Help me.
Related
I have a list and its scroll bar on the right along with two custom buttons representing upscroll and downscroll. These two buttons simulate scrolling by using list.setSelectedIndex(index, true) and are placed above and below my scrollbar via my custom layout.
I have two questions regarding this:
1). Since the upscroll and downscroll buttons are overlayed on top of the list, they disappear when i click elsewhere..and they kind of flash into appearance when i click the area it's supposed to be in. How can I remedy this behavior?
2). I have a scrollbar image that I have used in the "Scroll" theme in the GUI builder. It's alignment is IMAGE_ALIGNED_CENTER. However the scroll thumb doesn't reach the end of the bar when i scroll to the end of the list via my upscroll and downscroll buttons. The upscroll and downscroll buttons essentially scroll the list by one index with each press (using setSelectedIndex(index, true)).
Thanks
How do you overlay the buttons. I'm assuming you just set them into a specific location which disallowed as we can't possibly adapt them to the various resolutions. I suggest reading the developer guide section on layouts very carefully.
To place something on top of the list in a portable way you need to use the LayeredLayout or the LayeredPane and a Container + correct layout to position this within (e.g. BorderLayout EAST).
In this blog post there is a sample for making a scrollbar but it isn't "on top". It can be used as a starting point.
We've got a fairly basic implementation of the PivotViewer that we've put on a HP touch screen PC. Everything works as expected - and on the left hand pane you can select options, clear options etc.
The problem is when you select a card, the right hand pane is displayed as expected, but if you choose an item from this right hand pane (although this action works and the screen animates to show the new results) the next time you select an item the right hand pane is blank.
You get this behaviour even when you use the mouse on the touch screen.
Does anyone have any ideas please?
This same implementation works fine on every other PC - just not the touch screen where it is to be deployed!!
Although other samples I downloaded gave the same behaviour on the touch screen I found that a sample showing a custom details pane sorted things out.
I downloaded the sample from here:
http://tonychampion.net/blog/index.php/2011/10/sl5-pivotviewer-custom-detailpanestyle/
It worked much better on the touch screen anyway as I made big buttons on my custom pane, rather than the hyperlinks that were there before.
I need to duplicate a control on two windows on two different screens, I am writing a WPF application in which I have a "WebBrowserControl", I need to duplicate the "WebBrowserControl" onto another window and on another screen. I need to render exact copy on both screens, moreover I need to capture mouse movement on both screens. Mouse should be moving at exact locations on both screens.
Can anyone suggest anything? I have tried capturing screen and putting it in another window, but how do I capture mouse movement?
Any ideas? Any help will be of great value.
Thanks.
Handle the mouse move event is the answer on how to capture mouse movement.
MouseMove
The part that confuses me is how you are going to have a mouse on both screens.
pretty weird issue, essentially not replicable with certainty. Several offending buttons are located on top of a tab control's header (not as a tab page child, they are child to the same surface that tab control is child to) in upper right corner, to the right of the righmost page header button. Usually they are fine, but sometimes all these buttons are only visible as button shapes without text. But when I move mouse to them to click, with the mouse over them the text becomes and stays visible.
To be clear, the buttons are always visible and so are certainly "on top of" the tab control in the z order.
What gives?
We have already seen this issue and it is registered in the support center at:
SimpleButton's Text is not visible
We will research why the problem appears and fix it.
I currently have a Silverlight canvas that exceeds the viewable area of the screen (I'm letting the users drag the viewable areas around to navigate). I'm trying to display a modal popup that always shows up in the middle of the viewable area, and I can't seem to find any property that tells me what currently is on the screen. Basically if the user has panned down to the bottom and clicks something that causes a modal popup to appear it is stuck at the far top of the screen.
Any ideas anyone?
Thanks
~Steve
I don't think this is possible since the visibility isn't being surfaced. Perhaps with some fun JavaScript to figure out where the panning is?
Quite true. I wound up creating a holding canvas, making that full screen, and putting everything else as a child canvas within that. The modal popup now comes up in the holding canvas.
Gabriel GuimarĂ£es one works good.
App.Current.Host.Content.ActualHeight(and ActualWidth) does bring the browser size inside. Good for calculating position. And of course you can use LayoutUpdated on your main control to double check the sizes and resize stuff if need be.