当前位置: 首页 > news >正文

网站的创建历程怎么写seo案例分析

网站的创建历程怎么写,seo案例分析,怎么做营销策划方案,小程序商城的服务哪家好安装Prism.DryIoc库&#xff1a; Prism的区域和模块化&#xff1a; 一个区域可以显示一个用户控件 一个模块就是一个项目&#xff0c;也就是一个类库 动态切换用户控件的案例&#xff1a; <Grid><Grid.RowDefinitions><RowDefinition Height"auto"…

安装Prism.DryIoc库:

Prism的区域和模块化:

一个区域可以显示一个用户控件

一个模块就是一个项目,也就是一个类库

动态切换用户控件的案例:

<Grid><Grid.RowDefinitions><RowDefinition Height="auto"/><RowDefinition/></Grid.RowDefinitions><StackPanel Orientation="Horizontal"><Button Margin="5" Content="打开模块A" Command="{Binding OpenCommand}" CommandParameter="ViewA"/><Button Margin="5" Content="打开模块B" Command="{Binding OpenCommand}" CommandParameter="ViewB"/><Button Margin="5" Content="打开模块C" Command="{Binding OpenCommand}" CommandParameter="ViewC"/></StackPanel><ContentControl prism:RegionManager.RegionName="ContentRegion" Grid.Row="1"/>
</Grid>
public partial class App
{protected override Window CreateShell(){return Container.Resolve<MainView>();}protected override void RegisterTypes(IContainerRegistry containerRegistry){// 依赖注入containerRegistry.RegisterForNavigation<ViewA>();containerRegistry.RegisterForNavigation<ViewB>();containerRegistry.RegisterForNavigation<ViewC>();}
}
internal class MainViewModel : BindableBase
{private readonly IRegionManager regionManager;public DelegateCommand<string> OpenCommand { get; private set; }public MainViewModel(IRegionManager regionManager){OpenCommand = new DelegateCommand<string>(Open);this.regionManager = regionManager;}private void Open(string obj){regionManager.Regions["ContentRegion"].RequestNavigate(obj);}
}

多模块的情况下动态切换一个区域的用户控件:

大部分的代码是和上面一样的

模块A中的ModuleAProfile文件:

namespace ModuleA
{public class ModuleAProfile : IModule{public void OnInitialized(IContainerProvider containerProvider){}public void RegisterTypes(IContainerRegistry containerRegistry){// 依赖注入containerRegistry.RegisterForNavigation<ViewA>();}}
}

主项目中的App.xaml:

public partial class App
{protected override Window CreateShell(){return Container.Resolve<MainView>();}protected override void RegisterTypes(IContainerRegistry containerRegistry){}protected override void ConfigureModuleCatalog(IModuleCatalog moduleCatalog){moduleCatalog.AddModule<ModuleAProfile>();moduleCatalog.AddModule<ModuleBProfile>();base.ConfigureModuleCatalog(moduleCatalog);}
}

http://www.ds6.com.cn/news/56245.html

相关文章:

  • 七牛图片水印 wordpressseo文章生成器
  • 不正规网站制作渠道推广平台
  • 北京学会网站建设怎么做一个公司网站
  • 做wap网站能火吗凡客建站
  • 北京手机建站模板爱站seo查询
  • dz论坛可以做商业网站自建站平台
  • 一种子网站做的很好的视频广告武汉网络推广公司
  • 济南手机网站开发公司电话网站收录网
  • 网站建设申请方案文样企业网站设计规范
  • 企业网站开发注意什么做公司网站的公司
  • 如何编写一个微信小程序seo流程
  • 甘肃建设住房厅网站首页合肥网络推广软件系统
  • 动态网站系统如何做好线上推广和引流
  • 做网站不赚钱了长春网站建设开发
  • 长沙做公司网站收录情况有几种
  • 电子购物网站收藏功能设计衡水今日头条新闻
  • wordpress个性评论框长沙seo管理
  • 沈阳做平板网站一般网络推广应该怎么做
  • 怎么做网站的浏览栏全球网站排行榜
  • 无锡本地网站有哪些app营销策略有哪些
  • 网站 建设网络营销的营销方式是什么
  • BC网站开发制作排名nba
  • 哪有做企业网站百度极速版推广
  • 网站建设企业营销韶山百度seo
  • 网站用的是什么语言海外推广营销 平台
  • 安徽省建设工程信网站宜昌网站seo
  • python可以做网站什么平台免费推广效果最好
  • 做网站流程 优帮云韶山seo快速排名
  • 网站制作哪个好一些长春关键词优化排名
  • 可视化网站建设软件产品营销策划方案