Click here to Skip to main content
15,886,799 members
Home / Discussions / WPF
   

WPF

 
QuestionWPF: Unable to set MouseOver effect for ComboBox Pin
All Time Programming13-Sep-11 0:39
All Time Programming13-Sep-11 0:39 
AnswerRe: WPF: Unable to set MouseOver effect for ComboBox Pin
Ian Shlasko14-Sep-11 4:40
Ian Shlasko14-Sep-11 4:40 
QuestionInfinite Scrolling in Canvas Pin
Praveen Raghuvanshi12-Sep-11 2:40
professionalPraveen Raghuvanshi12-Sep-11 2:40 
AnswerRe: Infinite Scrolling in Canvas Pin
tom-englert19-Sep-11 20:42
tom-englert19-Sep-11 20:42 
GeneralUser must not be able to open same site again in other browser or tab Pin
Satish Pai8-Sep-11 7:33
Satish Pai8-Sep-11 7:33 
GeneralRe: User must not be able to open same site again in other browser or tab Pin
Pete O'Hanlon8-Sep-11 9:10
mvePete O'Hanlon8-Sep-11 9:10 
AnswerRe: User must not be able to open same site again in other browser or tab Pin
Simon Bang Terkildsen9-Sep-11 9:08
Simon Bang Terkildsen9-Sep-11 9:08 
QuestionHow to place a multiple window controls inside one window control in WPF Pin
Rocky236-Sep-11 1:52
Rocky236-Sep-11 1:52 
Hi,
Can anyone tell me how to place a multiple window controls inside one window controls in WPF.
I have to use 4 window controls or some controls like that inside one window control, so that later i can provide the drag and drop functionality of that sub window controls for the user.
I have written a code like this, it is showing exactly what i want at design time, but at runtime it is throwing xmlparseexception, i dint get the reason for this, can u tell me what is the wrong in the below code or is it possible to place a multiple window controls inside one window control..

This is my code..


XML
<Window x:Class="TWS_Demo_Project.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="TWS" Height="Auto" Width="Auto">

    <Grid Height="Auto" Width="Auto">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>

        <Window Title="Order Entry" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="Auto" Width="Auto">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="30"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition Width="150"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="Name" Grid.Row="0" Grid.Column="0"/>
                <TextBox Name="txtname" Grid.Row="0" Grid.Column="1"/>
                <TextBlock Text="Password" Grid.Row="1" Grid.Column="0"/>
                <TextBox Name="txtpassword" Grid.Row="1" Grid.Column="1"/>
            </Grid>
        </Window>
        <Window Title="Parked Orders" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Top" Height="Auto" Width="Auto">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="30"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition Width="150"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="BrokerID" Grid.Row="0" Grid.Column="0"/>
                <TextBox Name="txtbrkid" Grid.Row="0" Grid.Column="1"/>
                <TextBlock Text="Country" Grid.Row="1" Grid.Column="0"/>
                <TextBox Name="txtcountry" Grid.Row="1" Grid.Column="1"/>
            </Grid>
        </Window>
        <Window Title="Pending Trades" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="Auto" Width="Auto">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="30"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition Width="150"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="Pending Trade Name" Grid.Row="0" Grid.Column="0"/>
                <TextBox Name="txtpndid" Grid.Row="0" Grid.Column="1"/>
                <TextBlock Text="Pending Trade Details" Grid.Row="1" Grid.Column="0"/>
                <TextBox Name="txtpnddetails" Grid.Row="1" Grid.Column="1"/>
            </Grid>
        </Window>
        <Window Title="Rejected Orders" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Top" Height="Auto" Width="Auto">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="30"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition Width="150"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="Rejected Feed" Grid.Row="0" Grid.Column="0"/>
                <TextBox Name="txtrjdfeed" Grid.Row="0" Grid.Column="1"/>
                <TextBlock Text="Rejection Reason" Grid.Row="1" Grid.Column="0"/>
                <TextBox Name="txtrjdreason" Grid.Row="1" Grid.Column="1"/>
            </Grid>
        </Window>
    </Grid>
</Window>

AnswerRe: How to place a multiple window controls inside one window control in WPF Pin
Wayne Gaylard6-Sep-11 2:13
professionalWayne Gaylard6-Sep-11 2:13 
GeneralRe: How to place a multiple window controls inside one window control in WPF Pin
Rocky236-Sep-11 2:47
Rocky236-Sep-11 2:47 
GeneralRe: How to place a multiple window controls inside one window control in WPF Pin
Pete O'Hanlon6-Sep-11 2:57
mvePete O'Hanlon6-Sep-11 2:57 
GeneralRe: How to place a multiple window controls inside one window control in WPF Pin
Wayne Gaylard6-Sep-11 3:00
professionalWayne Gaylard6-Sep-11 3:00 
AnswerRe: How to place a multiple window controls inside one window control in WPF Pin
Pete O'Hanlon6-Sep-11 2:15
mvePete O'Hanlon6-Sep-11 2:15 
QuestionWPF - basic data binding and "Save" x "Cancel changes" Pin
Member 10339075-Sep-11 5:33
Member 10339075-Sep-11 5:33 
AnswerRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Pete O'Hanlon5-Sep-11 5:40
mvePete O'Hanlon5-Sep-11 5:40 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
SledgeHammer019-Sep-11 10:01
SledgeHammer019-Sep-11 10:01 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
SledgeHammer019-Sep-11 10:46
SledgeHammer019-Sep-11 10:46 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
SledgeHammer019-Sep-11 11:14
SledgeHammer019-Sep-11 11:14 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
SledgeHammer019-Sep-11 12:47
SledgeHammer019-Sep-11 12:47 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Alisaunder12-Sep-11 6:32
Alisaunder12-Sep-11 6:32 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
SledgeHammer0112-Sep-11 6:44
SledgeHammer0112-Sep-11 6:44 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Member 103390713-Sep-11 22:47
Member 103390713-Sep-11 22:47 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Pete O'Hanlon13-Sep-11 22:59
mvePete O'Hanlon13-Sep-11 22:59 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Member 103390714-Sep-11 2:05
Member 103390714-Sep-11 2:05 
GeneralRe: WPF - basic data binding and "Save" x "Cancel changes" Pin
Pete O'Hanlon14-Sep-11 2:15
mvePete O'Hanlon14-Sep-11 2:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.