如何比较帧源? [英] How to compare Frame Sources?
本文介绍了如何比较帧源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
美好的一天,
如何将帧源导入IF?例如...
how can I get Frame source into IF? For example ...
IF (frmMy.Source == "name of somePage.xaml"){ then ... }
谢谢
推荐答案
目前不清楚您要的是什么.什么是镜框? frmMy是什么类型?来源是什么类型?似乎您正在尝试进行简单的字符串比较,因此如果要区分大小写,则相等就可以了.使用String.Compare(string1,string2,true)== 0表示不区分大小写的比较.
It is unclear what you're asking for. What is a frame? What type is frmMy? What type is source? It appears you're trying to do a simple string comparison so equality is fine if you want case sensitive. Use String.Compare(string1, string2, true) == 0 for case insensitive comparisons.
迈克尔·泰勒
http://www.michaeltaylorp3.net
Michael Taylor
http://www.michaeltaylorp3.net
这篇关于如何比较帧源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文