The base type page is listed elsewhere
Even though XAML pages automatically inherit from the page, ReSharper picks out all inheritance from this base class and the following message appears:
Base type page is specified in other parts
It suggests removing redundant super-type links.
What is the interpretation of all this?
+3
source to share
1 answer
The code-behind MainPage
class is a class partial
. The other part is defined in XAML like this -
<Page x:Class="xxx.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
...
</Page>
This markup already says what it MainPage
inherits from Page
, so re-executing the code behind is redundant and so Resharper marks it.
+3
source to share