Skip to main content

All Questions

Tagged with
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. &...
Aismel's user avatar
  • 5
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> ...
vso's user avatar
  • 21
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 ...
Nick's user avatar
  • 1,490
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 ...
KSler's user avatar
  • 161
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 (...
wpsimon09's user avatar
0 votes
0 answers
180 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
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
2 answers
345 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
0 votes
1 answer
32 views

Trying to hide a checkbox until a menu option is selected, but checkbox won't hide

I have a checkbox that should only appear when a menu option is selected. When the menu option is not selected, the checkbox should be hidden. I have a visibility variable setup in the code: private ...
acromantulus's user avatar
-1 votes
1 answer
4k views

IsVisible Binding is not working in Xamarin.Forms

I a have typical label that I want to control its visibility by a property that is null/empty or not. I've put breakpoints and also log and it seems that return value is true but still it does not ...
boss's user avatar
  • 1,582
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 ...
SelfBiased_Resistor's user avatar
1 vote
1 answer
312 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 ...
kkica's user avatar
  • 4,084
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 ...
user avatar
1 vote
1 answer
464 views

XAML itemscontrol: contentpresenter visibility doesn't reflect each owned item

In ItemsControl items are in a ContentPresenter, so if a item has Visibility='collapsed' its ContentPresenter still have Visibility='Visible'... (Here is explained this behaviour) So these 2 examples ...
Andrea Marchetto's user avatar
0 votes
1 answer
450 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"/&...
Jean-David Lanz's user avatar

15 30 50 per page
1
2 3 4 5 6