Click here to Skip to main content
15,914,221 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Confused about MarkupExtension class reference in XAML Pin
Pete O'Hanlon9-Jul-14 5:55
mvePete O'Hanlon9-Jul-14 5:55 
GeneralRe: Confused about MarkupExtension class reference in XAML Pin
Richard Deeming9-Jul-14 8:01
mveRichard Deeming9-Jul-14 8:01 
GeneralRe: Confused about MarkupExtension class reference in XAML Pin
Pete O'Hanlon9-Jul-14 8:33
mvePete O'Hanlon9-Jul-14 8:33 
QuestionNeed some idea for resizing my control Pin
Super Lloyd8-Jul-14 4:22
Super Lloyd8-Jul-14 4:22 
QuestionShow items in multiple columns Pin
pjank423-Jul-14 22:06
pjank423-Jul-14 22:06 
AnswerRe: Show items in multiple columns Pin
Pete O'Hanlon3-Jul-14 23:03
mvePete O'Hanlon3-Jul-14 23:03 
GeneralRe: Show items in multiple columns Pin
pjank424-Jul-14 5:26
pjank424-Jul-14 5:26 
QuestionMultipass MeasureOverride() not calculating updated items size (added code sample) Pin
Super Lloyd2-Jul-14 3:50
Super Lloyd2-Jul-14 3:50 
QuestionDraw a rectangular box Pin
Subin Mavunkal1-Jul-14 23:24
Subin Mavunkal1-Jul-14 23:24 
AnswerRe: Draw a rectangular box Pin
Matt T Heffron2-Jul-14 13:53
professionalMatt T Heffron2-Jul-14 13:53 
QuestionXAML Pin
Member 97193591-Jul-14 22:21
Member 97193591-Jul-14 22:21 
AnswerRe: XAML Pin
Pete O'Hanlon1-Jul-14 22:55
mvePete O'Hanlon1-Jul-14 22:55 
QuestionWPF Expander Problem Pin
Kevin Marois1-Jul-14 13:49
professionalKevin Marois1-Jul-14 13:49 
AnswerRe: WPF Expander Problem Pin
Pete O'Hanlon1-Jul-14 19:11
mvePete O'Hanlon1-Jul-14 19:11 
QuestionWPF - PRism Framework Pin
Muhammed Nigil29-Jun-14 23:36
professionalMuhammed Nigil29-Jun-14 23:36 
AnswerRe: WPF - PRism Framework Pin
Pete O'Hanlon30-Jun-14 0:17
mvePete O'Hanlon30-Jun-14 0:17 
GeneralRe: WPF - PRism Framework Pin
Muhammed Nigil30-Jun-14 1:00
professionalMuhammed Nigil30-Jun-14 1:00 
GeneralRe: WPF - PRism Framework Pin
Pete O'Hanlon30-Jun-14 3:03
mvePete O'Hanlon30-Jun-14 3:03 
GeneralRe: WPF - PRism Framework Pin
Muhammed Nigil30-Jun-14 18:56
professionalMuhammed Nigil30-Jun-14 18:56 
GeneralRe: WPF - PRism Framework Pin
Muhammed Nigil30-Jun-14 19:26
professionalMuhammed Nigil30-Jun-14 19:26 
QuestionHow to display from nested usercontrol another usercontrol class on button click event? Pin
LAPEC29-Jun-14 7:12
LAPEC29-Jun-14 7:12 
Hello everyone

In my WPF project I have created a UserControl (this is called Applic.xaml), and within this usercontrol I have placed a nested UserControl (this is called PasswordScreen.xaml). Here is the xaml design code of Applic.xaml usercontrol:

XML
<UserControl xmlns:my2="clr-namespace:iPosCloud.com.iposcloud.uiC_.views"
             x:Class="iPosCloud.com.iposcloud.main.Applic"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:my0="clr-namespace:iPosCloud.com.iposcloud.main"
             xmlns:Intersoft="http://intersoft.clientui.com/schemas"
             xmlns:my1="clr-namespace:Intersoft.Client.UI.Controls;assembly=Intersoft.Client.UI.Controls"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d" 
             d:DesignHeight="800" d:DesignWidth="1024" xmlns:my="http://schemas.microsoft.com/surface/2008">
    
    <UserControl.Background>
        <ImageBrush ImageSource="/iPosCloud;component/images/HoneyComb.png" Stretch="Fill" TileMode="Tile" Viewport="0,0,46,25" ViewportUnits="Absolute" />
    </UserControl.Background>
    <UserControl.Resources>
        <DropShadowEffect x:Key="DropShadowEffect" ShadowDepth="0.1" Direction="360" BlurRadius="3" Opacity=".5" />
        
    </UserControl.Resources>
 
    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Name="MainGridApplic"> 
        <Border BorderThickness="2" HorizontalAlignment="Left" Name="border1" VerticalAlignment="Stretch" Margin="4" BorderBrush="{x:Null}">
            <Border.BitmapEffect>
                <DropShadowBitmapEffect Color="Black" Direction="360" ShadowDepth="10" Opacity=".5" Softness="9" />
            </Border.BitmapEffect>
            <Intersoft:UXGridPanel Margin="2" Column="1" Row="1" ItemHeight="220" ItemWidth="1190" Name="UXGridPanelLeft">
                <Image Name="image1" Source="/iPosCloud;component/images/Logo.png" Width="1000" HorizontalAlignment="Left" />
            </Intersoft:UXGridPanel>
        </Border>
        
            <Grid Margin="2" HorizontalAlignment="Right">
                <my2:PasswordScreen />  "HERE IS THE UserControl THAT I PLACED..."
            </Grid>
        
    </Grid>
</UserControl>


In PasswordScreen.xaml usercontrol there is a button (called Login). On the click event when clicked, I want to call another xmal file called SwitchboardView.xaml and display it within the (Applic.xaml usercontrol) but it is not firing nothing and the code behind this button is:

C#
private void btnLogin_Click(object sender, RoutedEventArgs e)
{
            SwitchboardView sbv = new SwitchboardView();
            
            Applic ap = new Applic();
            ap.MainGridApplic.Children.Add(sbv);    
}


Could someone please help me solve this problem with the sample of code (what am I doing wrong...)

Kind regards

Lapeci
QuestionHow to Display .aspx page in SilverlightWeb Application Pin
RavitejaPammi28-Jun-14 5:22
RavitejaPammi28-Jun-14 5:22 
Questionsilverlight Pin
Member 1087962427-Jun-14 19:40
Member 1087962427-Jun-14 19:40 
AnswerRe: silverlight Pin
Pete O'Hanlon29-Jun-14 6:51
mvePete O'Hanlon29-Jun-14 6:51 
GeneralRe: silverlight Pin
Jammer30-Jun-14 23:32
Jammer30-Jun-14 23:32 

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.