All Questions
Tagged with visibility wpf
291
questions
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:
<...
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 ...
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 ...
0
votes
0
answers
69
views
TextBlock Visibility depending on selected TabItem - Triggers needed?
I created a TabControl whose Header's contents are two TextBlocks: one labeling the Header with a name, the other showing a symbol font. Depending on the selected TabItem I want to show the Header ...
0
votes
1
answer
1k
views
WPF set default Visibility value when editing
I have Visibility bound to a bool, which works perfectly. However when editing the page the Border is not visible. I have to delete the Visibility Binding, make my changes and redo the Visibility ...
0
votes
1
answer
29
views
How to handle visibilty of properties in an UserControl?
I try to create a custom "TimePicker" - UserControl and struggle a bit with the design of the code.
In the XAML of the UserControl I created a ComboBox, which binds to a List<int> HoursList-...
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
2
answers
174
views
WPF detect key sequence
I would like to hide a groupox from my WPF app and to manually enable it when I need it via a keypress code when app is active(not minimized)
this example works sometimes with just one keypress, but ...
0
votes
0
answers
53
views
wpf dynamic user security
The software uses a SmartSnowUser object, which contains a SecurityRole object. The client needs SecurityRole to be customizable, so it has a list of enum SecurityTasks, which the clients can add/...
0
votes
1
answer
128
views
Visibility/binding problem with a usercontrol base class
I have an app and a class library.
I'm using ninject to bind all viewmodels and Syncfusion as a third party extension.
The main app displays a RibbonGallery that contain Sine and Triangle waves.
...
0
votes
1
answer
754
views
How to hide parent control while showing child content?
How can I hide a parent TabControl until the child in one of its tabs is clicked on? Obviously, I need the child to be visible for the user to be able to click on it. The only thing that I have ...
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 ...
0
votes
1
answer
451
views
WPF - Can one Bind a Label's property (Visibility) to the Label's Target?
So I have a number of XAML pages with various Controls, most of them with a TextBlock indicating the intended content. Like:
<TextBlock x:Name="txbCustomerName"
Text="Customer Name"/&...
2
votes
1
answer
434
views
C# WPF TextBlock Visibility doesn't change after StoryBoard
I have a WPF application with a button, that when clicked executes a function that turns the visible property of a TextBlock to Visible:
savetxt.Visibility = Visibility.Visible;
...