All Questions
Tagged with visibility c#
297
questions
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 ...
5
votes
2
answers
2k
views
VisibleChanged don't raise when not visible
I'm working on c# WinForm.
I have an custom UserControl : MyControl : UserControl, INotifyPropertyChanged. I attached a method on event on event VisibleChanged : this.VisibleChanged += new System....
0
votes
3
answers
2k
views
Unable to change visibility of a div in asp.net C#
I have a div that displays loading symbol. I am setting visibility on change of a dropdown box. I want to set its visibility to false in C# after the SelectedIndexChanged method is complete.
Here is ...
0
votes
1
answer
77
views
Drawer visibility
How do I open/show a left navigation drawer when I navigate to the page? I'm looking for something like the following:
protected override void OnViewModelSet()
{
SetContentView(Resource.Layout....
2
votes
1
answer
1k
views
WPF ComboBox items stays in the list after Visibility.Collapsed
I got a problem with wpf ComboBox.
I first added a Textbox as the first item to use it for my filtering propose
I then added about 20 Checkboxes in the Combobox through a Foreach loop.
like this
...
0
votes
1
answer
1k
views
Fading out a WPF control on Visibility.Hidden
I'd like to use style to make a WPF control (in this case a 3rd party one from Telerik, but could be anything) fade out as it's Visibility property is changed to Hidden. This approach I'm trying to ...
-6
votes
1
answer
83
views
Why can I access private non-static class properties in a static class method?
I just noticed that the following code compiles without an error:
public class Foo
{
private string identifier;
public Foo() { }
private static void Bar(Foo foo)
{
Console....
-1
votes
1
answer
200
views
C# how to make an API with a single entry point (service Class)
I have to make an API C# that permit VBA(Excel) to use internal ressources(like a DataBase).
I have make a Class Services, that call methods in many others Class (book, music, etcc..). Ressource ...
1
vote
1
answer
1k
views
WPF - setting visibility on code behind for a WebBrowser not working
I have two elements, a WebBrowser and a Slider, and I'm trying to hide one and show the other depending on which type of document a user opens, a PDF or a video file (mp4). But, currently, when I open ...
1
vote
1
answer
4k
views
asp:Content still visible when using Visible="False"
I have a master page with couple ContentPlaceHolder inside it and added some content page of this master page.
I would like to set Visible="False" on one asp:Content in some page but it's not ...
-4
votes
2
answers
432
views
How Can I Count Hide Tab Pages?
I Have A Tab Control And Several Tab Pages In It
This Tab Control Is A Component,Tab Pages Have "Page Visible" Property For Declaring Visibility And Tab Control Have Pages.Count Property
Some Of These ...
1
vote
1
answer
600
views
WPF ContextMenu: MenuItem Icon visibility binding error
This is the style for my ContextMenu:
<Style x:Key="DIOStyle" TargetType="ContentControl">
<Setter Property="Tag" Value="{Binding Content,RelativeSource={RelativeSource Mode=Self}}"/&...
3
votes
2
answers
1k
views
Changing Visibility with x:Bind not updating with MVVM
Since the Anniversary Update (Build 14383 / 14393) you should be able to toggle the visibility of XAML elements without using a converter, like this:
<TextBlock Text="I'm not visible!" Visibility="...
2
votes
1
answer
649
views
Make member only accessible through property even in owner class? [duplicate]
Let's see this code snippet:
class A {
int m_x;
public int x {
get { return m_x; }
set { ... }
}
}
m_x is private so it's accessible in class A, but other classes can ...
1
vote
1
answer
2k
views
ListView item visibility based on boolean
I am trying to filter ListView Items based on input text, and because the selection is removed, I am trying to set visibilty to invisible based on a boolean(I hope this wont remove the selection of ...