Listview not grey when disabled.

Hi, this is the issue:
When I have a messagebox opened I disable the other windows, but I don't want them greyed out.
I managed to change the model for all controls in order to do that, but I couldn't to it with the list view (though I managed to to it with the listview items).
As you can see in the picture the items are of the right color when disabled, but the background is stille grey.
When I rightclicked the listview to change the model, it automatically created this XAML code inside " <Window.Resources>", which I though I would edit like I did with all other controls:
<ControlTemplate x:Key="ListViewControlTemplate1" TargetType="{x:Type ListView}">
<Themes:ListBoxChrome x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderFocused="{TemplateBinding IsKeyboardFocusWithin}" SnapsToDevicePixels="True">
<ScrollViewer Padding="{TemplateBinding Padding}" Style="{DynamicResource}">
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</ScrollViewer>
</Themes:ListBoxChrome>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsGrouping" Value="True"/>
<Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="False"/>
</MultiTrigger.Conditions>
<Setter Property="ScrollViewer.CanContentScroll" Value="False"/>
</MultiTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
and then referenced the template in the listview control:
<ListView x:Name="lstBeats_Copy" HorizontalAlignment="Left" Height="23" Margin="11,179,0,0" VerticalAlignment="Top" Width="237" Background="#FFFFE3C2" Grid.Row="1" TabIndex="3" Template="{DynamicResource ListViewControlTemplate1}" >
But even if I don't edit it, just when its added I get:
XamlParseException: L'impostazione della proprietà 'System.Windows.Controls.Decorator.Child' generates exception.
Is there any way?
Thanks!

A Listview is a pretty simple control template wise.
It's the listview items which are complicated.
I would be tempted just to replace the entire template.
Something like:
<Style TargetType="{x:Type ListView}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListView">
<Border BorderBrush="LightGray" BorderThickness="1">
<ScrollViewer>
<ItemsPresenter />
</ScrollViewer>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
I'm not sure about this disabling things but not changing colour though.
It's usual windows behaviour to change colour when disabled.
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML

Similar Messages

  • Axis Disabled LED on UMI not Lit when disabling the Axis in MAX

    Hello,
    I'm using MAX to disabling Axis, Axis2, Axis3 of PCI-7344 and UMI7774,
    I click save and "initilize" in MAX, i get message "OK".
    The DISABLED LED of the Axis1 - Axis4 on the e UMI is not Lit,
    i also notice that in MAX under Motion IO setting, the "inhibit input setting" is grayed.
    i found a post of someone with same problem, he said that he 'enabled the inhibit input in MAX' and this solved the problem.
    but its grayed un my MAX...
    This is his post: UMI-7774 / PCI 7340 Disable Indicator Error
    http://forums.ni.com/ni/board/message?board.id=240​&message.id=5760&query.id=13536#M5760
    But, there is also a knowledge base:  "Inhibit Input Setting in MAX is Grayed Out"
    http://digital.ni.com/public.nsf/allkb/01CE29B6175​371118625714C0058C2B1
    in this article, its ok that it is grayed cause its only used on pci7390...
    But he has same hardware as i have... So, what is going here? how can i solve this?
    When i'm looking in MAX on "1D interactive" i found that when i change the state of the Limits, its shown in max
    "limit switch is active" "home switch is active"...  
    The control connector of Axis 1 (the axis i want to work with) is working fine i think..
    for example: i test the voltage on pin 3 :  5V as should be.
    the UMI connected to V and C 24VDC power supply, and  the Viso,Ciso connected to different power supply.
    (V and Viso LED of the UMI is On , ALL other LED is Off.....)
    Any help is appriciated, i want to start from begining to troubleshoot what is wrong,
    i think that before any wiring is made to the Axis control and feedback connector, the Axis that is disabled in MAX should have their DISABLED Led on the UMI on.
    The pci-7344 connected to the UMI-7774 with SHC68-C68-S cable.
    Thanks
    Moti

    Hello Michelle,
    Thank for your reply.
    actually i didnt do anything about tuning the servo because i read here in some post in the forum,
    that when i set the servo to "P-command" i dont need to set something in the servo tune in MAX...
    its probably not right...
    Thank you for the links about the servo tune, i'll read and test it now.
    I'm using Yaskawa servo motor with Sigma FSP servo drive, i put it in Position command mode.
    please see the attached image with all the setting in MAX (if you open it in microsoft paint, you can scroll it down like word document..)
    Hereunder more details about the problem:
    1.  when i'm using 1d interactive for simple move, the servo is run well, no problems,
          the count is ok, the servo stop exactly in the position he should be.
         This is true as long as the velocity is  1125rpm or under.
         The problem:  when i set it to 1150rpm and click start, the servo is rotate and imidiatelly stop, its looks like the servo got cough,
         there is some delay of some miliseconds and it rotate again for few steps and stops.
         when i'm looking at 1D interactive- Misc. Plot, i see the velocity is 1/4 of the velocity i set to this move.
         if i set the velocity to 1000rpm, the servo is run at 250rpm...
          its something with ratio of 1/4..   So, i think that its encoder problem, or something wrong in the setting
          cause i set the "Stepper steps per revolution"  = 8192 and "Stepper counts per revolution"  = 8192 also,
          where i know that it should be :
           "Stepper steps per revolution"  = 2048 and "Stepper counts per revolution"  = 8192
           But if i set it like this, the servo is never go to the position i command him.
    2. About the "Servo -On" signal, attached the servo drive wiring, the servo on is a signal that anable the drive,
        when the servo on is activated the led screen on the servo drive displays "run" and the shaft has holding torque.
        The problem here is not with the servo on signal, that works fine, as you can see in the attached image, the servo on is activated using a relay, so for now i'm activatig it manually, when i want to start move in MAX, i turn on the "servo on" signal,
    the servo drive is on, display the "run" and ready to recieve the "step","dir" commands, and it works.
     The problem that the Axis/Enable signal in the UMI7774 need to activate the relay that activate this "Servo on" signal,
    and currently the Axis/Enable signal is always ON, even when i press "Kill" in MAX the Enable signal is still ON and never changes to off,
    that is why i can activate the "servo on" signal using the Enable signal on the axis.
    I'm using:  Widows XP proffesional sp3, LabVIEW 8.6 , MAX 4.5, NI-Motion 7.7, Motion assist 2.3,
     PCI -7344, UMI-7774,  Yaskawa servo motor and Servo Drive Sigma FSP,
    here is the link to it :
    http://www.yaskawa.com/site/products.nsf/products/​Servo%20Amplifiers~fspsigma.html?openDocument&seq=​...
    Thanks for your reply,
    MotiM
    Message Edited by MotiM on 12-19-2008 02:00 AM
    Attachments:
    MaxSetting.JPG ‏579 KB
    ServoDrive.JPG ‏105 KB

  • When i open finder the windown is a completely blank grey box with the title "Window" as a header, and all my folders will not open when clicked

    when i open finder the windown is a completely blank grey box with the title "Window" as a header, and all my folders will not open when c
    the problem started when my computer screen broke from something falling on it, the screen was replaced but the people that fixed it for me told me there may be some hard disk issues when a problem like this happens, they ran their own checks and found nothing and i was given my laptop back, then when i tried to use it, i found this problem. everything else works fine.
    i have shutdown and re-started my computer multiple times and i have also re-started finder multiple times, both having no effect
    i have also done a few other things to find that my apple.com.finder.plist and apple.com.sidebar.plist are both missing, and are not re-creating themselves, i have found no way to bring them back either.
    any help would be greatly appreciated, thanks

    there is an app called daisydisk on mac app store which will help you see exactly where the memory is focused and consumed try using that app and see which folders are using more memory

  • I have a problem with my iPhone 5 stopped working the sleep / power and simultaneously refused to obey the HOME button. I can not use either one or the other. I can not enable or disable the device, display lights up when you plug the charger. same displa

    I have a problem with my iPhone 5 stopped working the sleep / power and simultaneously refused to obey the HOME button. I can not use either one or the other. I can not enable or disable the device, display lights up when you plug the charger. same display works fine as it is surprising. or maybe someone knows what is the reason for this? is there any way to solve this problem?

    More than likely its a hardware issue, I have never encountered such a problem and best bet is to just go get it replaced. If you have insurance on your device apple will replace it as long as there was no water damage, if you dont have insurance they will charge $200 more or less. Hope you get it fixed

  • Disabled ipod not recognized when plugged back in to itunes.

    Daughter's disabled ipod (second time) is not recognized when we follow instructions to enable it and plug into itunes.

    HT1808 is the article you need to follow. You need the section labeled "Placing the device into recovery mode."
    You need to power the device off. Once the device is off press and hold the Home button or the button on the front of the device and while holding the Home button plug in the device and continue holding the home button until you see the image below.

  • I have a problem, all the pictures turns grey when i open a document, i have a Mac computer if that can be any help.. Please can somebody tell me what i am doing wrong. It have not been like this before i have started now??

    I have a problem, all the pictures turns grey when i open a PDF document in acrobat xl pro, iy have not been like this before it started a few days ago. Before it did help if i closed the program but that does not work anymore??

    Now it works!!!! THANK YOU VERY MUSH!!! You made my holiday!! Now i can work! ; )) Happy new year to you!!!

  • My i4s wifi button is not working. when i opened the setting and then wifi the button is greyed out. then i opened general and then about. in the bar of wifi address it is written N/A. what does its mean. i have done all other things like setting general

    my i4s wifi button is not working. when i opened the setting and then wifi the button is greyed out. then i opened general and then about. in the bar of wifi address it is written N/A. what does its mean. i have done all other things like setting >general<reset<reset network setting. but all in vain. tell me the solution

    restore your phone as new through itunes. if the issue persists after a factory restore via itunes, it means you've got a hardware issue and the phone needs to be repaired

  • I can not use wi-fi all of a sudden. It is not grey, it looks blue when it is on.

    Hello, I have a problem with joining to wi-fi all of a sudden. I have read so many comments in some forums but my problem is not the same with others. Wi-fi is on and blue not gray, when I want to join a network, I type the password but it is always unable to join. Any ideas?

    Hi elifcomert,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398
    Cheers,
    - Judy

  • How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?

    How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?
    I’m creating a form where the user has three options to make a payment.
    1. charge to my credit card
    2. charge associated costs to bank account
    3. By cheque or money order
    My Problem is, under each option, there are required fields that has to be filled out. So if the user picks the first option, charge to my credit card, they would fill out the required fields (credit card number, expiration date etc.). But when they click submit button to submit the form, it won’t let them, because there are required fields under the second option. Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it. So what I'm trying to do is this: If the user selects the radio button for option 1, the other two options are greyed out/disabled. And if the user holds down the shift key and clicks radio button for option one again, it unchecks the radio button and the other two options are available again. Is there a way to grey out or disable the two other payment options when the other one is picked. I’m assuming I will have to use javascript, but what would the coding be and which field do I write it under?
    Thanks in advance guys

    You will have to use custom JavaScript to access the various properties of the field object.
    The radio button group has a value. When no button is selected that value is "Off". When an individual button has been selected the value for the group will be the option or export value for that individual button.
    Once you have determined the button selected, then you will know the form fields that need to be made required. You use JavaScript to access those fields and change the "read only" property to false, and set the "required" property to true. For the fields associated with the other options, those fields should be reset, made read only, and have the "required" property set to false.
    Disabling (graying-out) Form Fields
    >> Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it.
    Radio button in a PDF do not work that way. Only check boxes can be unchecked by clicking on one that has been checked.
    If you plan the coding for the Mouse UP action to test for all possible options and code for each of those options you should have what you want.
    If you want actual code you need to provide a lot more details.
    It is even possible to perform some credit card and bank routing number validations with JavaScript and some check digit formulas.

  • Screen variant not working when assigned to transaction variant in SHd0

    Dear All,
    User requires tax code column for line items in MIRO to be made non-editable. I am using SHD0 transaction for the same. I am able to make the column grey-off by creating screen variant. The program is SAPLMR1M and screen number 6310. When tested individually thru SHD0 the variant is working perfect. But it is not working when assigned to a transaction variant. Any clues on the same would be really helpful.
    Thanks in advance
    Komal

    Hi,
    Try to record again for the whole set of screens instead of doing that for the individual tax screen and only for the tax screen make the required field disable.
    Once done and saved, you can see all the screens variants in the transaction variant.
    Use the Change WITH PROCESSING OPTION.
    Hope this solves your problem
    Regards
    Shiva

  • Mapviewer Admin - not starting when additional memory allocated o4cj start

    Forum:
    When startinng mapviewer 11g ( with java -jar -Xms128m -Xmx512m -XX:MaxPermSize=512m oc4j.jar, the mapviewer admin page does not initialize when we navigate to it in the browser.
    However , when we the simpler version, oc4j.cmd -start, the mapviewer administrator web pages functions correctly.
    Does anynone have clues as to why Mapviewer admin has problems when more memory is being allocated on startup ?
    Thanks in advance
    JF

    Hi Mithun,
    Thanks for your reply! If stopping the deployment need some time to finish, So, admin console of weblogic should disable ( grey out ) its starting button while the related deployed application is still shutting down. After the deployed application were stopped completely, then enable the starting button again to avoid the issue.
    I just feel a little bit strange for the admin console of Weblogic to behavior on start / stop deployed application.
    Thanks,
    Zhiping

  • Since I installed Lion on my macbook the LED light does not pulse when I close the screen - the sleep function does not work.

    Since I installed Lion on my macbook the LED light does not pulse when I close the screen - the sleep function does not work neither when chosen after pressing the button nor chosen in the apple menu..

    I have had the same problem but on another forum it was suggested that disabling internet sharing would solve this. This fix seems to work on my machine - why it works I do not understand

  • When I compose an E-mail my address book will not open when I click on TO or CC, but it does work on other computers and also if I use explorer.

    My address book will not show when I click on the TO or CC button, a mozilla page does open but there is no content. My E-mail accounts work fine on other computers. It also works fine on this computer if I use Explorer instead.

    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"<br />
    "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"<br />
    <br />
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />
    Your plugins list shows outdated plugin(s) with known security and stability risks.
    * Shockwave Flash 10.1 r53
    * Java Plug-in 1.6.0_11 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    Update the [[Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    Update the [[Adobe Reader]] plugin to the latest version.
    *http://get.adobe.com/reader/otherversions/
    You can also try to disable the "My Web Search Plugin Stub for 32-bit Windows".<br />
    See [[Troubleshooting plugins]]
    http://www.safer-networking.com/removemywebsearch.php
    http://www.pchell.com/support/mywebsearch.shtml - PC Hell: My Web Search Removal Instructions

  • Hi...lags animations in games and messages and album pic..when disable assistive touch,it's true and fix..please release update to fix this in ios 7.1..i need assistive touch and fast game and animation booth!!

    Hi...lags animations in games and messages and album pic..when disable assistive touch,it's true and fix..please release update to fix this in ios 7.1..i need assistive touch and fast game and animation booth!!

    No Apple here, user to user forum.
    I will not be releasing any version of iOS ever.

  • User gets "This network connection does not exist" when she tries to log on to Terminal Server (2008 R2)

    User gets "This network connection does not exist" when she tryes to log on to Terminal Server (2008 R2)
    I got more than 100 users. Shes the only one getting is. We tried four computers (All Windows 7 Pro)
    Nothing useful in event viewer to mention.

    Hi,
    Thank you for posting in Windows Server Forum.
    Does that user able to login previously?
    From your comment, it seems that there is some permission issue with that user. As you have checked that user with different system also. Please check that user is added under “Remote Desktop User” local group and also allowed “Allow log on through
    Remote Desktop service” permission under group policy. Also please check that when user tries to login it uses “Domainname\Username” format.
    In addition for a try, also check by disabling firewall on one particular system.
    To add users and groups to the Remote Desktop Users group by using Local Users and Groups snap-in:
    1.  Click Start > Administrative Tools, Open Computer Management.
    2.  In the console tree, click the Local Users and Groups node.
    3.  In the details pane, double-click the Groups folder.
    4.  Double-click Remote Desktop Users, and then click
    Add.
    5.  In the Select Users dialog box, click Locations to specify the search location.
    6.  Click Object Types to specify the types of objects you want to search for.
    7.  Type the name you want to add in the Enter the object names to select (examples) box. 
    8.  Click Check Names.
    When the name is located, click OK.
    More information:
    Remote Desktop disconnected or can’t connect to remote computer or to Remote Desktop server (Terminal Server) that is running Windows Server 2008 R2
    http://support.microsoft.com/kb/2477176/en-us
    Hope it helps!
    Thanks,
    Dharmesh

Maybe you are looking for

  • I updated my ipod touch to ios 5 and now it wont restore and i can't get anything back...need help please!

    I updated to IOS 5 tonight on my ipod touch 4th gen and now it won't restore.  I can't get it to restore from a backup either.  It either says "iTunes could not restore the iPod "____" because the backup session failed or i get error -50.  It appears

  • How to split out a set of data????

    package mitsim_converter; import java.io.*;                            // For input & output classes import java.util.*;                          // For the Date class public class testgod { public static void ReadCoFile(String Co_inputFile, String C

  • Equivalent statements in ECC6.0

    Hi Experts, We are in process of upgrading our system from 4.6c to ecc6.0 .While upgrading i encountered an issue where in i came across a statement ."RECORD_TAB[] = T_OUTPUT[].Record_tab and t_output are of different structures. data : begin of t_ou

  • HT4137 My iphone 3gs is not active, please help me...

    My iphone 3gs is not active, please help me... <Edited by Host>

  • Having trouble with overlays

    I must be dumb because despite watching all of the basic tutorials on Adobe I still have trouble with very simpistic stuff like... Whenever I create a box, it does not move under layers already created. Even when I drag the layer and put it last, it