すべての Microsoft 製品 Global Microsoft 365 Teams Copilot Windows Surface Xbox セール 法人向け サポート ソフトウェア Windows アプリ AI OneDrive Outlook Skype OneNote Microsoft Teams PC とデバイス Xbox を購入する アクセサリ VR & 複合現実 エンタメ Xbox Game Pass Ultimate Xbox とゲーム PC ゲーム Windows ゲーム 映画とテレビ番組 法人向け Microsoft Cloud Microsoft Security Azure Dynamics 365 一般法人向け Microsoft 365 Microsoft Industry Microsoft Power Platform Windows 365 開発者
すべての Microsoft 製品 Global Microsoft 365 Teams Copilot Windows Surface Xbox セール 法人向け サポート ソフトウェア Windows アプリ AI OneDrive Outlook Skype OneNote Microsoft Teams PC とデバイス Xbox を購入する アクセサリ VR & 複合現実 エンタメ Xbox Game Pass Ultimate Xbox とゲーム PC ゲーム Windows ゲーム 映画とテレビ番組 法人向け Microsoft Cloud Microsoft Security Azure Dynamics 365 一般法人向け Microsoft 365 Microsoft Industry Microsoft Power Platform Windows 365 開発者
はじめに この連載ではSilverlightとWPFで使える、逆引きTipsを紹介していきます。今回は、SilverlightとWPFで使えるラジオボタンとチェックボックス機能(CheckBoxコントロールとRadioButtonコントロール)について取り上げます。 対象読者 Visual BasicまたはVisual C#、および、Silverlight/WPFのプロジェクト作成方法、XAMLについて基礎的な知識がある方を対象としています。 必要な環境 下記を使ってプログラミングできる環境(筆者はこの環境で検証し執筆しています)。 Visual Studio 2010 Microsoft Silverlight 4 Tools for Visual Studio 2010 Microsoft Silverlight 4 Tools for Visual Studio 2010は、Micr
はじめに この連載ではSilverlightとWPFで使える、逆引きTipsを紹介していきます。今回は、Silverlightで使えるオートコンプリート機能(AutoCompleteBoxコントロール)について取り上げます。 対象読者 Visual Basic、Visual C#、および、Silverlight/WPFのプロジェクト作成方法、XAMLについて基礎的な知識がある方を対象としています。 必要な環境 下記を使ってプログラミングできる環境(筆者はこの環境で検証し執筆しています)。 Visual Studio 2010 Microsoft Silverlight 4 Tools for Visual Studio 2010 Microsoft Silverlight 4 Tools for Visual Studio 2010は、Microsoftダウンロードセンターより入手できます
Windows Presentation Foundation (WPF) を使用すると、外観をカスタマイズできるコントロールを作成できます。 たとえば、新しい ControlTemplate を作成することにより、設定されるプロパティを超えて CheckBox の外観を変更できます。 次の図は、既定の ControlTemplate を使用する CheckBox と、カスタム ControlTemplate を使用する CheckBox を示したものです。 既定のコントロール テンプレートを使用するチェックボックス カスタム コントロール テンプレートを使用するチェックボックス コントロールを作成するときにパーツと状態モデルに従うと、コントロールの外観がカスタマイズ可能になります。 Blend for Visual Studio などのデザイナー ツールではパーツと状態モデルがサポートさ
2010年8月25日水曜日 [Silverlight] MEF を使って XAP を動的に読み込む その2 「[Silverlight] MEF を使って XAP を動的に読み込む その1」 の続きです。 今回は XAP を動的に読み込んでみる例です。 なお、Visual Studio 2010 のソリューションを http://cid-ca42d76a68f54d16.office.live.com/self.aspx/Public/Sample/MefSample.zip に置いておきます。 ZIP ファイル内の MefSample02 フォルダが以下の例です。 この例では、本体である MefSample02 が Page1.xap、Page2.xap を読み込んでいます。そしてボタンクリックで Page1.xap や Page2.xap に入っているコントロールを表示しています。 ま
通常、SilverlightアプリはWebブラウザ上で動作しますので、アプリのバージョンアップは特に意識することなくWebサーバ上に配置したモジュールを入れ替えるだけで事足りるわけですが、ローカルPCにダウンロードしたモジュールを利用する「ブラウザ外実行モード(OOB)」ではどのようにしてバージョンアップすればいいのでしょう? いたって素朴な疑問ですが、当然ながらそのための仕組みが用意されています。 下記コードをアプリ起動時(Appクラスのコンストラクタ辺りでしょうか)に入れておくだけで、バージョンチェック、および変更されている場合は自動的にダウンロードまで実行してくれます。 チェック+ダウンロードは非同期に行われるため、サンプルでは完了イベントを定義してエラーチェックやメッセージ通知を行っていますが、更新処理そのものは CheckAndDownloadUpdateAsync メソッドを一
Silverlight 4 から Binding に文字列のフォーマットを指定できる StringFormat が追加されました。 例えば、金額を表示するなら以下のような感じで書式指定の c を設定します。ここではスライダーで値を変更できるようにしています。 <StackPanel Orientation="Vertical"> <Slider Orientation="Horizontal" Minimum="100" Maximum="10000" Name="ValueSlider" /> <TextBlock FontSize="50" Text="{Binding Value,ElementName=ValueSlider, StringFormat='c'}" /> </StackPanel> で、これを表示すると・・・・ まぁ、確かに金額書式なんですが・・・・。なぜに $ ・
Silverlight Toolkit の ContextMenu を使って、DropDownButton コントロールを実装してみた。下図が完成画面。一応それっぽく動いている。 使い方はこんな感じ。 <ctrl:DropDownButton Content="Click" Canvas.Left="50" Canvas.Top="50"> <ctrl:DropDownButton.Menus> <input:MenuItem Header="Menu1"/> <input:MenuItem Header="Menu2"/> <input:MenuItem Header="Menu3"/> <input:MenuItem Header="Menu4"/> <input:MenuItem Header="Menu5"/> </ctrl:DropDownButton.Menus> </ctrl
バインドされるデータ ソース オブジェクトに IDataErrorInfo インターフェイスを実装し、Binding オブジェクトの ValidatesOnDataErrors プロパティを設定すると、バインドされたデータ ソース オブジェクトから公開される IDataErrorInfo API が Binding によって呼び出されます。このようなプロパティ呼び出しから null でも空でもない文字列が返されると、その Binding オブジェクトに検証エラーが設定されます。 TwoWay データ バインドでユーザーがデータを入力または変更すると、次のワークフローが開始されます。 ユーザーがキーストローク、マウス、タッチ、またはペンで要素を操作してデータを入力または編集した結果として、その要素のプロパティが変更されます。 必要に応じて、データがデータ ソース プロパティの型に変換されます
Copyright © 2004-2024 Impress Corporation. An Impress Group Company. All rights reserved.
Kay Framework や Django の ModelForm を使っていると、「これ .NET にも欲しい」と良く思う。そういえば、Silverlight Tools には DataForm っていうコントロールがあったな。 Silverlight Toolkit 試しに使ってみた。 MainPage.xaml <UserControl x:Class="DataFormSample.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="
This topic provides information that you can use to help your Silverlight-based applications run fast and smoothly. This topic contains the following sections. Test on Multiple Platforms and Browsers Set EnableFrameRateCounter to true During Development Use Transparent Background for a Silverlight Plug-in Sparingly When Animating the Opacity or Transform of a UIElement, set its CacheMode Cache Vis
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く