Click here to Skip to main content
15,887,464 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Regarding WPF Pin
Pete O'Hanlon18-Feb-15 4:44
mvePete O'Hanlon18-Feb-15 4:44 
AnswerRe: Regarding WPF Pin
Abhinav S21-Feb-15 18:03
Abhinav S21-Feb-15 18:03 
AnswerRe: Regarding WPF Pin
Subramanyam Shankar17-Mar-15 1:01
professionalSubramanyam Shankar17-Mar-15 1:01 
AnswerRe: Regarding WPF Pin
Elegantly Wasted24-Mar-15 23:06
Elegantly Wasted24-Mar-15 23:06 
QuestionChanging a Label Content of Page 2 from Page in WPF Pin
Vimalsoft(Pty) Ltd17-Feb-15 2:04
professionalVimalsoft(Pty) Ltd17-Feb-15 2:04 
QuestionHow to call from Nested UserControl another UserControl Pin
LAPEC16-Feb-15 10:44
LAPEC16-Feb-15 10:44 
Answer[REPOST]: How to call from Nested UserControl another UserControl Pin
Richard Deeming16-Feb-15 11:12
mveRichard Deeming16-Feb-15 11:12 
AnswerRe: How to call from Nested UserControl another UserControl Pin
Elegantly Wasted24-Mar-15 23:53
Elegantly Wasted24-Mar-15 23:53 
Hi Roni,

I created a WPF with nested controls and its working fine, what i did was

Created 4 UserControls naming - UC1, UC2, UC3, UC4

As per the scenario stated in the question a UserControl is nested in another

The code is as below :-
UC1 XAML:-

<usercontrol x:class="TestWPF.Views.UC1"
="" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlnsBig Grin | :-D ="http://schemas.microsoft.com/expression/blend/2008" mc:ignorable="d" d:designheight="300" d:designwidth="300">
<grid x:name="MainGrid">




UC1 CODE BEHIND:

private void Button_Click(object sender, RoutedEventArgs e)
{
this.MainGrid.Children.Clear();
this.MainGrid.Children.Add(new UC2());
}


UC2 XAML:-
<usercontrol x:class="TestWPF.Views.UC2"
="" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlnsBig Grin | :-D ="http://schemas.microsoft.com/expression/blend/2008" mc:ignorable="d" d:designheight="300" d:designwidth="300">
<grid x:name="MainGrid">




UC2 CODE BEHIND:

private void Button_Click(object sender, RoutedEventArgs e)
{
this.MainGrid.Children.Clear();
this.MainGrid.Children.Add(new UC3());
}

Similary for UC3 and UC4

Try it let me if any problems
QuestionXamOutlookBar and XamDataTree. Pin
micromortu16-Feb-15 3:33
micromortu16-Feb-15 3:33 
QuestionHow to convert byte arrays to excel and download it in silverlight ? Pin
Member 1088301311-Feb-15 3:56
Member 1088301311-Feb-15 3:56 
AnswerRe: How to convert byte arrays to excel and download it in silverlight ? Pin
Kenneth Haugland11-Feb-15 11:56
mvaKenneth Haugland11-Feb-15 11:56 
AnswerRe: How to convert byte arrays to excel and download it in silverlight ? Pin
Richard MacCutchan11-Feb-15 21:45
mveRichard MacCutchan11-Feb-15 21:45 
GeneralRe: How to convert byte arrays to excel and download it in silverlight ? Pin
manchanx8-Mar-15 14:04
professionalmanchanx8-Mar-15 14:04 
GeneralRe: How to convert byte arrays to excel and download it in silverlight ? Pin
Richard MacCutchan8-Mar-15 22:27
mveRichard MacCutchan8-Mar-15 22:27 
GeneralRe: How to convert byte arrays to excel and download it in silverlight ? Pin
manchanx9-Mar-15 5:20
professionalmanchanx9-Mar-15 5:20 
GeneralRe: How to convert byte arrays to excel and download it in silverlight ? Pin
Richard MacCutchan9-Mar-15 5:22
mveRichard MacCutchan9-Mar-15 5:22 
GeneralRe: How to convert byte arrays to excel and download it in silverlight ? Pin
manchanx9-Mar-15 5:30
professionalmanchanx9-Mar-15 5:30 
GeneralRe: How to convert byte arrays to excel and download it in silverlight ? Pin
Richard MacCutchan9-Mar-15 5:35
mveRichard MacCutchan9-Mar-15 5:35 
GeneralRe: How to convert byte arrays to excel and download it in silverlight ? Pin
manchanx9-Mar-15 7:49
professionalmanchanx9-Mar-15 7:49 
GeneralRe: How to convert byte arrays to excel and download it in silverlight ? Pin
Richard MacCutchan9-Mar-15 7:53
mveRichard MacCutchan9-Mar-15 7:53 
GeneralRe: How to convert byte arrays to excel and download it in silverlight ? Pin
manchanx9-Mar-15 10:18
professionalmanchanx9-Mar-15 10:18 
QuestionMove Rectangle with TranslateTransform Pin
Kenneth Haugland4-Feb-15 2:36
mvaKenneth Haugland4-Feb-15 2:36 
AnswerRe: Move Rectangle with TranslateTransform Pin
Kenneth Haugland4-Feb-15 2:59
mvaKenneth Haugland4-Feb-15 2:59 
QuestionA Calendar day to drag and drop Pin
Zorig. A.1-Feb-15 1:45
Zorig. A.1-Feb-15 1:45 
AnswerRe: A Calendar day to drag and drop Pin
Mycroft Holmes1-Feb-15 11:53
professionalMycroft Holmes1-Feb-15 11:53 

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.