Coder Social home page Coder Social logo

metroradiance's People

Contributors

emoacht avatar grabacr07 avatar katsuyuzu avatar mntone avatar tmyt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

metroradiance's Issues

Cannot install nuget package

below is the log:

Install-Package : Could not install package 'MetroRadiance.Core 2.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1

  • Install-Package MetroRadiance
  • - CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    - FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
    

Livet.dll

How can I get the Livet.dll?
I can't compile the project without Livet.dll and Microsoft.Expression.Interactions dll.

ライブラリ化とライセンスについて

MahApps.Metro で使われていたりと需要が無いわけではなさそうですし、せっかくなのでライブラリ化しようと思います。

私の勝手な名前付け規則ですが、とりあえず以下のような構成で考えています (というか、既に私の手元で進めています)。

  • MetroRadiance.Chrome - 枠が光る実装のみ (Behavior として提供)
  • MetroRadiance - 現状の VS2012LikeWindow2 のようなウィンドウを作るための Style & コントロール群

また、これに伴って、何も考えてなかったライセンスも設定したいです。
MIT License にしようと思いますが、いかがでしょ。

Cannot install nugget package

Hello,

I'm getting errors when installing nuget package.
.NET Framework 4.6+

Install-Package : Failed to add reference. The package 'MetroRadiance' tried to add a framework reference to 'Microsoft.Expression.Interactions' which was not found in the GAC. This is possibly a bug in the 
package. Please contact the package owners for assistance.
  Reference unavailable.
At line:1 char:1
+ Install-Package MetroRadiance
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

GrowWindowのみ他のWindowの背後に隠れることがある。

MainWindowからSubWindowを開く際に、Ownerを指定しShowで指定した場合、
GrowWindowのみ、他のWindowの背後に隠れることがある。

// MainWindowにて
var w = new SubWindow { Owner = this };
w.Show();

○手順1
1.MainWindowからSubWindowをOwner指定で開く
2.MainWindowをクリックし、Activeにする
-> SubWindowのGrowWindowがMainWindowの背後に隠れる

○手順2
1.MainWindowからSubWindowをOwner指定で開く
2.MainWindowをクリックし、Activeにする
3.他のアプリケーションのWindowを半分重ねる
4.SubWindowをクリックしActiveにする
-> MainWindowのGrowWindowが他アプリの背後に隠れる
SubWindowのGrowWindowがMainWindowの背後に隠れる

↓手順2実行後にSS
image

Add dotNET 4.8 Support

The package MetroRadiance can't be installed in dotNET 4.8 projects and this issue is originally posted by @TekuSP in #26 (comment) because utilities in System.Windows.Interactivity are moved to Microsoft.Xaml.Behaviors (GitHub Repo / NuGet Package) by Microsoft.

Solutions

  • Run Install-Package Microsoft.Xaml.Behaviors.Wpf in Package Manager

  • Replace using System.Windows.Interactivity; with using Microsoft.Xaml.Behaviors;

like this in my fork

MetroWindow でない Window にVSライクな光る枠を適用する方法

例えば RibbonWindow を使っている場合や、独自のウインドウクラスに対して VSライクな光る枠だけを適用する方法はあるでしょうか?

以下の方法を試してみたのですが、ビジュアルツリー状は何やら枠らしきウインドウが4つ増えているのですが、透明で、光っているような見栄えになりませんでした。

WPFプロジェクトを新規に作成し、MainWindow.xaml に以下を追加。

<chrome:WindowChrome.Instance>
        <chrome:WindowChrome />
</chrome:WindowChrome.Instance>

ショーケースを参考に、App.xaml.cs に以下を追加。

public partial class Application
{
    protected override void OnStartup(StartupEventArgs e)
    {
	base.OnStartup(e);
	this.ShutdownMode = ShutdownMode.OnMainWindowClose;

	ThemeService.Current.Register(this, Theme.Windows, Accent.Windows);
    }
}

さらにMainWindow に WindowLoaded イベントハンドラを追加し、以下のようにテーマやアクセントカラーの変更もしてみましたが、変化なし。。。

ThemeService.Current.ChangeTheme(Theme.Dark);
ThemeService.Current.ChangeAccent(Accent.Blue);

他に何が必要でしょうか?

NT 6.4 以降の Per-monitor DPI の対応について / About per-monitor DPI in Windows NT 6.4 or later

Windows 9 (おそらく NT 6.4) 以降も引き続き Per-monitor DPI に対応すると思われますが、次の部分:

I think Windows 9 (maybe NT 6.4) or later implement per-monitor DPI continuously. Look at this:

public static bool IsSupported
{
    get
    {
        var version = Environment.OSVersion.Version;
        return version.Major == 6 && version.Minor == 3;
    }
}

https://github.com/Grabacr07/MetroRadiance/blob/master/MetroRadiance.Core/PerMonitorDpi.cs#L26

より、 Per-monitor DPI が Windows 9 で対応してても使えないことが予想されます。version.Major >= 7 || (version.Major == 6 && version.Minor >= 3) とするのが望ましいと思いますが、皆さんはどう思いますか?

Users don’t use per-monitor DPI if Windows 9 implements it. I think its program changes to version.Major >= 7 || (version.Major == 6 && version.Minor >= 3) better. How about you?

GlowWindowが非表示にならない

MainWindowに対してHideメソッドでウィンドウを非表示にすると、4隅のGlowWindowが非表示にならず、発光部分だけが残ってしまう。

1 initialstate
初期状態。ここでHideメソッドが実行されると...

2 remainglowwindow
GlowWindowだけ残ってしまう

3 resizable
リサイズも出来てしまう...

MainWindowの派生元のGlowMetroWindowでIsVisibleChangedをハンドリングして、4隅に対してHide、VisibilityをHiddenにしたり、SetWindowメソッドで非表示を試みましたが駄目でした。
本プロジェクトの本質とは無関係ですが、とりあえずご報告です。

Good job !!

During application maximize for VS2012 like window (3), some portion of the window gets cut. Can that be fixed?

最大化した際にタスクバーが表示されなくなる

タスクバーの設定で「タスクバーを自動的に隠す」にした場合、
MetroRadianceを利用したWindowを最大化すると、画面の端までマウスカーソルを移動させても
タスクバーが表示されなくなる。

上下の境界線ダブルクリックで垂直方向の最大化ができない

上下の境界線をダブルクリックすると、垂直方向の最大化ができます。その実装が行われていないので、この動作を行う API についていろいろ調べてみたのですが、この動作に関する API の情報が見つかっておりません。
打開策として Win+Shift+↑ を投げつける方法がありますが、ベストではないと思われるので、問題として投げておきます。

Windowを開いてすぐ閉じると例外が発生することがある。

ContentRenderedイベントがWindowがとじた後に発生していることが原因らしく、
ContentRenderedイベントハンドラ内のShowしている個所で例外が発生する。

○ stack trace
System.InvalidOperationException はユーザー コードによってハンドルされませんでした。
HResult=-2146233079
Message=Window が閉じた後で、Visibility の設定や、Show、ShowDialog、および WindowInteropHelper.EnsureHandle の呼び出しを行うことはできません。
Source=PresentationFramework
StackTrace:
場所 System.Windows.Window.Show()
場所 MetroRadiance.Chrome.Internal.GlowWindow.<.ctor>b__3(Object sender, EventArgs args)
場所 System.EventHandler.Invoke(Object sender, EventArgs e)
場所 System.Windows.Window.b__4(Object unused)
場所 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
場所 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
InnerException:

dotMemoryでの リーク検知について

報告になります。

MetroRaiiance を組み込んだアプリを dotMemory で検査するとリークの疑いが検知できます。
MetroRadiance.Showcase でも確認できます。

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.