Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,
May be this is very simple but I am not able to get it. I have simple Common class as below

C#
namespace Project.source
{
  class GlobalClass
        {
            public int TextBoxSize { get {return 30;}}
            public int TextMaxWidth {get {return 50;}}
            //it continues .... 
        }
}


Now in mainPage.xaml I need to bind it to my TextBox

C#
<TextBox Name="txtInput"  FontSize="{binding ?????????}" width="{binding ????}" />


Also Please note that namespace of mainPage.xaml is only Project
How can I Bind textbox from other class ?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900