On Mouse over / on Getting focus, The Button Disappers in windows 8 metro app, How to disable that effect? - xaml

In Many places in my application i am using buttons in the UI but my doubt is :-
1)when a button gets focus or when it is getting mouse over also , the button background disappears (i.e, it becomes invisible at that time),
After again coming away from button (button losing focus) it shows up the button as usual
so , On mouse over / Getting focus the button behaves in this way.
What should i do if i dont want this effect. Please let me know .
2)i might be wrong, but my guess is that there should be some visual state property behind this , which i need to disable , but i dont know where where to disable ?? , please let me know it .
Thanks in advance.

I believe you will need to retemplate the control so that you can override the visual states. You can do this easily inside Blend by right clicking in it and choosing to edit a copy of the style.

Related

Infragistics State Button Checked doesn't show borders

Here is my question. I have some state button tools in my Toolbars Manager. When I set Checked = True, I don't see that button is checked. Actually I see it, but without borders as usual. Instead of that I can see light-light blue background in my state button tool. Could you please answer why is it happen and how can I change my code to view state button checked state as usual (with borders and usual background) ?
I was able to reproduce your problem setting the BorderAlpha property to Transparent.
Resetting to Default reenables the border around the Tool.
The property is present in every Appearance settings of the button, but the one I have used is the PressedAppearance of the Tool (Large or Small depending on your customization)

Using Popup control in Window 8

Is there any property of pop up , wherein we can dim the window app.
As in metro app there is no Child Window control available , so using
popup in place of it but the problem in popup is when it is open the
user can still interact with other control on window app.
So is there an workaround to make the window app dim when pop is open.
I'm not sure to understand what your trying to do. You can put a Border as first child of the popup which exposes the Background property. So if you specify a not null Background (Transparent for instance) the popup will catch every interactions.
It sounds like you want the MessageDialog class. The popup is meant to be non-modal, letting the user close it by just clicking away from it. The MessageDialog is a regular modal popup that does not let the user interact with the rest of the app when it is displayed.
If you really insist on using the popup control, here is a simple workaround:
Make the popup use all the screen (using a grid or border), then set that background to Black with opacity 0.1 (or any other color you see fit, this is to give a "dim" effect), then inside this popup, place another container with the size and margins that you want to act as your "real" popup.
Because the popup takes the whole screen it will prevent the user from clicking anywhere in the screen.

Visual Basic Background Image Flicker on PRESSING TAB

I am making an application using VB.NET 2010 and I have set a background image which flickers every time I open any new Form or hit tab for jumping from textbox to textbox
By pressing (tab) it only flickers once but always flicker when ever I close the form and open again.
I have tried everything; background image set to, STRETCHED, CENTRE, ZOOM but still it's the same.
Only thing is when I remove my background all is well, can you help me; what could be the reason of this?
Screenshot is attached please have look
You could try setting the form's DoubleBuffered property to True. However, by looking at your screenshot, it seems like you'd be better off just using a PictureBox control to contain the image.

VB Datagrid Disable AutoScrolling Focus on Selected column

Kinda new here but needed help and a good friend suggested this site.
My problem is I have a data grid in Visual Basic, it works fine but as the columns extend past the width of the window I needed a scroll bar. This is where the problem arose. When a column past the 4th is clicked the scrollbar will shift to give it focus. As there are check boxes here they are constantly clicked and when they are the scroll bar shifts but the button isn't checked and must be clicked again.
I was hoping there was a way to disable this Auto focus so clicking a column will not cause the scrollbar to move.
Any help would be greatly appreciated. ^__^
There is no real autoscroll in vb, one of the sub method was causing it to jump by checking another cell off the screen then defaulting back to the one shown which had the appearance of a jump.

CF - Button when pressed receives a focus (bold border)

As the question is asked ... how can i prevent that from happening?
I have ZOOM IN and ZOOM OUT button that receive focus after pressed.
The button in CF does not have focus property so im guessing im required to do another painful workaround...
Any ideas?
This is the way the system draws the buttons when clicked. If you don't want this you'll have to redraw the button (and it various states) yourself