Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behaviours:BorderlessWindowBehavior is build with older Vesion of Blend SDK #1970

Closed
hannespreishuber opened this issue Jun 10, 2015 · 8 comments

Comments

@hannespreishuber
Copy link

a blank WPF VB Project Visual Studio 2015 RC can not build

@punker76
Copy link
Member

@hannespreishuber can you give us more information? have you looked to the references if the correct lib is added?

@hannespreishuber
Copy link
Author

C:\WPF\wpfdesigntest\packages\MahApps.Metro.1.1.3-ALPHA068\lib\net45\MahApps.Metro.dll 1.1.3.68

@hannespreishuber
Copy link
Author

Schweregrad Code Beschreibung Projekt Datei Zeile
Fehler Der Typ "BorderlessWindowBehavior" aus Assembly "MahApps.Metro" wurde mit einer älteren Version von Blend SDK erstellt und wird in einem Windows Presentation Framework 4-Projekt nicht unterstützt. wpfdesigntest C:\WPF\wpfdesigntest\wpfdesigntest\MainWindow.xaml 14

@punker76
Copy link
Member

@hannespreishuber I compiled a private project with VS 2015 RC and got no error. Can you test with the VS 2015 RC too?

@hannespreishuber
Copy link
Author

@punker76
Copy link
Member

@hannespreishuber with 2015 rc i can compile your test repo with removing this lines, cause this properties are gone... (all tested with the latest stable/alpha version)

ResizeWithGrip and AllowsTransparency are obsolete/deleted properties.

    <i:Interaction.Behaviors>
        <Behaviours:BorderlessWindowBehavior 
            ResizeWithGrip="True"
             AllowsTransparency="False"
            EnableDWMDropShadow="True"  />
    </i:Interaction.Behaviors>

@punker76
Copy link
Member

punker76 commented Jul 8, 2015

@hannespreishuber any news?

@jumulr
Copy link
Contributor

jumulr commented Oct 17, 2016

Hi, using Visual Studio 2015 update 3, .Net 4.6.2 i get those two errors, alternatively and randomely :

  • The type BorderlessWindowBehavior from assembly MahApps.Metro was created with a previous version of Blend SDK which is not supported in a Windows Presentation Framework 4 project.
  • Can't add an instance of type 'BorderlessWindowBehavior' to a collection of type 'BehaviorCollection'. Only elements of type 'T' are allowed.

It doesn't prevent from executing the app, but the behavior isn't applied.
Same goes for other Mahapps' behaviors.
It breaks starting from .Net 4.5 and System.Windows.Interactivity.dll 4.5.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants