All Questions
Tagged with visibility c#
297
questions
1
vote
1
answer
191
views
How do you hide a single listboxitem in a listbox using wpf codebehind?
I am creating a list box that holds notes. When a note is selected and double-clicked it opens an editing form. Here there is an option to archive the note. When the note is archived it should not be ...
2
votes
2
answers
1k
views
Why can't I set this readonly property in the constructor?
I want to set the readonly porperty "EmployeeList" in the constructor, but for some reason it is not allowed, as the EmployeeList is readonly. But it works just fine for the other readonly property "...
1
vote
2
answers
67
views
Visibility converter in MVVM not updating
I want to change the visibility of a Grid depending on whether the value of some TextBoxes is larger than other TextBoxes. I'm using MVVM and have the following code:
XAML
<UserControl.Resources&...
0
votes
1
answer
33
views
What unusual thing takes place when I step into a Control.Visible = true assignment?
I have an UserControl that is made Visible. One of its custom properties is set to true somewhere I do not know. All I know is that after setting its Visible property to another value (true), the ...
-1
votes
1
answer
160
views
Changing the Visibility of a Graphic
I am making a hangman game and I need each body part of a drawing to become invisible and then come back as the player guesses the wrong letter. I have tried using picture boxes but they cut off parts ...
0
votes
1
answer
171
views
C# WinForms: Constructing an object with label/textbox properties in a form does not result in those properties appearing in the form. Why?
What I'm doing is: I have an object which initializes its textbox/label contents in the constructor, however when the object is constructed in its intended form I can't make the contents appear on the ...
0
votes
1
answer
748
views
WPF Border Child visibility have no effect
I need to hide a TextBlock that is child of a Border and is added to a Grid. The following code dynamically add the Border and the TextBlock to the Grid. Then if the Grid contain more than 5 children ...
0
votes
1
answer
49
views
Actual position of collapsed TreeViewItem on Canvas
Is there a way to evaluate the actual position of a TreeViewItem on a Canvas if its Parent TreeViewItem is collapsed (meaning <ParentTreeViewItem>.IsExpanded = false;)? When debugging neither ...
0
votes
4
answers
7k
views
How to fade out / disapear a GameObject slowly?
I have a function where I have to dispear some GameObjects, at the moment I use SetActive(false) but it should not disapear instantly, it should disapear slowly in 2 or 3 seconds. I guess opacity ...
1
vote
1
answer
313
views
Hiding a xaml element but also be able to render using RenderTargetBitmap in UWP
I am using RenderTargetBitmap to capture the content of a control in XAML.
I am aware of using Visibility="Collapse" that would hide the control, but when the control is collapsed then ...
0
votes
1
answer
78
views
Control not visible after toggling visibility recursively?
A Quick Note
I've tried to be as thorough as possible with my question but you may still need additional clarification; if this happens to be the case, feel free to comment your concerns and I will ...
1
vote
1
answer
147
views
DataGridColumn binding only if object property is true
I'm currently facing a problem while trying to do some conditional binding in WPF. I've read up on the problem and it seems like "visibility" isn't really an option for DataGridColumns as it's not in ...
1
vote
1
answer
2k
views
How to hide StackLayout in Xamarin Forms
I'm trying to hide StackLayout called InfoStackLayout after my config is downloaded, displaying information label for 5s,
but after hiding Infostack in code, my Grid in ContentPage doesn't refresh the ...
0
votes
3
answers
89
views
Inconsistent accessibility: return type is less than method
I know the question inconsistent accessibility is frequently asked, and my question is different because I need it to be private.
Let me give the detailed explaination: I have a static class Line, ...
-1
votes
1
answer
181
views
Winform: Clean way to toggle visibility of a control on TextChanged in TextBox
I have a winform with many TextBox and a single message, I want the message to disappear when any of the TextBox are changed. Is there a clean way to achieve this without adding TextChanged ...