menuitem

CSS: How can I center a horizontal list? Display:Inline not working

╄→гoц情女王★ 提交于 2019-11-30 11:30:16
I am having major trouble getting the simplest of codes to work. I want my css horizontal list to be centered, that's all. Link here: http://bit.ly/LtIBai I have this code: #megaMenu.megaMenuHorizontal ul.megaMenu { text-align: center; } #megaMenu.megaMenuHorizontal ul.megaMenu > li { display: inline; } Yet it will not center? NOTE: The window must be at "tablet portrait" size to see the code I'm referring to. Approximately 800px wide, when the logo is centered and the menu falls to the next line, but before the mobile menu appears. The reason they refuse to center is because they are also

WPF menu item with image

穿精又带淫゛_ 提交于 2019-11-30 10:41:25
How to define MenuItem.Icon so that the MenuItemHeader text would be placed below the menu item image?Thanks for help! The easy way way is to not use the Icon property but to instead put the icon in the Header: <Menu> <MenuItem> <MenuItem.Header> <StackPanel> <Image Width="20" Height="20" Source="/XSoftArt.WPFengine;component/Images/export32x32xp.png" /> <ContentPresenter Content="Reports" /> </StackPanel> </MenuItem.Header> </MenuItem> <MenuItem Header="Export" /> <MenuItem Header="New record" /> </Menu> For this simple case the <ContentPresenter Content="Reports" /> can be replaced with a

Navigation drawer menu item with titles and sub titles

浪尽此生 提交于 2019-11-30 10:09:23
I have a navigation drawer prototype. we have heading and subheading in the same. am using menu group to include the titles. 1) just want to add sub title or help text for the navigation drawer. 2) want to customise the icon size to fit the whole heading and sub heading so it looks like the image below. <item android:id="@+id/nav_home" android:icon="@drawable/ic_menu_home" android:subtitle="View your biorhythm" <!-- This should be sub title. --> android:title="Home" /> Inside in DrawerLayout create ListView using below code <!-- List of Actions (pages) --> <ListView android:id="@+id/navList"

WPF: Menu Items only bind command parameters once

南楼画角 提交于 2019-11-30 08:52:24
问题 Ive noticed this a couple of times when using menus with commands, they are not very dynamic, check this out. I am creating a menu from a collection of colours, I use it to colour a column in a datagrid. Anyway when i first bring up the menu (its a context menu) the command parameter binding happens and it binds to the column that the context menu was opened on. However the next time i bring it up it seems wpf caches the menu and it doesnt rebind the command parameter. so i can set the colour

WPF - MenuItem missing Icon/Image

无人久伴 提交于 2019-11-30 04:43:47
问题 Im getting menuItem icon appearing only on last menuItem. If i snoop the app only last menuItem has image in icon, while if i debug all MenuItems appear to have image in icon. Also if i add submenuItem the icon on menuItem dissapears once i open submenus and the last submenu gets the icon... Any idea? PS: also tooltips on menu item dont work. Im using caliburn micro and fluent ribbon controls. <ControlTemplate x:Key="dropDownButton"> <ef:DropDownButton Header="{Binding DisplayName}"

Solved: How to add dividers in Bottom Navigation View

China☆狼群 提交于 2019-11-30 04:13:52
I'm trying to add divider in menu items of BottomNavigationView All items are showing horizontally in the bottom but I'm not able to add dividers into it. Bottom Navigation View xml: <android.support.design.widget.BottomNavigationView android:id="@+id/navigation" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:focusable="false" app:itemBackground="@color/colorPrimaryDark" app:itemIconTint="@color/bottom_navigation_selector" app:itemTextColor="@color/bottom_navigation_selector" app:layout_anchor="@id/container" app:layout_anchorGravity="bottom" app:menu="

WPF - how to hide menu item if command's CanExecute is false?

最后都变了- 提交于 2019-11-30 01:44:09
By default menu items become disabled when its command cannot be executed (CanExecute = false). What is the easiest way to make the menu item visible/collapsed based on the CanExecute method? You can simply bind Visibility to IsEnabled (set to false on CanExecute == false). You still would need an IValueConverter to convert the bool to visible/collapsed. public class BooleanToCollapsedVisibilityConverter : IValueConverter { #region IValueConverter Members public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { //reverse conversion

How to get an MenuItem by id

走远了吗. 提交于 2019-11-30 01:42:04
问题 I have my menuItem on my res/menu/student_marks.xml file: <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:context=".StudentMarks" > <item android:id="@+id/action_selected_year" android:title="@string/action_selected_year" android:showAsAction="withText|ifRoom" style="@style/AppTheme" /> </menu> Now i need for this item to set a title.in a specific part of my app. I can work with a specific item in this method:

Ugly “disabled” images of TMainMenu

十年热恋 提交于 2019-11-29 22:38:43
Delphi 2010, Win32 VCL. I need to create a main menu for my application with the most standard look. TMainMenu looks nice in all Windows versions, the only bad thing is when it displaying images for items with Enabled=False. Delphi has some strange method for building that disabled images (b/w extrusion with bevels, for me it looks like spew). I want to make a patch for that procedure in VCL sources and let menu to select disabled images from the same TImageList, but I can't find it. Is it exists at all or it is some standard windows API call? Do you know where is that procedure located? Sure

Is it possible to grey out (not just disable) a MenuItem in Android?

送分小仙女□ 提交于 2019-11-29 21:01:09
There's a question for the same functionality on Blackberry , and a few different threads referred to this bug (which has since been closed without resolution as far as I can tell), but I haven't found one specifically for Android. I'm calling setEnabled(false) on certain MenuItems based on some state, but they visually look the same. I'd like them to be offset in some way, so that the user knows that the option currently isn't available -- is there any way to do that? I had the same issue. There are two ways of getting this to work: Put your icons in a StateList so that a different icon will