private Control FindControlRecursive ( Control root, string id )
{
try
{
if (root.ID == id)
{
return root;
} //eof if
foreach (Control c in root.Controls)
{
Control t = FindControlRecursive ( c, id );
if (t != null)
{
return t;
} //eof if
} //eof foreach
} //eof try
catch (Exception e)
{
Debugger.WriteIf ( "The following Exception occured : \n" + e.Message );
this.Master.Error_label.ForeColor = System.Drawing.Color.Red;
this.Master.Error_label.Text = e.Message;
return success;
} //eof catch
return null;
} //eof FindControlRecursive
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
1 week ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!