Click here to Skip to main content
15,887,775 members
Home / Discussions / C#
   

C#

 
QuestionHow to convert a text file in unicode format to excel file Pin
botngot8323-Jun-14 20:54
botngot8323-Jun-14 20:54 
SuggestionRe: How to convert a text file in unicode format to excel file Pin
Nathan Minier24-Jun-14 3:12
professionalNathan Minier24-Jun-14 3:12 
QuestionConnect to MySQL using MySQL Connector.NET and SharpSsh Pin
Jassim Rahma23-Jun-14 20:24
Jassim Rahma23-Jun-14 20:24 
QuestionSetting A Global Hot Key On A Second Form Pin
rfresh23-Jun-14 18:55
rfresh23-Jun-14 18:55 
AnswerRe: Setting A Global Hot Key On A Second Form Pin
Eddy Vluggen24-Jun-14 0:34
professionalEddy Vluggen24-Jun-14 0:34 
GeneralRe: Setting A Global Hot Key On A Second Form Pin
rfresh24-Jun-14 3:21
rfresh24-Jun-14 3:21 
GeneralRe: Setting A Global Hot Key On A Second Form Pin
Eddy Vluggen24-Jun-14 5:09
professionalEddy Vluggen24-Jun-14 5:09 
QuestionPlacing UserControl within a UserControl (WPF) Pin
LAPEC23-Jun-14 8:57
LAPEC23-Jun-14 8:57 
Hello everyone

In my WPF project I have created a UserControl (this is called Applic.xaml), and within this usercontrol I have placed another UserControl (this is called PasswordScreen.xaml). Here is the xaml design code:
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 there is a button (called Login). On click event when clicked I want to call another xmal file called SwitchboardView.xaml but 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 (what am I doing wrong...)

Kind regards

Lapeci
AnswerRe: Placing UserControl within a UserControl (WPF) Pin
OriginalGriff23-Jun-14 20:01
mveOriginalGriff23-Jun-14 20:01 
QuestionMultiple application installer in single Setup file Pin
Ashfaque Hussain23-Jun-14 4:55
Ashfaque Hussain23-Jun-14 4:55 
AnswerRe: Multiple application installer in single Setup file Pin
Maciej Los23-Jun-14 9:40
mveMaciej Los23-Jun-14 9:40 
GeneralRe: Multiple application installer in single Setup file Pin
Ashfaque Hussain23-Jun-14 19:47
Ashfaque Hussain23-Jun-14 19:47 
GeneralRe: Multiple application installer in single Setup file Pin
Ashfaque Hussain23-Jun-14 23:37
Ashfaque Hussain23-Jun-14 23:37 
QuestionAbout Error - unable to find a version of the runtime to run this application." error when try to open the application. Pin
Member 1084900023-Jun-14 2:25
Member 1084900023-Jun-14 2:25 
AnswerRe: About Error - unable to find a version of the runtime to run this application." error when try to open the application. Pin
OriginalGriff23-Jun-14 2:38
mveOriginalGriff23-Jun-14 2:38 
QuestionC sharp windows application development Pin
Galacha Kevin23-Jun-14 2:09
Galacha Kevin23-Jun-14 2:09 
AnswerRe: C sharp windows application development Pin
OriginalGriff23-Jun-14 2:32
mveOriginalGriff23-Jun-14 2:32 
AnswerRe: C sharp windows application development Pin
Kornfeld Eliyahu Peter23-Jun-14 2:59
professionalKornfeld Eliyahu Peter23-Jun-14 2:59 
AnswerRe: C sharp windows application development Pin
Swinkaran23-Jun-14 15:15
professionalSwinkaran23-Jun-14 15:15 
AnswerRe: C sharp windows application development Pin
V.23-Jun-14 20:12
professionalV.23-Jun-14 20:12 
QuestionCryptanalysis Algorithm RC5 Pin
KaKoten22-Jun-14 13:29
KaKoten22-Jun-14 13:29 
AnswerRe: Cryptanalysis Algorithm RC5 Pin
Manfred Rudolf Bihy22-Jun-14 15:15
professionalManfred Rudolf Bihy22-Jun-14 15:15 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
KaKoten22-Jun-14 15:35
KaKoten22-Jun-14 15:35 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
Dave Kreskowiak22-Jun-14 17:36
mveDave Kreskowiak22-Jun-14 17:36 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
KaKoten22-Jun-14 18:07
KaKoten22-Jun-14 18:07 

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.