WPF 在qt使用图片资源文件件中使用自定义控件报错

&>&WPF自定义控件Textbox带水印以及错误信息显示
WPF自定义控件Textbox带水印以及错误信息显示
上传大小:66KB
一个自定义编写的WPF的Textbox文本框,带水印功能,错误信息显示,是否必填项。将常用的textbox需要的功能都包含了,一个控件解决texbox的问题.简单易用。如果有问题,可留言,我看见了尽量改正。
综合评分:4(5位用户评分)
下载个数:
{%username%}回复{%com_username%}{%time%}\
/*点击出现回复框*/
$(".respond_btn").on("click", function (e) {
$(this).parents(".rightLi").children(".respond_box").show();
e.stopPropagation();
$(".cancel_res").on("click", function (e) {
$(this).parents(".res_b").siblings(".res_area").val("");
$(this).parents(".respond_box").hide();
e.stopPropagation();
/*删除评论*/
$(".del_comment_c").on("click", function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_invalid/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parents(".conLi").remove();
alert(data.msg);
$(".res_btn").click(function (e) {
var parentWrap = $(this).parents(".respond_box"),
q = parentWrap.find(".form1").serializeArray(),
resStr = $.trim(parentWrap.find(".res_area_r").val());
console.log(q);
//var res_area_r = $.trim($(".res_area_r").val());
if (resStr == '') {
$(".res_text").css({color: "red"});
$.post("/index.php/comment/do_comment_reply/", q,
function (data) {
if (data.succ == 1) {
var $target,
evt = e || window.
$target = $(evt.target || evt.srcElement);
var $dd = $target.parents('dd');
var $wrapReply = $dd.find('.respond_box');
console.log($wrapReply);
//var mess = $(".res_area_r").val();
var mess = resS
var str = str.replace(/{%header%}/g, data.header)
.replace(/{%href%}/g, 'http://' + window.location.host + '/user/' + data.username)
.replace(/{%username%}/g, data.username)
.replace(/{%com_username%}/g, data.com_username)
.replace(/{%time%}/g, data.time)
.replace(/{%id%}/g, data.id)
.replace(/{%mess%}/g, mess);
$dd.after(str);
$(".respond_box").hide();
$(".res_area_r").val("");
$(".res_area").val("");
$wrapReply.hide();
alert(data.msg);
}, "json");
/*删除回复*/
$(".rightLi").on("click", '.del_comment_r', function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_comment_del/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parent().parent().parent().parent().parent().remove();
$(e.target).parents('.res_list').remove()
alert(data.msg);
//填充回复
function KeyP(v) {
var parentWrap = $(v).parents(".respond_box");
parentWrap.find(".res_area_r").val($.trim(parentWrap.find(".res_area").val()));
评论共有3条
很普通,没什么价值
不错,谢谢分享
谢谢分享 有用处
VIP会员动态
CSDN下载频道资源及相关规则调整公告V11.10
下载频道用户反馈专区
下载频道积分规则调整V1710.18
spring mvc+mybatis+mysql+maven+bootstrap 整合实现增删查改简单实例.zip
资源所需积分/C币
当前拥有积分
当前拥有C币
输入下载码
为了良好体验,不建议使用迅雷下载
WPF自定义控件Textbox带水印以及错误信息显示
会员到期时间:
剩余下载个数:
剩余积分:0
为了良好体验,不建议使用迅雷下载
积分不足!
资源所需积分/C币
当前拥有积分
您可以选择
程序员的必选
绿色安全资源
资源所需积分/C币
当前拥有积分
当前拥有C币
(仅够下载10个资源)
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
您的积分不足,将扣除 10 C币
为了良好体验,不建议使用迅雷下载
你当前的下载分为234。
你还不是VIP会员
开通VIP会员权限,免积分下载
你下载资源过于频繁,请输入验证码
您因违反CSDN下载频道规则而被锁定帐户,如有疑问,请联络:!
若举报审核通过,可返还被扣除的积分
被举报人:
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:
WPF自定义控件Textbox带水印以及错误信息显示他的最新文章
他的热门文章
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)WPF之用户控件、 资源文件、生命周期、属性更改通知及依赖属性
我的图书馆
WPF之用户控件、 资源文件、生命周期、属性更改通知及依赖属性
从这一篇往前看,其实wpf中还有很多东西没有讲到,不过我的原则还是将比较常用的知识点过一遍,如果大家熟悉了这些知识,基本功
也就打的差不多了,后续可以等待老邓的wpf细说系列,这里我先顶老邓一下。
一:用户控件(UserControl)
& & & 对于用户控件的认识,我想大家还是很熟悉的,因为这玩意我们在webform或者在mvc中用的可多了,我们看看wpf中怎么使用,首先
我们要知道"用户控件“继承自UserControl,而UserControl继承自ContentControl,也就是上上一篇说的”内容控件”。
第一步:在vs中的添加项中找到一个“用户控件WPF”,点击添加即可。
第二步:我们发现其实UserControl和Window是一个层次上的,都有xaml和cs文件,然后我们在xaml中拖几个控件。
1 &UserControl x:Class="WpfApplication8.AddProduct"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="200" d:DesignWidth="300"&
&Grid Height="171" Width="262"&
&TextBlock Height="20" HorizontalAlignment="Left" Margin="28,57,0,0" Name="textBlock1" Text="名称:" VerticalAlignment="Top" Width="42" /&
<SPAN style="COLOR: #
&TextBlock Height="20" HorizontalAlignment="Left" Margin="28,92,0,0" Name="textBlock2" Text="价格:" VerticalAlignment="Top" Width="42" /&
<SPAN style="COLOR: #
&TextBox Height="23" HorizontalAlignment="Left" Margin="76,54,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" /&
<SPAN style="COLOR: #
&TextBox Height="23" HorizontalAlignment="Left" Margin="76,92,0,0" Name="textBox2" VerticalAlignment="Top" Width="120" /&
<SPAN style="COLOR: #
<SPAN style="COLOR: # &/UserControl&
第三步:我们在MainWindow中引用,跟webform中使用套路一模一样,最后也就ok了。
<SPAN style="COLOR: # &Window x:Class="WpfApplication8.MainWindow"
<SPAN style="COLOR: #
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
<SPAN style="COLOR: #
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
<SPAN style="COLOR: #
xmlns:local="clr-namespace:WpfApplication8"
<SPAN style="COLOR: #
Title="MainWindow" Height="350" Width="525"&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
&local:AddProduct x:Name="test"/&
<SPAN style="COLOR: #
<SPAN style="COLOR: # &/Window&
二:资源文件
& & &先前文章我也说过,资源就类似于webform中的css,但是实际应用中,css都是一个个单独的文件来实现内容与样式的分离,当然
wpf中也主张这么做。
第一步:vs中新建项 -& 资源字典-&点击确定
第二步:这里我就将默认生成的Dictionary1.xaml放在解决方案的Style文件夹下,然后我们写上一段简单的style。
<SPAN style="COLOR: # &ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
<SPAN style="COLOR: #
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&
<SPAN style="COLOR: #
&Style x:Key="backColor" TargetType="{x:Type Button}"&
<SPAN style="COLOR: #
&Setter Property="Background" Value="Red"/&
<SPAN style="COLOR: #
<SPAN style="COLOR: # &/ResourceDictionary&
第三步:在Resources上引用,指定资源文件路径,跟webform中的css文件引用一样一样的。
1 &Window x:Class="WpfApplication9.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525"&
&Window.Resources&
&!-- 引用外部资源文件 --&
&ResourceDictionary&
&ResourceDictionary.MergedDictionaries&
&ResourceDictionary Source="/Style/Dictionary1.xaml"/&
<SPAN style="COLOR: #
&/ResourceDictionary.MergedDictionaries&
<SPAN style="COLOR: #
&/ResourceDictionary&
<SPAN style="COLOR: #
&/Window.Resources&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
&Button Content="Button" Style="{StaticResource ResourceKey=backColor}" Height="23" HorizontalAlignment="Left" Margin="104,58,0,0" Name="button1" VerticalAlignment="Top" Width="75" /&
<SPAN style="COLOR: #
<SPAN style="COLOR: # &/Window&
三:了解wpf中Window的生命周期
& &了解生命周期,可以让我们更好的控制生命周期内各个阶段发生的行为,具体怎么灵活运用,得要看大家灵活发挥了。
2 using System.Collections.G
3 using System.L
4 using System.T
5 using System.W
6 using System.Windows.C
7 using System.Windows.D
8 using System.Windows.D
9 using System.Windows.I
<SPAN style="COLOR: # using System.Windows.M
<SPAN style="COLOR: # using System.Windows.Media.I
<SPAN style="COLOR: # using System.Windows.N
<SPAN style="COLOR: # using System.Windows.S
<SPAN style="COLOR: # using System.D
<SPAN style="COLOR: #
<SPAN style="COLOR: # namespace WpfApplication10
<SPAN style="COLOR: # {
<SPAN style="COLOR: #
/// &summary&
<SPAN style="COLOR: #
/// MainWindow.xaml 的交互逻辑
<SPAN style="COLOR: #
/// &/summary&
<SPAN style="COLOR: #
public partial class MainWindow : Window
<SPAN style="COLOR: #
<SPAN style="COLOR: #
public MainWindow()
<SPAN style="COLOR: #
<SPAN style="COLOR: #
InitializeComponent();
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
this.Initialized += (sender, e) =&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
Debug.WriteLine("窗体初始化完成 Initialized");
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
this.Activated += (sender, e) =&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
Debug.WriteLine("窗体被激活 Activated");
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
this.Loaded += (sender, e) =&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
Debug.WriteLine("窗体加载完成 Loaded");
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
//呈现内容
<SPAN style="COLOR: #
this.ContentRendered += (sender, e) =&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
Debug.WriteLine("呈现内容 ContentRendered");
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
this.Deactivated += (sender, e) =&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
Debug.WriteLine("窗体被失活 Deactivated");
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
//窗体获取输入焦点
<SPAN style="COLOR: #
this.GotFocus += (sender, e) =&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
Debug.WriteLine("窗体获取输入焦点 GotFocus");
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
//窗体失去输入焦点
<SPAN style="COLOR: #
this.LostFocus += (sender, e) =&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
Debug.WriteLine("窗体失去输入焦点 LostFocus");
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
//键盘获取输入焦点
<SPAN style="COLOR: #
this.GotKeyboardFocus += (sender, e) =&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
Debug.WriteLine("键盘获取输入焦点 GotKeyboardFocus");
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
//键盘失去输入焦点
<SPAN style="COLOR: #
this.LostKeyboardFocus += (sender, e) =&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
Debug.WriteLine("键盘失去输入焦点 LostKeyboardFocus");
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
//正在关闭
<SPAN style="COLOR: #
this.Closing += (sender, e) =&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
Debug.WriteLine("窗体正在关闭 Closeing");
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
this.Closed += (sender, e) =&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
Debug.WriteLine("窗体正在关闭 Closed");
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: # }
从窗体的开启到关闭,我们可以在“输出窗口”中看到如下的事件发生顺序流。
四:属性更改通知(INotifyPropertyChanged)
& & &我们在开发webform中,如果删除GridView里面的一行,我们的作法肯定就是在数据库中删除掉选定的记录然后重新绑定GridView控件
来实现我们的需求,注意,这里有“重新绑定”一词,但是在wpf中有一个突破,前一篇文章我也提到过wpf中的ObservableCollection&T&,
MSDN中说,在添加项,移除项时此集合通知控件,我们知道对一个集合的操作是CURD,但是恰恰没有Update的时候提供集合通知,也就
是说当我Update的时候,虽然"集合内容“已被修改,但是"控件“却没有实现同步更新,怎么办呢?INotifyPropertyChanged提供了解决方案。
2 using System.Collections.G
3 using System.L
4 using System.T
5 using System.W
6 using System.Windows.C
7 using System.Windows.D
8 using System.Windows.D
9 using System.Windows.I
<SPAN style="COLOR: # using System.Windows.M
<SPAN style="COLOR: # using System.Windows.Media.I
<SPAN style="COLOR: # using System.Windows.N
<SPAN style="COLOR: # using System.Windows.S
<SPAN style="COLOR: # using System.Collections.ObjectM
<SPAN style="COLOR: # using System.Windows.Controls.P
<SPAN style="COLOR: # using System.ComponentM
<SPAN style="COLOR: #
<SPAN style="COLOR: # namespace ListViewDemo
<SPAN style="COLOR: # {
<SPAN style="COLOR: #
/// &summary&
<SPAN style="COLOR: #
/// MainWindow.xaml 的交互逻辑
<SPAN style="COLOR: #
/// &/summary&
<SPAN style="COLOR: #
public partial class MainWindow : Window
<SPAN style="COLOR: #
<SPAN style="COLOR: #
private ObservableCollection&Person& personList = new ObservableCollection&Person&();
<SPAN style="COLOR: #
<SPAN style="COLOR: #
public MainWindow()
<SPAN style="COLOR: #
<SPAN style="COLOR: #
InitializeComponent();
<SPAN style="COLOR: #
<SPAN style="COLOR: #
personList.Add(new Person() { Name = "一线码农", Age = <SPAN style="COLOR: # });
<SPAN style="COLOR: #
<SPAN style="COLOR: #
personList.Add(new Person() { Name = "XXX", Age = <SPAN style="COLOR: # });
<SPAN style="COLOR: #
<SPAN style="COLOR: #
listview1.ItemsSource = personL
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
private void Button_Click(object sender, RoutedEventArgs e)
<SPAN style="COLOR: #
<SPAN style="COLOR: #
var first = personList.FirstOrDefault();
<SPAN style="COLOR: #
<SPAN style="COLOR: #
first.Name = textBox1.T
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
public class Person : INotifyPropertyChanged
<SPAN style="COLOR: #
<SPAN style="COLOR: #
public string
<SPAN style="COLOR: #
<SPAN style="COLOR: #
public string Name
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
NotifyPropertyChange("Name");
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
public int
<SPAN style="COLOR: #
<SPAN style="COLOR: #
public int Age
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
NotifyPropertyChange("Age");
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
public event PropertyChangedEventHandler PropertyC
<SPAN style="COLOR: #
<SPAN style="COLOR: #
private void NotifyPropertyChange(string propertyName)
<SPAN style="COLOR: #
<SPAN style="COLOR: #
if (PropertyChanged != null)
<SPAN style="COLOR: #
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: # }
1 &Window x:Class="ListViewDemo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525"&
&ListView x:Name="listview1"&
&ListView.View&
&GridView&
&GridViewColumn Header="姓名" DisplayMemberBinding="{Binding Path=Name}"/&
<SPAN style="COLOR: #
&GridViewColumn Header="年龄" DisplayMemberBinding="{Binding Path=Age}"/&
<SPAN style="COLOR: #
&/GridView&
<SPAN style="COLOR: #
&/ListView.View&
<SPAN style="COLOR: #
&/ListView&
<SPAN style="COLOR: #
&Button Content="更改名字" Click="Button_Click" Margin="315,174,35,103" /&
<SPAN style="COLOR: #
&TextBox Height="23" HorizontalAlignment="Left" Margin="162,180,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" /&
<SPAN style="COLOR: #
<SPAN style="COLOR: # &/Window&
我们只要输入名字,然后点击”button按钮”,最后ListView同步更新了,是不是很神奇的说。
五:依赖属性
& & 依赖属性是wpf中独有的一种属性,前面文章中或许我们发现WPF的类定义中满是这些玩意,比如我们看一个TextBlock。
这些Property为后缀的都是叫做依赖属性,不过依赖属性这些东西深究起来内容还是比较多的,不过我还是讲究应用方面,有时候我们
可能有这样的需求,就是希望能在TextBlock上显示当前时间,这时我们就可以扩展TextBlock,在其中增加一个TimeProperty的依赖
属性来显示当前时间。
2 using System.Collections.G
3 using System.L
4 using System.T
5 using System.W
6 using System.Windows.C
7 using System.Windows.D
8 using System.Windows.D
9 using System.Windows.I
<SPAN style="COLOR: # using System.Windows.M
<SPAN style="COLOR: # using System.Windows.Media.I
<SPAN style="COLOR: # using System.Windows.N
<SPAN style="COLOR: # using System.Windows.S
<SPAN style="COLOR: #
<SPAN style="COLOR: # namespace WpfApplication12
<SPAN style="COLOR: # {
<SPAN style="COLOR: #
/// &summary&
<SPAN style="COLOR: #
/// MainWindow.xaml 的交互逻辑
<SPAN style="COLOR: #
/// &/summary&
<SPAN style="COLOR: #
public partial class MainWindow : Window
<SPAN style="COLOR: #
<SPAN style="COLOR: #
public MainWindow()
<SPAN style="COLOR: #
<SPAN style="COLOR: #
InitializeComponent();
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
public class CustomTextBlock : TextBlock
<SPAN style="COLOR: #
<SPAN style="COLOR: #
//自定义一个依赖项属性
<SPAN style="COLOR: #
public static DependencyProperty TimeProperty = DependencyProperty.Register("Timer", typeof(DateTime),
<SPAN style="COLOR: #
typeof(CustomTextBlock),
<SPAN style="COLOR: #
new PropertyMetadata(DateTime.Now, OnTimerPropertyChanged),
<SPAN style="COLOR: #
ValidateTimeValue);
<SPAN style="COLOR: #
/// &summary&
<SPAN style="COLOR: #
/// 对依赖属性进行设置值
<SPAN style="COLOR: #
/// &/summary&
<SPAN style="COLOR: #
public DateTime Time
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
//获取当前属性值
<SPAN style="COLOR: #
return (DateTime)GetValue(TimeProperty);
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
//给当前的属性赋值
<SPAN style="COLOR: #
SetValue(TimeProperty, value);
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
static void OnTimerPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
static bool ValidateTimeValue(object obj)
<SPAN style="COLOR: #
<SPAN style="COLOR: #
DateTime dt = (DateTime)
<SPAN style="COLOR: #
<SPAN style="COLOR: #
if (dt.Year & <SPAN style="COLOR: #90 && dt.Year & <SPAN style="COLOR: #00)
<SPAN style="COLOR: #
return true;
<SPAN style="COLOR: #
return false;
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: #
<SPAN style="COLOR: # }
<SPAN style="COLOR: # &Window x:Class="WpfApplication12.MainWindow"
<SPAN style="COLOR: #
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
<SPAN style="COLOR: #
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
<SPAN style="COLOR: #
xmlns:local="clr-namespace:WpfApplication12"
<SPAN style="COLOR: #
Title="MainWindow" Height="350" Width="525"&
<SPAN style="COLOR: #
<SPAN style="COLOR: #
&local:CustomTextBlock Text="{Binding RelativeSource={RelativeSource Self}, Path=Timer}"/&
<SPAN style="COLOR: #
<SPAN style="COLOR: # &/Window&
最后感谢一直关注此系列的朋友,希望你们有一丝收获。
TA的推荐TA的最新馆藏[转]&
喜欢该文的人也喜欢清除回答草稿
&&&您需要以后才能回答,未注册用户请先。匿名用户不能发表回复!|

我要回帖

更多关于 c 使用资源文件 的文章

 

随机推荐