In WinForms, when creating an element, we could just click on it - and the studio created an event handler for this element, for example
private void Button1_Click(object sender, RoutedEventArgs e) { } It was enough to just enter
Button1.Text = "ΠΠΎΠΌΠ΅Π½ΡΠ»ΠΈ ΡΠ΅ΠΊΡΡ ΠΊΠ½ΠΎΠΏΠΊΠΈ" And everything would work. But in the UWP application, when you click on the same button, the studio creates the same handler, but calls it
private void Button_Click(object sender, RoutedEventArgs e) { } And now turn to the interface element can not be. Is that in the very Xaml-e write the name (by default it is not) and already refer to it
<Button Content="Button" **Name="btn1"** HorizontalAlignment="Left" Margin="177,85,0,0" VerticalAlignment="Top" Height="123" Width="264" Click="Button_Click"/> And the button itself has no text attribute. There are even
btn1.FontSize And there is no text. In general, please explain for those transferring from WinForms - why did these things be removed, and what was put to them for replacement?