Permalink
Browse files

Initial implementation for binding expressions in GUIMenuButton.

  • Loading branch information...
ajp8164 committed Jan 6, 2012
1 parent 6e94ca7 commit b18dc40f6d9e9f4cc16b2c292dcf2cea24dd6438
Showing with 2 additions and 1 deletion.
  1. +2 −1 mediaportal/Core/guilib/GUIMenuButton.cs
@@ -382,14 +382,15 @@ public override void FinalizeConstruction()
private void bindToValue(string strValue)
{
string strTemp = strValue;
- strValue = GUIPropertyManager.GetProperty(strValue);
+ strValue = GUIPropertyManager.Parse(strValue, GUIExpressionManager.ExpressionOptions.EVALUATE_ALWAYS);
if (strValue == null || strValue == "")
{
strValue = strTemp;
}
SetSelectedItemByLabel(strValue);
}
+
/// <summary>
/// Preallocates the control its DirectX resources.
/// </summary>

0 comments on commit b18dc40

Please sign in to comment.