Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-191117: property of type enum System.Windows.Visibility with the same name (Visibility) causes error for System.Windows.Controls.DataGridColumn

$
0
0
Reporter Aviv (avivp@microsoft.com) 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.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>