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

新しい Behavior ライブラリへの更新 #27

Closed
runceel opened this issue Mar 6, 2019 · 7 comments
Closed

新しい Behavior ライブラリへの更新 #27

runceel opened this issue Mar 6, 2019 · 7 comments

Comments

@runceel
Copy link
Owner

runceel commented Mar 6, 2019

Visual Studio 2019 以降は WPF で Behavior を使う場合には基本的に以下のものを使うか System.Windows.Interactivity が使いたい場合は Visual Studio 2017 から入れることになる。

https://github.com/Microsoft/XamlBehaviorsWpf

そのため、長期的にメンテナンスをしていくことを考えると既存の System.Windows.Interactivity から、新しい XamlBehaviorsWpf で提供されている Behavior に更新する必要がある。

代替案などがあれば、ここに書き込んでください。

@soi013
Copy link
Collaborator

soi013 commented Mar 6, 2019

代替案というか、質問なのですが、 XamlBehaviorsWpf に変更する場合は、
nugetで以下のパッケージを参照するということでしょうか。

https://www.nuget.org/packages/Microsoft.Xaml.Behaviors.Wpf/

@runceel
Copy link
Owner Author

runceel commented Mar 7, 2019

はい、そうなります。
なので、XamlBehaviorsWpf を参照するバージョンになると今迄のプログラムは変更が必要になります。

@shimodateakira
Copy link

Visual Studio 2019対応版のプロジェクトテンプレートをリリースして頂きありがとうございます。
早速、インストールしてみましたが、Microsoft.Expression.Interactions と System.Windows.Interactivityが見つからないという参照エラーがでます。
Visual Studio 2017でも同様の問題があった時はBlend for Visual Studio SDK for .NET を入れれば解決するようですが、2019の場合はありませんね。
結局、どのような対応をすればよいのでしょうか。
具体的な操作方法など教えていただければ幸いです。

@runceel
Copy link
Owner Author

runceel commented May 28, 2019

今の所Visual Studio 2017のインストーラーからBlend for VS SDK for .NETを入れていただくか、NuGet上の野良のBlend SDKを入れていただくかという形になると思います。

@runceel
Copy link
Owner Author

runceel commented Sep 4, 2019

こちらの作業は .NET Core 3.0 が GA して XamlBehaviorsWpf が .NET Core 3.0 対応したのちに Livet 側の修正作業に入ろうと思います。

@shimodateakira
Copy link

分かりました。回答、ありがとうございます。
その方が整理されていいですね!
楽しみに待ってます!

@runceel
Copy link
Owner Author

runceel commented Sep 27, 2019

私の一身上の都合により、PCを買い替えたので Visual Studio 2019 の環境しかなくなったため、こちらの対応を行い v3 をリリースしました。

.NET Core 3.0 向けには Microsoft.Xaml.Behaviors.Wpf がリリースされていないため .NET Core 3.0 版の Livet は、まだプレビューになっています。

@runceel runceel closed this as completed Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants