Singleton Class
public class SingletonManager : BindableAndDisposable
{
static public SingletonManager instance = new SingletonManager();
public Fusing_Model Current_ModelData { get; set; }
}
Current_ModelClass
public class Fusing_Model : BindableAndDisposable
{
private bool _IsUse_Func = false;
public bool IsUse_Func
{
get { return _IsUse_Func; }
set { SetValue(ref _IsUse_Func, value); }
}
}
XAML Code :
<telerik:RadGlyph Foreground="{Binding Source={x:Static local:SingletonManager.instance},Path=Current_ModelData.IsUse_Func, Converter={StaticResource ConnectionStatusColorConverter}}" />
I have several Classes that contain Classes and need to access their properties in the WPF Forms. I am trying to Bind properties of “IsUse_Func” to controls.
I don’t know what the problem is with XAML binding.
- Parentheses have been added to Path.
(Path=Current_ModelData.IsUse_Func)