Windows 10: I want to map main window with its sub window in WPF

Discus and support I want to map main window with its sub window in WPF in Windows 10 Software and Apps to solve the problem; Hello all, i am creating GUI with main window and sub window. Here in this project i have a main window in which there are 2 tabs inside that i... Discussion in 'Windows 10 Software and Apps' started by ChaithanyaNayak, Jul 27, 2018.

  1. I want to map main window with its sub window in WPF


    Hello all,


    i am creating GUI with main window and sub window. Here in this project i have a main window in which there are 2 tabs inside that i have buttons. now when i press that button it should open up a new window,here i want to map both main window and sub window together using xaml only. I have gone through the examples in which there mapping in code but i want to do same thing xaml instead of code. here is my code

    /************************************MAIN WINDOW*************************************/

    <Window x:Class="SIOCONN_GUI.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:SIOCONN_GUI"
    Title="MAIN WINDOW"
    mc:Ignorable="d" Height="770" Width="965" WindowStartupLocation="CenterOwner" Icon="favicon (4).ico" Visibility="Visible" Cursor="Arrow" >
    <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
    <Grid>
    <!-- CredentialsProvider="CREATE WINDOW"/>-->
    </Grid>
    <Grid Margin="0,0,476,0">
    <Menu VerticalAlignment="Top" HorizontalAlignment="Left" Cursor="Arrow" >
    <MenuItem Header="File" FontWeight="Bold" >
    <MenuItem Header="Save"/>
    <MenuItem Header="Load"/>
    <MenuItem Header="Exit" Click="Exit_Click"/>
    </MenuItem>
    <MenuItem Header="Connect" FontWeight="Bold">
    <MenuItem Header="Connect SIOCONN"/>
    </MenuItem>
    <MenuItem Header=" About" FontWeight="Bold" Width="56">
    <MenuItem Header="Help"/>
    </MenuItem>
    </Menu>
    </Grid>
    <TabControl Height="724" >
    <!-- <TabItem Header="CAN PRT" Width="130" FontWeight="Bold">
    <Grid Margin="0,0,0,0">
    <Grid.ColumnDefinitions>
    <ColumnDefinition></ColumnDefinition>
    <ColumnDefinition></ColumnDefinition>
    <ColumnDefinition></ColumnDefinition>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
    <RowDefinition Height="99"></RowDefinition>
    <RowDefinition Height="2"/>
    </Grid.RowDefinitions>
    <Button Content="CREATE EVENT" Grid.Row="0" Grid.Column="0" Margin="80,20,80,33" FontWeight="Normal" />
    <Button Content="EDIT EVENT" Grid.Row="0" Grid.Column="1" Margin="80,20,80,33" FontWeight="Normal"/>
    <Button Content="DELETE EVENT" Grid.Row="0" Grid.Column="2" Margin="80,20,80,33" FontWeight="Normal"/>
    </Grid>
    </TabItem>-->
    <TabItem Header="CAN &lt;--&gt; PRT" Width="130" FontWeight="Bold" Background="{x:Null}" >
    <Grid Margin="0,0,0,0">
    <Grid.ColumnDefinitions>
    <ColumnDefinition></ColumnDefinition>
    <ColumnDefinition></ColumnDefinition>
    <ColumnDefinition></ColumnDefinition>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
    <RowDefinition></RowDefinition>
    </Grid.RowDefinitions>
    <Button Content="CREATE EVENT" Grid.Row="0" Grid.Column="1" Margin="60,630,60,25" FontWeight="Normal" VerticalAlignment="Center" Height="40" >
    </Button>
    <!--<Button Content="EDIT EVENT" Grid.Row="0" Grid.Column="1" Margin="80,20,80,35" FontWeight="Normal"/>
    <Button Content="DELETE EVENT" Grid.Row="0" Grid.Column="2" Margin="80,20,80,35" FontWeight="Normal"/>-->
    </Grid>
    </TabItem>
    <TabItem Header="PERIPHERY CONFIG" Width="130" FontWeight="Bold" Background="{x:Null}">
    <Grid Margin="0,0,0,0">
    <Grid.ColumnDefinitions>
    <ColumnDefinition></ColumnDefinition>
    <ColumnDefinition></ColumnDefinition>
    <ColumnDefinition></ColumnDefinition>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
    <RowDefinition Height="100"></RowDefinition>
    </Grid.RowDefinitions>
    <Button Content="UART CONFIG" Grid.Row="0" Grid.Column="0" Margin="80,20,80,35" FontWeight="Normal"/>
    <Button Content="CAN CONFIG" Grid.Row="0" Grid.Column="1" Margin="80,20,80,35" FontWeight="Normal"/>
    <Button Content="PWM CONFIG" Grid.Row="0" Grid.Column="2" Margin="80,20,80,35" FontWeight="Normal"/>
    </Grid>
    </TabItem>
    </TabControl>
    </StackPanel>
    </Window>

    /**********************************************SUB WINDOW*************************************/

    <Window x:Class="SIOCONN_GUI.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:SIOCONN_GUI"
    mc:Ignorable="d"
    Title="CREATE WINDOW" Height="450" Width="800">
    <StackPanel>
    <Grid>
    <!--<m:Map/>-->
    </Grid>
    <Grid>
    <Grid.ColumnDefinitions>
    <ColumnDefinition></ColumnDefinition>
    <ColumnDefinition></ColumnDefinition>
    <ColumnDefinition></ColumnDefinition>
    <ColumnDefinition></ColumnDefinition>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
    <RowDefinition></RowDefinition>
    <RowDefinition></RowDefinition>
    <RowDefinition></RowDefinition>
    <RowDefinition></RowDefinition>
    <RowDefinition></RowDefinition>
    <RowDefinition></RowDefinition>
    <RowDefinition></RowDefinition>
    <RowDefinition></RowDefinition>
    </Grid.RowDefinitions>
    <TextBox Grid.Column="0" Grid.Row="0" Margin="45,10"/>
    </Grid>
    </StackPanel>
    </Window>


    Moved from: Windows Insider Program / Program announcements and registration

    :)
     
    ChaithanyaNayak, Jul 27, 2018
    #1
  2. MrSeanKon Win User

    Enable visual styles in WPF application

    EUREKA!

    Steps:
    1) I made a Windows form (HostWPF namespace, Form1 is the form).
    2) I added a reference => System.Windows.Forms.Integration which contains classes that enable interoperation between the Windows Forms and WPF technologies. When you use System.Windows.Forms.Integration classes, you can host Windows Forms controls on WPF pages, and WPF elements in Windows Forms-based applications.
    3) Then added a control (damn Vi$ual $tudio 2010 does not allow to add a WPF window) but after adding I edited the XMAL code in the way I want *Wink I want to map main window with its sub window in WPF ;)
    4) The next steps are simple. Download the first attachment. But => see the photo.
    It crashes!!!!!
    5) Finally???
    We must use System.Windows.Forms.Application.Exit(); command because the WPF window behaves like a classical Windows Form.
    Download the second attachment. Note that the Windows form's name is Initial.
    Enjoy!
     
    MrSeanKon, Jul 27, 2018
    #2
  3. MrSeanKon Win User
    Terminate WPF/Windows forms applications....

    WPF has no concept of MDI applications. In fact Microsoft is trying to discourage any one using that form of application. I'm new to WPF and I really like MDI applications. It allows me to move quickly between windows and compare the content of different windows. Furthermore, sometime the content of one window is useful for another so I can copy and paste. I think it's a great user experience for working mode.
    To continue, download the attachment!
    It includes two folders, they are very simple code.
    The point is how you can terminate an application (Windows Form and WPF).
     
    MrSeanKon, Jul 27, 2018
    #3
  4. I want to map main window with its sub window in WPF

    windows xp installation and dual core am

    could someone please list the steps they follow to install windows with a dual core processor and windows xp service pack to. I'm reletively new to amd dual core and i feel i'm missing a step. All help will be appreciated. thanx
     
    exodusprime1337, Jul 27, 2018
    #4
Thema:

I want to map main window with its sub window in WPF

Loading...
  1. I want to map main window with its sub window in WPF - Similar Threads - map main window

  2. I want windows not to remember credential of specific mapped network share

    in Windows 10 Gaming
    I want windows not to remember credential of specific mapped network share: HiI want to remove "Remember my credentials" checkbox just for certain server Lets say servery when connecting.I want windows to always ask user name and password when connecting specific server shared folder\\servery\folder1. Rest of the servers credential password must...
  3. I want windows not to remember credential of specific mapped network share

    in Windows 10 Software and Apps
    I want windows not to remember credential of specific mapped network share: HiI want to remove "Remember my credentials" checkbox just for certain server Lets say servery when connecting.I want windows to always ask user name and password when connecting specific server shared folder\\servery\folder1. Rest of the servers credential password must...
  4. I want windows not to remember credential of specific mapped network share

    in Windows 10 Network and Sharing
    I want windows not to remember credential of specific mapped network share: HiI want to remove "Remember my credentials" checkbox just for certain server Lets say servery when connecting.I want windows to always ask user name and password when connecting specific server shared folder\\servery\folder1. Rest of the servers credential password must...
  5. wondershare526 folder and all its sub files

    in Windows 10 Software and Apps
    wondershare526 folder and all its sub files: why i am not allowed to delete the wondershare526 folder in the registry? i have deleted all other wondershare files from the registry. please help clarify, thank you....
  6. I want to make an account the main account

    in Windows 10 Ask Insider
    I want to make an account the main account: So I got a PC that used to be my brother’s and my mom said I can’t remove his account from the PC. I want my Microsoft account to be the main account on the PC, but I can’t remove his account. How do I do so? submitted by /u/Marcapwier64 [link] [comments]...
  7. is there a way to move the main window if a sub window appeared?

    in Windows 10 Ask Insider
    is there a way to move the main window if a sub window appeared?: like if i drag and drop from a program to another i cant move the window out of the way. same with those windows like clicking driver properties in a driver window submitted by /u/mrissaoussama [link] [comments]...
  8. Randomly some files in a folder in a sub folder of the main folder are moved to the main...

    in Windows 10 Network and Sharing
    Randomly some files in a folder in a sub folder of the main folder are moved to the main...: I have a folder named Music, with several subfolders and the subfolder has further sub folders. e.g. Music - The rest - Artie Shaw. For some reason the "Artie Shaw" folder copies itself to "Music" (from "The rest") and moves a few of the files from Artie Shaw. The original...
  9. sub folders & sub files from personal main folder turned to Shortcut with all contents gone...

    in Windows 10 Installation and Upgrade
    sub folders & sub files from personal main folder turned to Shortcut with all contents gone...: Dear MS Expert, I've done a main folder moved (as per advice) over to OneDrive production past 2 days (Sep 11th) as backup prior to Windows 10 upgrade. I'm pretty sure all the sub folders & sub files does exist upon the move & this has been double triple etc checks the...
  10. Sub folders "sort by" affects main folder and vice versa

    in Windows 10 Support
    Sub folders "sort by" affects main folder and vice versa: So this has been bugging me ever since Windows 10 rolled out in our country. If I recall correctly, in windows 7, folder sorting could be independent. If I sorted a sub folder for date modified and the main folder was originally sorted for name, the sorting of the sub folder...

Users found this page by searching for:

  1. wpf xmlns:local= two folders