Skip to main content

All Questions

Tagged with
8 votes
2 answers
690 views

C# public members visibility of a class with no namespace

I have a project that I publish as MyNuget package in a local feed. The project references a ThirdPartyNuget that has ThirdPartyExtensions public static class with public extension methods over ...
UserControl's user avatar
  • 15.1k
3 votes
1 answer
116 views

Is the documentation wrong for Graphics.IsVisible(Rectangle rect)?

Microsoft's online documentation says that this Graphics method returns "true if the rectangle specified by the rect parameter is contained within the visible clip region of this Graphics; ...
Spooner's user avatar
  • 31
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 ...
stuck stuck's user avatar
0 votes
1 answer
17 views

Limit which attributes are available based on referencing assembly

I'm probably not phrasing this question properly, but hopefully I can get the intention across. I have an application with three projects. Project 1 is the web-facing part of the application. Project ...
Kiran Ramaswamy's user avatar
0 votes
1 answer
546 views

Update WPF from .NET 4 to 4.5.2, DataGridTextColumn Visibility DataContext reference broken

I've upgraded a WPF project to .NET 4.5.2. In a xaml file, I have the following line. <UserControl x:Class="Casa.Project.Client.Views.Projects.ProjectSearch" xmlns="http://schemas....
CamHart's user avatar
  • 4,165
3 votes
1 answer
1k views

WPF Grid Elements not resizing when another one is set to collapsed

I am using a Grid to balance 3 parts. The first two shall take up each 50% of the remaining space, the last two shall stay the same height at the bottom, as it is a bar with buttons. I use a ...
Crumar's user avatar
  • 132
0 votes
2 answers
49 views

Restricting Access to a Method or Rewriting that Method for a Specific Object

(In a C# program) I have a List<Author> authors, where Author is a class I wrote. Lists have a default Add(Object o) method, but I need to make it either less accessible or overwrite it for ...
jmindel's user avatar
  • 545
2 votes
0 answers
67 views

Make a extension method appear in the 'Common' suggestion list instead of 'All' list?

I'm not sure whether the programmer can take precedence over Intellisense in this way. Exists a method attribute (or a different solution) to let IntelliSense display a custom extension method in ...
ElektroStudios's user avatar
-2 votes
3 answers
137 views

Access UI form controls from another class into your main form in C#

How can I use my UI form controls from another class? I want to work with these controls in another class, then call it into my main form. The problem is that the new class I created can't seem to ...
taji01's user avatar
  • 2,615
1 vote
1 answer
105 views

How discretely defined visibility of my assemblies types?

I'm using the .NET 4.5.2 and need access from assembly B a ClassA defined in assembly A, but want declare ClassA as internal to avoid access from other assemblies to it. I don't want use ...
user avatar
0 votes
2 answers
253 views

Should static variable in be visible in a separate project?

If a Visual Studio 2010 solution contains two C# projects where the second projects references the first project: If a public static variable is declared in a class in the first project, should it be ...
CJ7's user avatar
  • 23.1k
1 vote
1 answer
166 views

Is Selected Visibility of Element in DataTemplate

This DataTemplate is use in a ListBox Would like fieldTemplateDetail to only be visible when the ListBoxItem IsSelected Visibility="{Binding Path=IsSelected, Converter=bvc}" Above is NOT ...
paparazzo's user avatar
  • 45k
4 votes
4 answers
10k views

C# Window Visibility, collapsed and hidden

I have a quick question regarding visibility of windows in an application. According to... http://msdn.microsoft.com/en-us/library/system.windows.visibility.aspx (its short) When a window is ...
Ben Cheng's user avatar
  • 111
0 votes
0 answers
72 views

Displaying Text Link VB.Net 2003

I'm using window base application (.NET Framework 1.1) I have a problem on displaying Text Link on form. Sometimes the text link doesn't appear after Form Load. I'm sure that the text link visibility ...
Bryan's user avatar
  • 1,243
0 votes
1 answer
58 views

Winform handling

I have 3 forms. We can enter to form2 through form1.(Then form1 will disappear.) When we close form2, form1 will reappear. Similarly we can enter to form3 through form2.(Then form2 will disappear.) ...
jubairusman's user avatar
22 votes
2 answers
12k views

What does a public constructor on an internal class mean [duplicate]

I've seen some C# code that declares a class with an internal modifier, with a public constructor: internal class SomeClass { public SomeClass() { } } What is the point of having a ...
lysergic-acid's user avatar
8 votes
1 answer
4k views

TargetNullValue for Visibility that's bound to a boolean

I have a Grid whose Visibility property is bound to a boolean property of a certain model using a Converter: <Grid Visibility="{Binding ElementName=MyTreeView, Path=SelectedItem.MyBoolProperty, ...
jebar8's user avatar
  • 2,113
0 votes
1 answer
2k views

Visibility = Collapsed not working in DockPanel

I'm trying to get the below TextBlocks to become Collapsed, however it isn't working: <DockPanel Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" LastChildFill="False" >...
JosephGarrone's user avatar
4 votes
2 answers
3k views

Why do Columns not stay hidden after calling DataGridView.Columns.Clear()?

I have seen a lot of posts on SO about weird behaviour of Columns and their visibility in particular when refreshing the grid and dynamically building the columns in the list, but haven't found a ...
user692942's user avatar
  • 16.6k
0 votes
1 answer
91 views

Is there a control in .NET WPF analogous to Java's javax.swing.Box Strut?

I have a view in my .NET4 WPF application that consists of a TextBlock, a button, and another TextBlock arranged vertically. They are on three different rows of a Grid. When the user clicks the button,...
Steve's user avatar
  • 6,404
2 votes
2 answers
2k views

Wpf controls visibility?

I am creating a Wpf browser application which has multiple controls over the different pages. Every page follows up the same pattern which is as follows: At every page load event there are two combo ...
WPFcitizen's user avatar
2 votes
3 answers
394 views

JavaScript works in IE, but not Firefox

In my .NET project I'm using a Button in HTML page that brings a hidden <div>. That <div> contains a form to insert a company. HTML: <div class="top-div-where-is-my-ADD-button"> ...
Mike Thunder's user avatar
0 votes
3 answers
99 views

ListView Visible if multiple rows

How do I bind the ListViews visibility to a calculation? I want the Listviews to be visible ONLY if there are more than one record in the DataContexts Collection (IEnumerable)
Martin's user avatar
  • 1,571
0 votes
2 answers
162 views

How can I make a UIElement show after collapse in upper direction?

On my form, I have a TextBlock element that initially is collapsed. (TextBlock.Visibility = Visibility.Collapsed). When some error occurred, it should be shown. When I use TextBlock.Visibility = ...
VladimirBadiuk's user avatar
2 votes
2 answers
3k views

How to view collapsed elements while designing a WPF control?

I set my DataGrid to collapse when there are no items <DataGrid Name="dataGrid" Visibility="{Binding HasItems, ElementName=dataGrid, ...
Jader Dias's user avatar
  • 89.9k
16 votes
5 answers
60k views

How to hide textboxes, labels and buttons C# WPF

I would like to hide several textboxes, a label and a button as soon as a button is clicked... however, for some reason, my code doesn't seem to cause this effect. Nothing appears to happen. I'm using ...
BigBug's user avatar
  • 6,290
9 votes
3 answers
2k views

F# treating internal module as private

Any ideas why the following doesn’t compile? On the last line it tells me that Module1 is not defined. If I remove the “internal” from Module1 it works fine. I've got two code files and Module1.fs ...
Mark Pattison's user avatar
0 votes
1 answer
500 views

Set visibility with a trigger

I just want to start an storyboard which makes an rectangle visible for 2 seconds when user pressed with left mouse button. But I could not solve how to get the visibility value. <Grid.Triggers>...
Nasenbaer's user avatar
  • 4,870
1 vote
4 answers
113 views

Is it possible to use a form without its being visible to user?

I'll explain: i have a form that i want to use it from another application. but the commands are using the buttons on the form which i want it to be invisible to user (which sends messages to another ...
Daniel's user avatar
  • 11
6 votes
5 answers
6k views

How can I detect the visibility of a control?

How to detect if a control is visible to a user? I have a control that displays status of application, and I want it to be updated (it's value to be updated, for example, increase the value of a ...
Bogdan Verbenets's user avatar

15 30 50 per page