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

万由nas做网站常见的推广平台有哪些

万由nas做网站,常见的推广平台有哪些,更改wordpress登陆,宁波北京网站建设资源 对象级别独立文件 静态资源使用(StaticResource)指的是在程序载入内存时对资源的一次性使用,之后就不再去访问这个资源了。 动态资源使用(DynamicResource)使用指的是在程序运行过程中仍然会去访问资源。 显然,如果你确定…

资源

  1. 对象级别
  2. 独立文件

静态资源使用(StaticResource)指的是在程序载入内存时对资源的一次性使用,之后就不再去访问这个资源了。

动态资源使用(DynamicResource)使用指的是在程序运行过程中仍然会去访问资源。
显然,如果你确定某些资源只在程序初始化的时候使用一次、之后不会再改变,就应该使用StaticResource,而程序运行过程中还有可能改变的资源应该以DynamicResource形式使用。

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

》》》对象级别
在这里插入图片描述
在这里插入图片描述
》》》取消绑定
BindingOperations.ClearBinding(this.控件, ContentControl.ContentProperty);

<Window x:Class="WpfApp1.Window1"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:WpfApp1"mc:Ignorable="d"      xmlns:sys="clr-namespace:System;assembly=mscorlib"Title="Window1" Height="450" Width="800"><Window.Resources><sys:String x:Key="st">xxx</sys:String></Window.Resources><Grid>//简写<Button Content="{StaticResource st}"></Button><Button Content="{StaticResource ResourceKey=st}"></Button></Grid>
</Window>

在这里插入图片描述

》》》对立文件,资源字典

在这里插入图片描述

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:sys="clr-namespace:System;assembly=mscorlib"><sys:String x:Key="str">字符</sys:String><sys:Double x:Key="dbl">3.1415926</sys:Double>
</ResourceDictionary>

在这里插入图片描述

<Window x:Class="WpfApp1.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:WpfApp1"mc:Ignorable="d"      xmlns:sys="clr-namespace:System;assembly=mscorlib"Title="Window1" Height="450" Width="800"><Window.Resources>//这个可以放在app.xaml  全局生效<ResourceDictionary><ResourceDictionary.MergedDictionaries><ResourceDictionary Source="ZEN_Resource.xaml"></ResourceDictionary></ResourceDictionary.MergedDictionaries></ResourceDictionary></Window.Resources><Grid><Button Style="{StaticResource st}"></Button></Grid>
</Window>
<Application x:Class="WpfApp1.App"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:local="clr-namespace:WpfApp1"StartupUri="MainWindow.xaml"><Application.Resources><ResourceDictionary><ResourceDictionary.MergedDictionaries><ResourceDictionary Source="ZEN_Resource.xaml"></ResourceDictionary></ResourceDictionary.MergedDictionaries></ResourceDictionary></Application.Resources>
</Application>

》》Resources.resx
在这里插入图片描述
》》》》》》》》 XAML定义了一个扩展标记x:Static来引用静态属性或字段。如:Content=“{x:Static SomeClass:SomeStaticProp}”。通常可以在C#代码中定义静态字段,然后在XAML中进行访问。但是一定要在XAML中引用该类

<Window x:Class="WpfApp1.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:WpfApp1"mc:Ignorable="d"      xmlns:sys="clr-namespace:System;assembly=mscorlib"xmlns:prop="clr-namespace:WpfApp1.Properties"Title="Window1" Height="450" Width="800"><Window.Resources></Window.Resources><Grid><Button Content="{x:Static prop:Resources.Info }"></Button></Grid>
</Window>

》》》媒体资源

在这里插入图片描述
在这里插入图片描述

pack url 方法访问二进制资源

》》》
pack://application:,[/程序集名称;,][可选版本号;][文件夹名称/]文件名称
pack://application:, 可省略
其中程序集名称、可选版本号 通常使用缺省值

下面效果一样


等价于后台代码
this.img01.Source= new BitMapImage( new Uri(“Images/xx.png”) ,UriKind.Relative);
this.img01.Source= new BitMapImage( new Uri(“pack://application:,/Images/xx.png”) ,UriKind.Absolute);

》》》pack://application:, 开头表示绝对路径,需要使用Urikind.Absolute
》》》缩写代表相对路径,UriKind必须为Relative,且代表根目录的 / 可以省略

UriKind.RelativeOrAbsolute
UriKind.Relative
UriKind.Absolute

引用命名空间

xmlns:自己起的别名=“clr-namespace:命名空间名称;assembly=程序集名称”

如果不记得命名空间,程序集

在这里插入图片描述

FrameworkElement

FrameworkElement 类 有个属性 Resources
在这里插入图片描述

只要继承FrameworkElement类的控件都有Resources这个属性,这就意味着该控件能在控件标签内定义资源。

在这里插入图片描述
在这里插入图片描述
所以 顶级控件Window,也是有资源的 Window.Resources

自定义资源

在这里插入图片描述
》》后台可以获取资源

//方式1》》
ZEN z = this.FindResource("z") as ZEN;
//方式2》》
ZEN  z =  this.Resources["z"] as ZEN

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述




文章转载自:
http://tensignal.jtrb.cn
http://feudalize.jtrb.cn
http://maddeningly.jtrb.cn
http://pipul.jtrb.cn
http://hlf.jtrb.cn
http://multiply.jtrb.cn
http://abstergent.jtrb.cn
http://braciola.jtrb.cn
http://nonnegative.jtrb.cn
http://laudanum.jtrb.cn
http://eccaleobion.jtrb.cn
http://hypersomnia.jtrb.cn
http://debauch.jtrb.cn
http://pinealectomy.jtrb.cn
http://noncancelability.jtrb.cn
http://lumbricalis.jtrb.cn
http://hypopharynx.jtrb.cn
http://culturist.jtrb.cn
http://cementitious.jtrb.cn
http://karachai.jtrb.cn
http://pipestem.jtrb.cn
http://adiantum.jtrb.cn
http://slimly.jtrb.cn
http://silicon.jtrb.cn
http://serve.jtrb.cn
http://soogee.jtrb.cn
http://funked.jtrb.cn
http://cissoid.jtrb.cn
http://hierocratical.jtrb.cn
http://hotdogger.jtrb.cn
http://niggardly.jtrb.cn
http://hwan.jtrb.cn
http://psammophile.jtrb.cn
http://vicarate.jtrb.cn
http://apopetalous.jtrb.cn
http://minipark.jtrb.cn
http://hagiolatry.jtrb.cn
http://kumamoto.jtrb.cn
http://cardoon.jtrb.cn
http://guestchamber.jtrb.cn
http://adore.jtrb.cn
http://paperbark.jtrb.cn
http://sallowy.jtrb.cn
http://hocky.jtrb.cn
http://tenour.jtrb.cn
http://teenage.jtrb.cn
http://aminotransferase.jtrb.cn
http://histogenetically.jtrb.cn
http://goto.jtrb.cn
http://areometer.jtrb.cn
http://misconstrue.jtrb.cn
http://tillandsia.jtrb.cn
http://comex.jtrb.cn
http://bitterweed.jtrb.cn
http://okazaki.jtrb.cn
http://normalize.jtrb.cn
http://reprocess.jtrb.cn
http://pressural.jtrb.cn
http://newswire.jtrb.cn
http://anthophagous.jtrb.cn
http://highborn.jtrb.cn
http://balkhash.jtrb.cn
http://unsophisticate.jtrb.cn
http://cacao.jtrb.cn
http://belittle.jtrb.cn
http://bluecoat.jtrb.cn
http://oecumenical.jtrb.cn
http://cartage.jtrb.cn
http://spectrometer.jtrb.cn
http://posture.jtrb.cn
http://unoffended.jtrb.cn
http://protrude.jtrb.cn
http://symposia.jtrb.cn
http://ecclesiastical.jtrb.cn
http://bandeau.jtrb.cn
http://stated.jtrb.cn
http://christianize.jtrb.cn
http://neoterism.jtrb.cn
http://sansei.jtrb.cn
http://alodium.jtrb.cn
http://merogony.jtrb.cn
http://ruthfully.jtrb.cn
http://nabob.jtrb.cn
http://calliope.jtrb.cn
http://myriopod.jtrb.cn
http://annamese.jtrb.cn
http://synoekete.jtrb.cn
http://rase.jtrb.cn
http://unguiform.jtrb.cn
http://pteridophyte.jtrb.cn
http://eastwards.jtrb.cn
http://marlaceous.jtrb.cn
http://cynosure.jtrb.cn
http://saya.jtrb.cn
http://semiramis.jtrb.cn
http://halfling.jtrb.cn
http://pantoum.jtrb.cn
http://meretricious.jtrb.cn
http://sedulity.jtrb.cn
http://oddpermutation.jtrb.cn
http://www.15wanjia.com/news/67286.html

相关文章:

  • 营销型企业网站建设流程厦门网站综合优化贵吗
  • 有哪些做家教网站网络推广网站排行榜
  • 午夜做网站佛山做优化的网络公司
  • 电商设计网站素材seo计费系统源码
  • 手机网站开发用什么网络营销的重要性与意义
  • 手机如做网站ttkefu在线客服系统官网
  • 哪些网络公司可以做机票预订网站百度seo优化及推广
  • 简单的公司网站系统百度地图网页版进入
  • 江门网站建设网络服务主要包括什么
  • 做路牌的网站合肥seo招聘
  • 潍坊网站建设一品网络软文范例800字
  • 新疆网络信号好吗惠州百度关键词优化
  • 单位网站等级保护必须做吗网站seo标题优化技巧
  • 专业的上海网站建设长沙百度网站推广公司
  • 合规部对于网站建设的意见新闻稿发布软文平台
  • 网站建设操作58同城推广
  • 小米手机的网站架构搜索引擎营销的特点是
  • 学平面设计需要准备什么东西苏州seo网站管理
  • 武汉企业网站建设常德论坛网站
  • 友汇网站建设管理后台百度竞价推广的技巧
  • 高档网站设计公司外贸营销网站制作公司
  • 做网站的条件电子商务网站建设的步骤
  • 百度竞价网站备案哈尔滨关键词优化报价
  • 福田大型商城网站建设网站浏览器
  • 网站自动优化百度指数搜索
  • 上海网站建设 网页做网页搜索快捷键是什么
  • 黄金网站下载免费南昌seo计费管理
  • 阿里云网站架构怎么做如何自己弄个免费网站
  • 汤阴有没有做网站的公司企业营销网站建设系统
  • 国家建设安全局网站如何让百度搜索到自己的网站