All Questions
Tagged with visibility c#
297
questions
0
votes
1
answer
47
views
C# When I open Panel first time it doesnt trigger VisibilityChanged WinForms
I have a UserPanel class that has Controls in it buttons,Labels ect. When the Panel is created at runtime it passes to the Constructor of Form1 (this) so I can use some methods and I have a ...
0
votes
1
answer
19
views
Issue WPF Datagrid maybe bug?
I am generating a datagrid dynamically and the only problem I have is that it creates an extra row at the end, it is something visual because when I delete by code the last row continues to appear.
&...
0
votes
0
answers
69
views
Unity setactive() not working because of object name
So I have a sort of item system in my game and it opens a savefile to see what items the player has at the time, when it loads it enables and disables objects based on the savefile information. Which ...
0
votes
1
answer
318
views
Make element visible when Validation.HasError is true
I have the following xaml markup:
<GroupBox Margin="10" Padding="20" Header="Case 5 - Custom Error Object">
<GroupBox.DataContext>
...
-2
votes
1
answer
368
views
How do i make it so that if a key is pressed, an action is done permanently?
I've got into game development, and I decided to choose Godot as the game engine because C# was supported, and I knew the language.
I've been working on a simple game, and at some point, I ran into a ...
1
vote
1
answer
135
views
TreeViewItem IsVisible property always true
I have a TreeView control in my application that is populated (in the XAML) by binding its ItemsSource to an ObservableCollection of strings in my view model.
There are many more nodes that can be ...
2
votes
3
answers
741
views
WPF change visibility based on Items in Observable-Collection
I have the Following Collection:
ObservableCollection<CheckedFileObject> Files
A CheckedFileObject contains a FileObject and a bool isChecked.
Now when a user selects a File the isChecked Value ...
-2
votes
1
answer
218
views
Visual Studio C# Get sheet visible property
I'm trying to fill a dictionary with name as key, and an array with codename and if sheet is visible. This is where I ran into a conversion issue with sheet.visible
If I use == true I get this error:
...
0
votes
1
answer
720
views
How to create a heartbeat using MassTransit when consuming a message from AWS SQS
Using MassTransit with AWS SQS (simple queue service), we would like to implement a heartbeat, as advised in the AWS docs:
If you don't know how long it takes to process a message, create a heartbeat ...
8
votes
2
answers
685
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 ...
0
votes
1
answer
254
views
Button does not want to stop being visible
So, I'm trying to make simple screenshot app in Window Forms, but i would like my button to dissapear whenever I take a shot. Unfortunately, it does not want to be invisible, even after setting ...
0
votes
1
answer
107
views
Dynamic change of binded visibility of flipview's item template
I am making UWP desktop app using c# and xaml.
I need to change visibility of two text blocks(let's say TextBlock1 and TextBlock2) which is a part of FlipView's item template, depending on user input (...
0
votes
1
answer
190
views
How to disable validation of a combox element when visibility is collapsed?
I want to disable the validation of a ComboBox or a TextBox when their visibility is collapsed. Can I realize this within the XAML code?
<ComboBox Name="XYZCb" ItemsSource=&...
1
vote
1
answer
1k
views
C# class can't see static method of another class
I've run into some accessibility problem with one of my Unity projects. I created a class that does NOT inherit from MonoBehaviour. It has a method public static void LoadScene(string sceneName).
When ...
3
votes
1
answer
115
views
Is the documentation wrong for Graphics.IsVisible(Rectangle rect)?
Microsoft's online documentation says that this Graphics method returns "true if the rectangle specified by the rect parameter is contained within the visible clip region of this Graphics; ...