# wpf 数据绑定 列表 ObservableCollection
PrismDryIocDemo\PrismDryIocDemo\App.xaml
<Application x:Class="PrismDryIocDemo.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:PrismDryIocDemo"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>
PrismDryIocDemo\PrismDryIocDemo\App.xaml.cs
using System.Configuration;
using System.Data;
using System.Windows;
namespace PrismDryIocDemo
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
PrismDryIocDemo\PrismDryIocDemo\AssemblyInfo.cs
using System.Windows;
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
PrismDryIocDemo\PrismDryIocDemo\MainWindow.xaml
<Window x:Class="PrismDryIocDemo.MainWindow"
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="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:PrismDryIocDemo" xmlns:viewmodels="clr-namespace:PrismDryIocDemo.ViewModels"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
标签:ObservableCollection,Windows,PrismDryIocDemo,绑定,System,Any,using,wpf,CPU
From: https://www.cnblogs.com/zhuoss/p/18508506