zoukankan      html  css  js  c++  java
  • Prism之12345

    第一部分

    以下说明三个最基础的概念。

    一.被引导的Windows窗体Shell

    wpf程序在启动时,需要一个宿主容器,一般情况下是System.Windows.Window,以下是一个刚创建的窗体。

    <Window x:Class="HelloWorldSample.Window1"    
       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
      Title="Window1" Height="300" Width="300">
        <Grid>           
     </Grid>
    </Window> 
    默认情况下设置起始页
    <Application x:Class="HelloWorldSample.App"
       
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
       
    StartupUri="Window1.xaml">
    </
    Application>
    随着prism框架的加入,运行主窗体的方式改变了,我们要去掉StartupUri,手动启动窗体。
    prism通过一个名为Bootstrapper类作为引导程序,它不再仅仅是一个单纯的窗体了,这个窗体我们也可以称为Shell。

    二.被附加的内容区域Region

    三.被拆分的模块Module

  • 相关阅读:
    Using Spark's "Hadoop Free" Build
    关于Consul
    关于Eureka
    关于Gateway
    关于Ribbon
    关于Hystrix
    关于Feign
    关于SpringBoot
    关于架构
    关于敏捷开发Scrum(一)
  • 原文地址:https://www.cnblogs.com/hl3292/p/1911027.html
Copyright © 2011-2022 走看看