Reporter | Aviv (avivp@microsoft.com) |
---|---|
Created | Sep 19, 2010 11:15:41 PM |
Updated | Feb 28, 2012 6:47:22 PM |
Resolved | Feb 28, 2012 6:47:22 PM |
Priority | Critical |
Type | Bug |
Fix versions | 6.1 |
State | Obsolete |
Assignee | Evgeny Pasynkov (pasynkov) |
Subsystem | Language - C# |
Affected versions | 5.1.1 |
Fixed in build | No Fixed in build |
Hello,
In my WPF code, when I try to set the Visibility property of DataGridTextColumn object using the System.Windows.Visibility enum, I get this reshrper error:
Cannot access static enum member 'Visible' in non-static context
This is caused by the fact that Visibility property in System.Windows.Controls is defined with the same name:
definition of DataGridColumn class:
namespace System.Windows.Controls
{
public abstract class DataGridColumn : DependencyObject
{
public Visibility Visibility { get; set; }
}
example of my code: this.nameOfColumn.Visibility = Visibility.Visible;
resharper version: 5.1.1751.8
Thanks.
In my WPF code, when I try to set the Visibility property of DataGridTextColumn object using the System.Windows.Visibility enum, I get this reshrper error:
Cannot access static enum member 'Visible' in non-static context
This is caused by the fact that Visibility property in System.Windows.Controls is defined with the same name:
definition of DataGridColumn class:
namespace System.Windows.Controls
{
public abstract class DataGridColumn : DependencyObject
{
public Visibility Visibility { get; set; }
}
example of my code: this.nameOfColumn.Visibility = Visibility.Visible;
resharper version: 5.1.1751.8
Thanks.