Question : How to evaluate image source?

Hi Experts,

I have a VB background and am trying to get familiar with C#. I've created an imagebox in a xaml file and assigned it source. Simple, and it displays as assigned at design time. And I've learned how to change the image at run time in the C# code-behind.

What I haven't been able to figure out is how to check the current value of my imagebox. I want to use the name or URI of the image in an IF statement.

I think this ought to be simple, but I've wasted 2 hours trying to figure it out, and I seem no closer than when I started.

JD

Answer : How to evaluate image source?

Consider using columns Id, Name, Description for Projects table.
Also you can remove prefix "Employee" in column names for Employee table.
And you can create Id column for EmployeeProjectHours table to avoid composite PK.
1:
2:
3:
4:
SELECT Date, EmployeeName, ProjectName, Hours 
FROM EmployeeProjectHours EPH
INNER JOIN Employees E ON E.EmployeeId = EPH.EmployeeId
INNER JOIN Projects P ON P.ProjectId = EPH.ProjectId
Random Solutions  
 
programming4us programming4us