private static IniStructure _iniObj;
public static IniStructure IniObj
{
get { return _iniObj; }
set { _iniObj = value; }
}
This IniObj contains a member called "Username".
add the application namespace to xaml
xmlns:myProj="clr-namespace:MyProjectNamespace"
add the binding to the property Text of a TextBox
Text="{Binding Source={x:Static myProj:App.IniObj}, Path=Username}"
Keine Kommentare:
Kommentar veröffentlichen