Skip to main content

All Questions

Tagged with
1 vote
1 answer
723 views

How can I hide datagridview row whenever a column value equals specific value

So for example, I have this datagridview which is bounded to a datatable: A B C 1 4 7 2 5 8 3 6 9 And B is the column I want to check the value for, for example I have a saved int value of 5. The ...
Linascts's user avatar
  • 159
0 votes
0 answers
116 views

Why does calling MessageBox.Show() affects the visibility of other Forms (and threads)?

From a console app which has no window (ProcessWindowStyle.Hidden) I need to start and display a Form (yes - I know this is bad design which should be avoided). My first intent was the following code: ...
BudBrot's user avatar
  • 1,401
1 vote
1 answer
115 views

Making Elements not possible to manipulate Visibility

I have a ASP-WebForm-Application with several User-Rights. In CodeBehind I am hiding some Elements if the specific Rights aren't given. But with F12 the User could manipulate the Code the get some ...
comidos's user avatar
  • 123
0 votes
1 answer
202 views

Hide/show section based on buttonclick

I'm working with Blazor HTML and I have a <section class="showContent"> containing a form that I only want to show to those who click the "yes" option, I want to hide the ...
Bryce Steuer's user avatar
0 votes
2 answers
1k views

WPF visibility collapse keep space

i have 3 columns, while using a specific converter i succeed to change visibility of the middle and right column to visibility collapse or visible. My problem is that when those columns should be ...
Fabien CANEHAN's user avatar
0 votes
0 answers
181 views

XAML MVVM: How to make items visilibity grey out based on a bool condition from view model

I'm new for XAML and MVVM. I need to add a control to freeze/greyed out to disable user to click/select buttons/combobox once the device is connected successfully. For below, i need to freeze the ...
FH Liew's user avatar
0 votes
0 answers
843 views

WPF C# Set visibility binding in code behind for framework element

i have a problem binding the visibility property in code behind and really hope, you can help me. I create a data grid column with a button. The tag property of the button is already binded to the ...
nicetomitja's user avatar
-1 votes
2 answers
74 views

How can I bind the visibility of a StackPane to a property?

I have a few StackPanes that I only want to display for a specific value of a ComboBox. I've gotten the property to change as I want it to, but for some reason, the StackPane visibility doesn't update ...
Zackary Lee's user avatar
0 votes
1 answer
115 views

Variable not detected to binding visibility properties in UWP

I have three buttons and I would like to condition their visibility with a variable. But I have the impression that my variable is not detected. MainPage.xaml : <Button Margin="0,0,0,50" ...
Danalieth's user avatar
0 votes
1 answer
286 views

WPF Multiple dialogs, Visibility property issue

I have a login form which starts a dialog of a lecturerWindow When swapping windows it looks like that: //LoginWindow to LecturerClient this.Visibility = Visibility.Collapsed; LecturerWindow ...
Daniel Belaish's user avatar
0 votes
2 answers
348 views

Grid is not changing after child elements are switched to collapsed or hidden

I have a grid with 4 buttons. All 4 buttons are visible when starting my application. After a user action, buttons 1 to 3 are switch to collapsed/hidden. My goal is that the 3 buttons are no longer ...
Niklas's user avatar
  • 27
1 vote
1 answer
1k views

WPF: Trying to change visibility based on selection in combobox

I would like to display a different stackpanel based on the selection made in a combobox. Idea is to collapse any stackpanels that aren't needed. The combobox looks something like this: <...
InfoSpunge's user avatar
1 vote
1 answer
357 views

Hide SVG element from C#

I have a svg which contains two groups. <svg viewBox="0 0 150 150" xmlns="http://www.w3.org/2000/svg"> <g id="gr1" fill="white" stroke="green" stroke-width="5"> <circle cx="40" ...
Ionut's user avatar
  • 813
0 votes
1 answer
193 views

DataGrid RowDetails Visibility on RowDoubleClick

In my Datagrid xaml I set the rowdetailsvisibilitymode to collapsed. Then I created an event on RowDoubleClick to collapse and expand the details of a row when the row is double clicked: private ...
Angela 's user avatar
0 votes
0 answers
93 views

How to move a non-Visible Application

This is a follow up question to one of the answers provided for post Quit() causes Access to become visible for a moment. The answer recommends that I move the window off screen so that the ...
Mandelbrotter's user avatar

15 30 50 per page
1
2
3 4 5
20