All Questions
Tagged with visibility wpf
291
questions
1
vote
0
answers
95
views
Content of TabItem stays visibile when set to Collapsed/Hidden
I have a TabControl that displays default information for objects that can be selected by the user in a list.
Unfortunately not all of the TabItems apply to all types of objects. That's why I decided ...
2
votes
2
answers
391
views
Setting property in control from child in wpf
For the sake of simplicity say i have this control called DetailArea
<UserControl x:Class="DetailArea">
<Grid>
<CustomDataControl x:Name="MyDataControl" />
</Grid&...
0
votes
1
answer
557
views
Execute Two RelayCommands On One Button Press - WPF
I have a button that allows the user to register an account. When the user presses the button I have a relay command execute a method that submits their details to the database. If successful, I then ...
0
votes
0
answers
181
views
Transfer from one User control to another using EnumVisibilityConverter - WPF
When the user presses on a button I want to display a new UserControl. I have created an EnumVisibilityConverter and want to set the enum to display a different user control called login when the ...
0
votes
1
answer
1k
views
WPF binding to Visibility of an Itemtemplate of a Listview not working [duplicate]
I am using WPF Prism.Mvvm.
I have a navigation bar on the side containing a Listview bound to an Itemssource. Those Items contain an image and the content. Now my goal is to collapse the content of ...
0
votes
1
answer
75
views
Visibility Storyboard works only partial
Please see this Storyboard:
<Storyboard x:Key="visibilityStoryboardn">
<ObjectAnimationUsingKeyFrames BeginTime="0:0:0" Storyboard.TargetProperty="Visibility">
...
0
votes
1
answer
686
views
Binding Property to Two Different Controls [duplicate]
I have a WPF form with a content control and a custom control. The content control swaps in views based on a radio button selection. Once the user takes an action on the view, I set the nocustomer on ...
2
votes
3
answers
2k
views
Key Bindings WPF with Caliburn Micro
I have a window with a TabControl. I have a TabItem where I set:
Visibility="{Binding IsVisible}
I have also added this to the XAML of the window:
<Window.InputBindings>
<KeyBinding ...
0
votes
1
answer
778
views
WPF Visibility Binding Column in a DataGrid
I have a DataGrid where I am trying to control the visibility of each column. Everything works fine when I bind the source of the column to the actual ViewModel, but I've read that the column should ...
0
votes
0
answers
134
views
wpf datepicker visibility binding dont work
I want to code in xaml all elements but by code-behind showing and hiding some parties depend on step.
here i modified code to been understendable so i putted both propriety to collapsed
question is ...
0
votes
1
answer
3k
views
How to set the visibility of calendar of datepicker to hidden wpf
I am under a situation where i need to develop DatePicker where the calendar must disappear on mouse leave event, only textbox with the selected date from calendar must be visible and calendar part ...
-1
votes
1
answer
905
views
using the visibility property for multiple usercontrol wpf
I have a scenario where i need to display multiple usercontrols based on their visibility property and show next visible control when the next button is clicked. I have added all the usercontrols in a ...
0
votes
0
answers
102
views
Why is wpf combobox not being drawn, even though the visibility is set to "true"?
I have a Combobox whose Visibility is bound to a bool Property in ViewModel. The Combobox is located inside a stackPanel:
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
...
1
vote
1
answer
740
views
Hiding combobox items based on choice of second combobox, vice versa
I have two comboboxes, each are bound(!) to the same ObservableCollection<string>. I want to prevent the selection of the same Items.
Here is my C# code (the firstload bool is just to prevent ...
0
votes
2
answers
256
views
How can i change visibility of a grid declared in another class after successful login
I have a class X and it has some buttons which are hidden under a grid . One of the button which is visible on double click opens the login pop up (declared in Y class) . Now after the successful ...