WpfBaseApp3 ( WPF )

Objectives:
  • windows: Owner properties: You cannot set or get this property when a window is hosted in a browser
  • Bridging Stand Alone Class to XAML file
    • Start_Up [STAThread]: Application crate with Command Line Class Uses MainWindow.XAML for display
  • Code : MainWindow.xaml.txt, MainWindow.xaml.cs.txt
Step:1 Create a New project

I added an image in the project

Step:2 remove App.xaml

<Application x:Class="WpfBaseApp3.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>


Step:3 Edit Code in MamiWindow.xaml

Step:4 Edit Code in MainWindow.xaml.cs ( MainWindow.xaml.cs.txt

Step:5 Runtime Views