All Questions
Tagged with visibility .net
45
questions
171
votes
18
answers
125k
views
How do I invert BooleanToVisibilityConverter?
I'm using a BooleanToVisibilityConverter in WPF to bind the Visibility property of a control to a Boolean. This works fine, but I'd like one of the controls to hide if the boolean is true, and show if ...
72
votes
4
answers
60k
views
In WPF, how can I determine whether a control is visible to the user?
I'm displaying a very big tree with a lot of items in it. Each of these items shows information to the user through its associated UserControl control, and this information has to be updated every 250 ...
24
votes
17
answers
31k
views
C#/.NET - WinForms - Instantiate a Form without showing it
I am changing the Visibility of a Form to false during the load event AND the form still shows itself. What is the right event to tie this.Visible = false; to? I'd like to instantiate the Form1 ...
22
votes
2
answers
12k
views
What does a public constructor on an internal class mean [duplicate]
I've seen some C# code that declares a class with an internal modifier, with a public constructor:
internal class SomeClass
{
public SomeClass()
{
}
}
What is the point of having a ...
16
votes
5
answers
60k
views
How to hide textboxes, labels and buttons C# WPF
I would like to hide several textboxes, a label and a button as soon as a button is clicked... however, for some reason, my code doesn't seem to cause this effect. Nothing appears to happen. I'm using ...
12
votes
4
answers
9k
views
How can I determine programmatically whether the Windows taskbar is hidden or not?
I need to know whether the Windows taskbar is hidden or not. I believe there is no .NET method to do this, and also I have come across a lot of "how to hide and show the taskbar" samples, but I haven'...
9
votes
3
answers
2k
views
F# treating internal module as private
Any ideas why the following doesn’t compile?
On the last line it tells me that Module1 is not defined. If I remove the “internal” from Module1 it works fine.
I've got two code files and Module1.fs ...
9
votes
3
answers
5k
views
Overriding an internal abstract method in another assembly
Im currently working on a c# project that uses another .net library. This library does (amongst other things) parse a sequence into a tree. All items are of some type that inherits from the abstract ...
8
votes
1
answer
4k
views
TargetNullValue for Visibility that's bound to a boolean
I have a Grid whose Visibility property is bound to a boolean property of a certain model using a Converter:
<Grid Visibility="{Binding ElementName=MyTreeView, Path=SelectedItem.MyBoolProperty, ...
8
votes
2
answers
690
views
C# public members visibility of a class with no namespace
I have a project that I publish as MyNuget package in a local feed. The project references a ThirdPartyNuget that has ThirdPartyExtensions public static class with public extension methods over ...
6
votes
3
answers
17k
views
Make GridView footer visible when there is no data bound
how to show footer when there is no data in gridview for inserting data from footer.
6
votes
5
answers
6k
views
How can I detect the visibility of a control?
How to detect if a control is visible to a user? I have a control that displays status of application, and I want it to be updated (it's value to be updated, for example, increase the value of a ...
5
votes
1
answer
8k
views
Gridview's footer is not visible
I have put some controls in Gridview's footer template, but at run time they are not visible why
5
votes
2
answers
604
views
Are .Net POCO's Threadsafe?
This question might seem a bit odd but has to do with possible visibility issues. The question is inspired by a case in the Java programming language (>jdk5), consider:
public class InmutableValue {
...
5
votes
1
answer
229
views
How to tell whether a class/method is accessible using reflection?
I use a Dynamic Assembly to create derived classes at run time. How can I tell, using reflection, whether the base class and individual methods in the base class can be used/called from within the ...