I have problem with MouseDown event. My app looks like that, I have grid in which im adding buttons in code behind
<Grid Grid.Column="1" Name="gridWithButtons" MouseDown="normalModeButtonsWP_MouseDown" >
<WrapPanel Name="normalModeButtonsWP" MouseDown="normalModeButtonsWP_MouseDown" ></WrapPanel>
</Grid>
But when im pressing mouse button in grid/wrappanel ( i mean in empty space between buttons for example) it doesnt work. Works only when im pressing button which is in wrap/grid. Anyone know how to handle it?
Setting IsHitTestVisible alone will not make it work.
Elements are not clickable if Background is set to None. To make it clickable (applies to grid, stackpanel, etc) set the Background to #00000000. This is a feature by design to prevent users clicking on ghost buttons. However, assigning it a color will make it clickable.
Try setting IsHitTestVisible = true on your grid
Related
After creating a flyout, and setting CloseButtonVisibility="Collapsed"I set the background color for the grid to aqua... showing that the close button margin is still there.
This is how I create the flyout..
<Controls:Flyout Name="PingFlyout"
IsModal="True"
CloseButtonVisibility="Collapsed"
Theme="Light"
Position="Top"
Margin="250,100,250,100"
AnimateOpacity="True"
AnimateOnPositionChange="True"
/>
Am I missing something? How do I get rid of the close button area completely and have my flyout actually center?
TitleVisibility="Collapsed" in addition to CloseButtonVisibility="Collapsed"hid the margin.
I have a WPF application where a button is defined through
<Button Command="{Binding ShowSomeDialog}">
<AccessText>_Push me</AccessText>
</Button>
The button does not show the "P" underlined when pressing the ALT-Key, but pressing ALT-P does invoke the command.
In the same application in another window the exact same tag behaves as expected, meaning: it underlines the P when ALT-Key is pressed.
In the context where the HotKey is not underlined, the button is nested deeply. Simplified the hierarchy may be sketched as
Window
syncfusion:TabControlExt
syncfusion:TabItemExt
UserControl
syncfusion:TabControlExt
syncfusion:TabItemExt
UserControl
Button
The HotKey will be underlined if a button is added to the '4. UserControl' and will not be underlined when added to '7. UserControl' or deeper.
I can't find any custom styles for the elements inbetween, especially none in which the RecognizesAccessKey is set to False.
Does anyone have an idea what or where to check?
Check if you have Button restyled somewhere - access key behavior can be easily broken with incorrect style.
And btw, you did try setting Content attribute to "_Push me" directly, without using AccessText, didn't you?
P.S. MSDN may be of help here.
Play with <AccessText ... Margin="0,0,0,X"/> where X is a double value and look if the underscore appears.
This Radmenu is dynamically created in code behind.Please let me know how to add scroll bar in this menu to limit the items in the submenu.
Check out this post from telerik forums.
Though it's in silverlight, I'm pretty sure you can use it as is.
Try explicitly setting the Height property of the Menu for that has a lot of menu items and that should add (Up/Down) button I believe
While not a scrollbar, you can set the DropDownHeight property of the RadMenuItem. It limits the height taken by the child menu items, and has up/down arrows to enable the scrolling.
I have this narrow panel which is basically a list of thumbnails, and i need to be able to scroll over them using buttons.
We have a panel (anchor layout), with containers in it, and each container contains the image.
there isn't space for a scrollbar, and anyway we don't want one.
I thought it would be as easy as in the listener for my button calling panel.getEL().scroll('b',20)
but this isn't working because the scrollHeight === ClientHeight so scroll does nothing.
Is there a technique I am missing or should this work?
So you're using a button to scroll through the images? What about having the button's listener remove/hide the containers/images at the front of the panel to allow the others to use the space?
I want to display the value of a slider as the user moves the slider up and down. Is that possible?
Seems you can do this
AutoToolTipPlacement="BottomRight"
You can implement a Custom ToolTip using Popup. You can update the Popup position as and when the slider moves. Also, this kind of tooltips gives nice UX feedback to the user.