How do i access XAML control objects, such as a textbox's properties, from outside of the main partial window class?
For example, how would i change some properties of a TextBox who's named x:Name="MyTextBox" from the ServerC class? In other words, how can i, if possible, give the class ServerC permission to the XAML objects?
namespace LoginNS
{
public partial class LoginWindow : Window
{
public LoginWindow()
{
InitializeComponent();
}
}
public class ServerC
{
}
}