Reporter | Daniel Rigby (CodeM0nkey) |
---|---|
Created | Jan 3, 2012 11:21:41 PM |
Updated | Jan 3, 2012 11:28:21 PM |
Priority | Normal |
Type | Bug |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Alexey Kuptsov (alexey.kuptsov) |
Subsystem | Quick Fixes |
Affected versions | 6.1.1 |
Fixed in build | No Fixed in build |
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.