How to change selected item color and the selected area size of listview

What i really need to do is change the following things in XMAL.
1. Changing the selection color
2. Size of selected area 
Thanks in advance.
Dileepa S. Rajapaksa
Trainee Developer
Microsoft, Sri Lanka
Twitter : @dsrajapaksa
Blog : http://www.dileepatech.net

Hi Dileepa,
It is possible by customize the control by its template, see this for more information:
ListViewItem styles and templates.
By changing the selected visual state, you can change the color of the ListView item background, also the size of the selected item.
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to change the selection background color of the selected item in the popup menu of the choice box ?

    How to change the selection background color of the selected item in the popup menu of the choice box ?
    By defaut, the selection background color likes "blue", but if I want it to be "yellow" for example, how should I do ?
    Thanks

    The id is applied by (I think) the skin class of the ChoiceBox. You don't need to define it.
    You have to apply the css in an external style sheet. You can apply the external style sheet to any parent of your choice box, or to the scene (the most usual way to do it).
    Example:
    import java.util.ArrayList;
    import java.util.List;
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class ChoiceBoxTest extends Application {
      @Override
      public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("Example 2");
        final ChoiceBox<String> choiceBox = new ChoiceBox<>();
        List<String> tempResult = new ArrayList<String>();
        for (int i = 0; i < 10; i++) {
          tempResult.add("Item " + i);
        choiceBox.getItems().setAll(tempResult);
        VBox root = new VBox();
        root.getChildren().add(choiceBox);
        final Scene scene = new Scene(root, 300, 250);
        scene.getStylesheets().add("choiceBox.css");
        primaryStage.setScene(scene);
        primaryStage.show();   
      public static void main(String[] args) {
        launch(args);
    choiceBox.css:
    @CHARSET "UTF-8";
    #choice-box-menu-item:focused  {
    -fx-background-color: yellow ;
    #choice-box-menu-item .label {
    -fx-text-fill: black ;
    Message was edited by: James_D

  • How to change Object Stroke Color and fill Color?

    Hi to all
    i need to change fillcolor & stroke color of Object
    here i wrote code that tried but it is not
    myDoc = app.activeDocument;
    var dd = myDoc.colors.add({name:"PANTONE Black C", model:ColorModel.spot, colorValue:[0, 13, 49, 98]});
    app.findObjectPreferences= NothingEnum.NOTHING;
      app.changeObjectPreferences = NothingEnum.NOTHING;
      app.findObjectPreferences.fillColor = "Black";
      var myI1 = myDoc.findObject();   
       app.changeObjectPreferences.fillColor = "PANTONE Black C // here error throwing
        app.changeObject ();
    app.findObjectPreferences= NothingEnum.NOTHING;
      app.changeObjectPreferences = NothingEnum.NOTHING;
      app.findObjectPreferences.strokeColor = "Black";
      var myI2 = myDoc.findObject();   
       app.changeObjectPreferences.strokeColor = "PANTONE Black C // here error throwing
        app.changeObject ();
    Error is :  Invalid value for set property 'fillcolor' ,Expected Swatch, String or NothingEnum enumerator, but received "PANTONE Black C";
    pls help me...
    Thanks
    Thangaraj

    Hi scriptor,
    how to create find change query for object search
    pls tell me with script.
    here i attached one jpg file screen shot to understand my need
    Thanks
    Thangaraj

  • I'm new to photoshop and I want to convert an image file to a fabric file like .zfab or .fab...is this possible? I want the image to be in color and the images are .png. I am using windows 8

    HI I am using software for fashion design called Marvelous Design . I want to import my fabric patterns which are .png image files but they have to be in .zfab or .fab format. can adobe convert these files into these extensions? If so, how do I do it? Thanks for any help!

    This is from File extension FAB - Open .fab files :
    The FAB file extension is associated with the Fabmaster software, or file format developed by the Electronic Source Company.
    Fabmaster seems to be obsolete product that is not supported by its developers.
    ~~~~~~~~~~~~~~~
    As for the software, did you mean Marvelous Designer?
    ~~~~~~~~~~~~~~~
    For ALL file formats supported by Photoshop, see:
    Photoshop Help | Supported file formats

  • The 'selected items' color randomly changes and I can't figure out why.

    Hi everybody, I recently upgraded to Firefox 13, which appears to be the most stable browser version so far and I really like it. I have loved Firefox very much, having used it since somewhere between versions 2 and 3.
    After upgrading to version 13 I noticed something that annoys me quite a bit. This may have been present before but I can't remember and I did not notice until now.
    On my computer (Windows 7 x64 Ultimate) I have set the color of the 'selected items' (specifically text) to be lime green text on a slightly off black background. I chose this color scheme because it blends very well with Firefox itself (I have the NASA night launch theme), Windows Explorer, and many web pages that I have changed to a dark theme (using the Stylish browser extension). This color scheme has excellent contrast in areas with black text on a light background, as well as light text on a dark background. It has served me well.
    After upgrading to Firefox 13 I have noticed that if the web page is dark with light text, the 'selected items' color changes to lime green text on a light grey background. (Less frequently, it changes instead to off-black text on a lime green background). I have not been able to isolate the threshold where this change occurs (meaning how dark the website background needs to be /how light the text needs to be for this to happen) nor have I found a solution.
    This problem sometimes extends even to sites that have dark text on a light background: when tabs are switched, with no input fields clicked and the address bar is not clicked. This very page (Firefox support) is apparently vulnerable as well.
    This problem only happens on rendered web pages. Firefox's menus, buttons and toolbars, as well as all other programs and Windows itself, are unaffected.
    I want the 'selected items' to remain as I have set it, and not deviate regardless of the apparent contrast or color scheme of the web page being displayed.
    [Edit #1]: Interestingly, as I was copying the information from about:support I noticed that it is affected as well.
    Any suggestions? Thanks so much, and I am sorry for the long-winded description. tl;dr look at the pictures.
    [http://i.imgur.com/vmLZ6.png selected items]
    [http://i.imgur.com/d8xsa.png example1]
    [http://i.imgur.com/2OE9J.png example2]
    [http://i.imgur.com/1lhvb.png example3]
    [http://i.imgur.com/UWOOp.png example4]

    It is always best to avoid making changes to the selected text colors.<br />
    Firefox uses an algorithm to check if the contrast is sufficient and will swap text and background colors if that test fails.<br />
    *http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsTextFrameThebes.cpp#3349
    *http://forums.mozillazine.org/viewtopic.php?f=38&t=1331845

  • Changing JList non-editable Font color of the selected items

    Hi All,
    I want to change the font color of non-editable JList's selected items which is not clearly visible to user. And I need to change the font color only the selected item in this scenerio.
    Could you please clarify me?
    <img src="file:///C:/DOCUME~1/sgnanasi/LOCALS~1/Temp/moz-screenshot-4.png" alt="" />

    [email protected] wrote:
    ..I want to change the font color of non-editable JList's selected items which is not clearly visible to user. And I need to change the font color only the selected item in this scenerio.Set a custom [cell renderer|http://java.sun.com/javase/6/docs/api/javax/swing/ListCellRenderer.html] *(<- link)* for the JList.

  • HT201471 I updated my iPad 2 (model A1395) to IOS 8 and all the colors changed and the photos are like negatives.  why? and how do I fix it?

    I updated my iPad 2 (model A1395) to IOS 8 and all the colors changed and the photos are like negatives.  why? and how do I fix it?

    Looks like someone changed setting in iOS8.
    Change this setting.
    Settings -> General -> Accessibility -> Grayscale or Invert Colors

  • Changed the color of the selected text

    I changed the color of the selected text in Photoshop CS6, from black (background) & white (text) to different colors. I want to know how I did it.

    Selecting tends to invert the text. Use Ctrl/Cmd h while in Text edit mode to hide the selection.

  • I just purchased Export PDF, and when I use it, it opens them in WordPad (which I never use) instead of Word. Thus, the pictures are not there, and the fonts are changed. How do I get into Word?

    I just purchased Export PDF, and when I use it, it opens them in WordPad (which I never use) instead of Word. Thus, the pictures are not there, and the fonts are changed. How do I get them imported into Word?

    Hi,
    I checked your account,your Export PDF subscription is in 'Pending' status.
    Once it gets confirmed you will be able to use it.
    Please let us know if you require further assistance.
    Regards,
    Florence

  • I have a macbook pro 17".  How can I change the way things look?  The page only takes about half of the screen and the fonts are fairly small.  I am sure there is an easy adjustment.  Please clue me in.  Thanks

    I have a macbook pro 17".  I love the big screen, but how can I change the display?  The content takes about half of the screen and the fonts are very small.  I am sure it is an easy fix, so please clue me in.  Thanks

    Look at your >System Preferences>Displays

  • Hi, I want to purchase the complete creative cloud at S$60 , however, in my account, at the payment page, it's appear RM currency and the selection of country does not include singapore. How am I suppose to purchase?

    Hi, I want to purchase the complete creative cloud at S$60 , however, in my account, at the payment page, it's appear RM currency and the selection of country does not include singapore. How am I suppose to purchase?

    Hi there,
    The country selected while creating the Adobe account was selected as Malaysia, so you get to see the price in RM.
    ^Ani

  • Hi! I'd like to purchase PS and LR, when I processing the payment, I find that my Adobe ID registered under US, However, I living in HK, how to change? can't process the payment being I did not have any ZIP code

    Hi! I'd like to purchase PS and LR, when I processing the payment, I find that my Adobe ID registered under US, However, I living in HK, how to change? can't process the payment being I did not have any ZIP code

    Hi Ivanlaiwh,
    I have been doing the modification regarding your account.
    You should now be able to proceed to a new purchase.
    Thanks.
    Arnaud.

  • How do I change the color of the scratch area?

    Is there a way to change the color of the scratch area? I am designing an ad for a newspaper that uses a gray background for a particular advertisement section.
    Thanks,
    Mark

    Thanks!
    I finally got around to working with this ad again.
    This doesn't quite work because the newspaper is actually white but the area around the ads is gray. I thought if I simulated colored paper I would be able to overlay a white background as my ad background. I can see where this feature is very useful, but I just wanted to change the scratch area color.
    I wound up putting a large gray square in the back and a smaller white square on top of it which represents the white print area.
    Thanks again for your response,
    Mark

  • How to change Topic's Icon and show the Print Button

    Hi, currently i'm using robohelp html version 8. I have spent quite some time to figure out how to change topic's Icon and show the Print Button in my project. Anyone can help me on this? Btw, i using MX(template) to generate the output with FlashHelp Pro.
    Below is the screenshot for clearer clarification:
    Thanks.

    We would have told you if there was.
    Sorry but a downside of FlashHelp is that your customising options are limited.
    See www.grainge.org for RoboHelp and Authoring tips
    Follow me @petergrainge

  • How to change a item's color programmatically?

    I want to change a item'color,(old background_color white,change it to gray)in a plsql program,is there any help from u all?

    Or, depending on what you actually wish to do, you may use display_item(your_item, your_visual_attribute); or
    set_item_instance_property.

Maybe you are looking for

  • How to add text labels to computed column totals in a banded report?

    I'm sure I'm missing something obvious here. I have a simple report with a table that consists of 3 DB field columns and 3 computed columns. I have the 'show column total' property enabled and it inserts the totals at the bottom of the computed colum

  • Ship-to party is not assigned to a sold-to party

    Dear Experts I am creating Sales ORder VA01 my customer is 42 so i have enterd 42 in Ship to party and Sold to party but getting error is Ship-to party 42 is not assigned to a sold-to party could u please guide me Regards Amol

  • Play music in my car with a USB connection

    My car has a USB connection for audio input.  When I connect the car with the USB cable that came with my 8530 to my phone, the radio does not detect that I have connected it.  My question is, can I play music through the USB port on my CURVE 8530 an

  • HT201173 mac mini hdmi dvi VAG connection problem.

    It looks very similar, but doesn't fit a standard VGA cable? Do I need an adapter?

  • Jupanelbinding bug?

    hello. the jupanelbinding doesn´t get the focus if fex. the column of a table is not editable. (focusgained-method of jupanelbinding). following example: we have a combobox and a table (master detail). the table has only not editable columns. so if t