You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
WPF での MVVM Model/View/ViewModel の話などありますが、きちんと理解するのに数年を要した概念なので改めて概念をまとめてみます。 この記事でまとめたいこと Model/View/ViewModel の書き方 View と ViewModel の分離について ダイアログの出し方 .NET Community Toolkit, Microsoft.Extensions.DependencyInjection, Microsoft.Xaml.Behaviors.Wpf の使用を前提とします。 作ったアプリのサンプルは に設置します。 作るアプリ ・Web APIから現在時刻を取得して、その結果を表示 ・ダイアログで確認後、選択内容をクリップボードにコピーする MVVM の実装 Model MVVM における Model は「View に関わらないこと全般」です。 AP
2022/12/14 「WeakとStrong」の節に少し追記 はじめに .NET Community Toolkit の v8.0.0 が8月にリリースされました。 これは雑に言うと、Windows開発用のWindows Community ToolkitからWindows 固有でないAPIが独立して作成された最初のバージョンです。 上記Toolkitに、CommunityToolkit.Mvvmが含まれています。 .NET 6 で Incremental Source Generator(ISG)が登場し、多くのボイラープレートコードが高速に生成できるようになりました。 CommunityToolkit.Mvvmでも同様にISGを活用し、多くのコード生成を実現しています。 ※ちなみにコード生成機能自体は7.1.0でもあったようです。 本稿ではv8のうち、特にコード生成に関連する部分(の
はじめに この連載では、.NET Core 3時代のWPFプログラミングを解説していきます。 前回は、とりあえず簡単なWPFアプリを作ってみました。ユーザーインターフェース(UI)をXAMLで定義し、C#でコーディングするという、WPFプログラミングのイメージをつかんでいただけたと思います。 今回は、この先へ進む前に、.NET CoreとWPFについて解説しておきます。.NET Coreとは、簡単に言ってしまえば.NET Frameworkをリストラクチャ(本来の意味のrestructure、「再構築」)したものです。 WPF(Windows Presentation Foundation)とは、デスクトップ向けWindows用のアプリを開発するためのGUI(Graphical User Interface)フレームワークです。.NET Frameworkまたは.NET Coreのクラスラ
Microsoft Learn. Spark possibility. Build skills that open doors. See all you can do with documentation, hands-on training, and certifications to help you get the most from Microsoft products. Learn by doing Gain the skills you can apply to everyday situations through hands-on training personalized to your needs, at your own pace or with our global network of learning partners. Take training Find
Microsoft Learn. Spark possibility. Build skills that open doors. See all you can do with documentation, hands-on training, and certifications to help you get the most from Microsoft products. Learn by doing Gain the skills you can apply to everyday situations through hands-on training personalized to your needs, at your own pace or with our global network of learning partners. Take training Find
Windows Vistaに標準搭載されている.NET Framework 3.0には、新しいプレゼンテーション技術である、 WPF(Windows Presentation Foundation) が含まれています。これはDirectXをベースにした描画エンジンと、Windowsアプリケーションを構築するためのフレームワーク(簡単にいえばクラス・ライブラリ)などで構成されています。 そしてさらに、WPFには、XMLベースの言語である、 XAML(Extensible Application Markup Language) (「ザムル」あるいは「ザメル」と発音) が含まれています。XAMLは主に、Windowsアプリケーションや、IEなどのブラウザ内で動作するSilverlightアプリケーションなどのGUIを記述するために使用されます。 本連載では、Windowsアプリケーション構築で
はじめに この記事では、Windows Presentation Foundation(WPF)とPresentation Modelパターンを使用して、複数の編集可能な行項目をコレクションにバインドする高度な技法を紹介します。この記事の内容は、読者がWPFデータバインディングの技法、およびオブジェクト指向UIライブラリで一般的に使用されるデザインパターンに関する基本的知識をお持ちであることを前提としています。まず記事全体で使用するサンプルアプリケーションの概要を紹介し、その後、このアプリケーションにPresentation Modelパターンを適用してUI層とビジネスロジック層を分離する方法を示します。最後に、実際にPresentation ModelをXAMLコントロールにバインドして、複数の編集可能な行項目を持つ動的UIを作成するために必要なWPF固有の細かい処理についても説明します
Microsoft Learn. Spark possibility. Build skills that open doors. See all you can do with documentation, hands-on training, and certifications to help you get the most from Microsoft products. Learn by doing Gain the skills you can apply to everyday situations through hands-on training personalized to your needs, at your own pace or with our global network of learning partners. Take training Find
WPF Win32 Renderer (CodePlex) http://www.codeplex.com/WPFWin32Renderer Win32ウインドウをWPFの3D表示の中にレンダリングできたら、とXAML書きならば誰もが思っていたことをサクッと実現してしまった人が登場。 しかも、3Dサーフェイス上でUIがそのまま使えます。マウスもキーボードもIMEも。 ソース付き(修正BSDライセンス)、UI部は3D Toolsをそのまま使っているようです。 開発環境がない人は、.NET3.0のRuntime入れて(Vistaならそのままで)、ReleasesのWPFWin32InteropDemo.zipをダウンロードしてくればたぶん動きます(実用性は無いけど...)。 ここまでできれば、既存のアプリやブラウザを使いまわしてなんでもやり放題か? という感じ。 ちらっとソースを見た感じでは、
はじめに このシリーズではWPF、WCF、WFについて、Visual Studio 2005 Extensionsを用いたプログラミングを紹介していきます。シリーズ第2回となる本稿では、前回構築した環境を使い、WPFを用いたプログラミングについて説明します。 WPFの概要、インストール方法などについては、前回の記事を参照してください。過去の記事WPF(Windows Presentation Foundation)+XAML入門 前編 対象読者 本シリーズでは、C#でプログラミングを行ったことがある方を対象としています。特に本記事は、Windows Forms、ASP.NET開発経験があるならば、より内容を理解しやすいでしょう。WPFを利用したアプリケーション その1 では早速WPFを使ってプログラミングをしてみましょう。スタンドアロンWindowsアプリケーション 最初はボタンを押すとメ
.NET Framework 3.0とは Windows Vistaがいよいよ発売となりましたが、Vistaで追加されたさまざまな機能の土台となっているのが.NET Framework 3.0です。.NET Framework 3.0(旧称 WinFX)は、.NET時代のOSが提供する新たなAPIセットで、以前のWin32 APIのような関数指向のモデルではなく、オブジェクト指向の.NETライブラリとして提供されます。 .NET Framework 3.0の実体は、.NET Framework 2.0をベースとし、それにWPF(Windows Presentation Foundation)、WCF(Windows Communication Foundation)、WF(Windows Workflow Foundation)、WCS(Windows CardSpace)を追加したものと
This topic provides an overview of the WPF visual layer. It focuses on the role of the Visual class for rendering support in the WPF model. Role of the Visual Object The Visual class is the basic abstraction from which every FrameworkElement object derives. It also serves as the entry point for writing new controls in WPF, and in many ways can be thought of as the window handle (HWND) in the Win32
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く