From b18dc40f6d9e9f4cc16b2c292dcf2cea24dd6438 Mon Sep 17 00:00:00 2001 From: Andy Phillipson Date: Fri, 6 Jan 2012 14:48:21 -0500 Subject: [PATCH] Initial implementation for binding expressions in GUIMenuButton. --- mediaportal/Core/guilib/GUIMenuButton.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mediaportal/Core/guilib/GUIMenuButton.cs b/mediaportal/Core/guilib/GUIMenuButton.cs index 60980ce01a7..41b255d42d1 100644 --- a/mediaportal/Core/guilib/GUIMenuButton.cs +++ b/mediaportal/Core/guilib/GUIMenuButton.cs @@ -382,7 +382,7 @@ 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; @@ -390,6 +390,7 @@ private void bindToValue(string strValue) SetSelectedItemByLabel(strValue); } + /// /// Preallocates the control its DirectX resources. ///