Reporter | Daniel Rigby (CodeM0nkey) |
---|---|
Created | Jan 3, 2012 11:21:41 PM |
Updated | Apr 18, 2012 5:29:39 AM |
Resolved | Apr 17, 2012 9:37:20 PM |
Priority | Normal |
Type | Bug |
Fix versions | 7.0 Preview |
State | Fixed |
Assignee | Alexander Shvedov (shvedov) |
Subsystem | Quick Fixes |
Affected versions | 6.1.1 |
Fixed in build | 7.0.17.105 |
When using the the "Specify DataContext type" Quick-Fix in XAML it doesn't properly handle the following two cases:
The first item is the more serious of the two as this will happen whenever anyone adds a DataContext type using the quick fix in a xaml file where xmlns:po="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" and mc:Ignorable="po" are defined for in order to freeze elements.
I have attached an example project which demonstrates both issues.
Thanks.
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" and mc:Ignorable already defined
- ReSharper fails to add the " d" into the space separated list for mc:Ignorable
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008" namespace already defined for the type, but mc:Ignorable="d" not defined
- ReSharper fails to add xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" and mc:Ignorable="d"
The first item is the more serious of the two as this will happen whenever anyone adds a DataContext type using the quick fix in a xaml file where xmlns:po="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" and mc:Ignorable="po" are defined for in order to freeze elements.
I have attached an example project which demonstrates both issues.
Thanks.