visibility

Should a List<T> be private?

Hi I need your opinion on this because I have read a lot of different things on the subject. If you have a List<T> or any kind of list within a class declaration do you make it private and then add or remove items using specific methods or do you make it public? Your views would be much appreciated with any disadvantages/advantages of ...

Safari for iPhone can't evaluate correctly jQuery ?!

Hi everybody, I'm trying to make work a functionality that exists on my website but works bad on Safari for iPhone. Well, I have a "li" element: .. <li><input id='showOrHide' type='button' value='show or hide'/></li> <li><input type='text' value='ok'/></li> .. When I click on the 'show or hide' button, the text input should ...

In WPF, how do I set a button's click event to change a grid's visibility?

I'm trying to set a button's event to change a grid's visibility using just XAML. I'm pretty sure I should be using an EventTrigger, but I couldn't get that to work so my most recent attempt is to create a DataTrigger that is bound to a field in the view-model: <Style x:Key="PersonalInfoGridStyle" TargetType="{x:Type Grid}"> <Style....

Test condition for visibility check in JavaScript

Hello. I'd like to know if there's a test conditions using which one can check the visibility state(hidden or visible) of a tag. I mean a test condition,which could be used with the if() statement. thanks! ...

Silverlight - Smooth visibility change

I have a Grid with 2 rows, where the second has Visibility.Collapsed by default. I want it to change to Visibility.Visible on MouseEnter on the Grid and back on MouseLeave. That's simple and done. However, I would like the transition between Visible and Collapsed to not be instant but smooth. I believe I can do this somehow with the Vi...

jquery visibility selector

I'd like to know if there's anything incorrect in the following : if($('#three').is(':visible')) { alert("visible"); } else { alert("hidden"); } Thanks ...

WPF DataGrid Hide selected row ?

Hi, Is there a way to "hide" the SelectedItem of the DataGrid ? dataGrid.SelectedItem.Visibility = Visibility.Hidden ??? Regards, MadSeb ...

conditional display of html element forms

Hello, Well, after a one hour introduction to javascript, I ve come up with the following code. It did what I wanted alright, but then I wanted something else and it wont work. I wanted that upon clicking on a button, a certain field would hide and on clicking on another yes, another one would hide too, BUT, of course, it had to make t...

flex data grid visibility when empty

Hi, I have data grid that measures the height according to the rows it has, but i need to disappear/ make invisible when i have no data, so the header will not just appear alone. ...

How to check if a scroll is currently visible in WPF DataGrid?

How to check if a scroll (vertical or horizontal) is currently shown in WPF DataGrid? HorizontalScrollBarVisibility and VerticalScrollBarVisibility are used to set the behaviour and they are set to Auto. ...

Defining constants in python class, is self really needed?

I want to define a set of constants in a class like: class Foo(object): (NONEXISTING,VAGUE,CONFIRMED) = (0,1,2) def __init__(self): self.status = VAGUE However, I get NameError: global name 'VAGUE' is not defined Is there a way of defining these constants to be visiable inside the class without resorting to global or ...

PHP Inherited parent method can't access child's private property

First of all: A quite similar problem has been posted and somehow solved already, but is still not answering my specific problem. More about this later. In words: I have a base class which provides some methods to all childs, but doesn't contain any property. My child is inheriting these methods, which should be used to access the child...

Animate visibility modes, GONE and VISIBLE

So im trying to animate when i set the visibility of a linearlayout with other widgets, from GONE to VISIBLE and the opposite.Im using togglebuttons to show and hide. Here's an image to show what i want to do: view show/hide element I can show and hide, but im not following how can i animate the sliding correctly....:( Heres my xml: ...