I have seen in a system a separation of the methods in a partial
and the events in another in UserControl
and Window
as the example below:
"Pessoa.xaml.cs"
public partial class Pessoa: UserControl
{
//Construtor
//Somente Eventos Exp: Click dos botões
}
"Pessoa.cs"
public partial class Pessoa
{
//Somente Métodos Exp: Metodo Inserir
}
Is this correct to do?
Do you have any performance gains?
Or should it have been made just for organization?