zoukankan      html  css  js  c++  java
  • [WPF] 将普通的Library工程,改造成WPF Custom Control 的Library

    1. 添加References

    PresentationCore
    PresentationFramework
    System.Xaml
    WindowsBase
    2. 修改AssemblyInfo.xs
    using System.Windows;

    [assembly: System.Windows.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)
    )]

    3. 创建Themes文件夹,然后创建Generic.xaml

  • 相关阅读:
    流程控制之while循环
    流程控制之if...else
    基本运算符
    基本数据类型
    注释
    用户交互
    常量
    test
    查询方法
    删除代码
  • 原文地址:https://www.cnblogs.com/mantian/p/3808478.html
Copyright © 2011-2022 走看看