using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace WpfApp1.pages { /// /// Interaction logic for Page2.xaml /// public partial class Page2 : Page { public Page2() { InitializeComponent(); //this.DataContext = this; } //public ContentControl LoadedXaml //{ // get => (ContentControl)XamlReader.Load(new FileStream("XamlWithControls.xaml", FileMode.Open)); //} private void Bt_Explain_MouseEnter(object sender, MouseEventArgs e) { TB_explain.Visibility = Visibility.Visible; } private void Bt_Explain_MouseLeave(object sender, MouseEventArgs e) { TB_explain.Visibility = Visibility.Hidden; } private void Bt_Preference_Click(object sender, RoutedEventArgs e) { TB_common.Foreground = new SolidColorBrush(Colors.Blue); } } }