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

WPF

 
GeneralRe: Application download error in XBAP application after deploying the application Pin
Richard Deeming21-Sep-16 6:51
mveRichard Deeming21-Sep-16 6:51 
GeneralRe: Application download error in XBAP application after deploying the application Pin
indian14321-Sep-16 8:03
indian14321-Sep-16 8:03 
GeneralRe: Application download error in XBAP application after deploying the application Pin
Richard Deeming21-Sep-16 8:42
mveRichard Deeming21-Sep-16 8:42 
GeneralRe: Application download error in XBAP application after deploying the application Pin
indian14321-Sep-16 13:54
indian14321-Sep-16 13:54 
GeneralRe: Application download error in XBAP application after deploying the application Pin
Richard Deeming22-Sep-16 1:46
mveRichard Deeming22-Sep-16 1:46 
QuestionUsing a static class to call child Usercontrols functions from a parent window button click event Pin
Stephen Holdorf19-Sep-16 5:55
Stephen Holdorf19-Sep-16 5:55 
AnswerRe: Using a static class to call child Usercontrols functions from a parent window button click event Pin
Gerry Schmitz19-Sep-16 7:14
mveGerry Schmitz19-Sep-16 7:14 
GeneralRe: Using a static class to call child Usercontrols functions from a parent window button click event Pin
Stephen Holdorf19-Sep-16 8:36
Stephen Holdorf19-Sep-16 8:36 
I have now tried changing the way I am performing my task. Now in my child user control constructor I am loading the UserControl as follows:

// Remember EditWindow is a static class and uc is a static // public value of View.ApplicationInfoView which is the // UserControl that is a View with a base class of // UserControl.

EditWindow.uc = this;

And now calling the method the following on the parent window button click event:

// Remember the StackPanel spGrid is Collapsed onload
private void btn_click(object sender, RoutingEventArgs e)
{
EditWindow.uc.spGrid.Visibility = Visibility.Visible;
}

Now Here is my StackPanel on the child UserControl:

<StackPanel Name="spGrid" Grid.Column="0" Grid.ColumnSpan="4" Grid.Row="2">
    <Grid Name="Grid2">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="425" />
            <ColumnDefinition Width="425" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"  />
            <RowDefinition Height="75"  />
            <RowDefinition Height="75"  />
            <RowDefinition Height="75"  />
            <RowDefinition Height="75"  />
            <RowDefinition Height="75"  />
            <RowDefinition Height="75"  />
            <RowDefinition Height="75"  />
        </Grid.RowDefinitions>
        <Label Height="36" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" FontSize="16" Background="#FF004A78" Content="Identifying Documents" FontWeight="Bold" Foreground="White" Margin="0,0,0,0"/>
        <StackPanel Grid.Row="1" Grid.Column="0" >
            <Border BorderBrush="White" BorderThickness="3">
                <Border BorderBrush="Gray" BorderThickness="1">
                    <StackPanel Orientation="Vertical">
                        <StackPanel Orientation="Horizontal">
                            <StackPanel  Width="420"  x:Name="_Passport"   Margin="0,0,0,0" Height="65">
                                <StackPanel  Orientation="Horizontal">
                                    <TextBlock Height="45"  Width="Auto" FontWeight="Bold" Foreground="#FF004A78" FontSize="18" x:Name="Passport_TextBlock" Text="Passport"  TextAlignment="Left"/>
                                    <Image  Source="/Images/Attachments_button.jpg" Margin="180, 0, 0 ,0" MouseLeftButtonUp="Click_MouseLeftButtonUp" Name="PPTop"  Width="Auto"    Height="45"  />
                                    <Image  Source="/Images/Attachments_button.jpg" Margin="50, 0, 0 ,0" Name="PPBottom" Width="Auto"    Height="45"  />
                                </StackPanel>
                                <TextBlock  Height="20"  Width="Auto"  Foreground="#FF004A78" FontSize="12" TextWrapping="WrapWithOverflow" x:Name="Passport2_TextBlock" Text="(Color copy, top and bottom) Perferred           Passport Top    Passport Bottom"  TextAlignment="Left"/>
                            </StackPanel>
                        </StackPanel>

                    </StackPanel>
                </Border>
            </Border>
        </StackPanel>
        </StackPanel>
    </Grid>
</StackPanel>


Now, again the StackPanel I am trying to hide/show is Name="spGrid". It houses my Grid "Grid2". Now this StackPanel is housed in it's own Grid. Shown is the nested Grid. Also, I am only showing you only one of the rows in the nested Grid of StackPanel spGrid. The other rows have the same type of controls. Again I don't know why when my EditWindow static class's UserControl uc set's it's StackPanel spGrid to visible it stil stays hidden.
GeneralRe: Using a static class to call child Usercontrols functions from a parent window button click event Pin
Gerry Schmitz19-Sep-16 10:36
mveGerry Schmitz19-Sep-16 10:36 
GeneralRe: Using a static class to call child Usercontrols functions from a parent window button click event Pin
incipire12-Oct-16 9:06
professionalincipire12-Oct-16 9:06 
QuestionSilverlight listbox is keeping the focus on more than one items Pin
indian14318-Sep-16 18:24
indian14318-Sep-16 18:24 
QuestionHow can I call xbap from client browser Pin
indian14316-Sep-16 6:57
indian14316-Sep-16 6:57 
QuestionWPF Expander Pin
Itamar Gigi12-Sep-16 0:22
Itamar Gigi12-Sep-16 0:22 
AnswerRe: WPF Expander Pin
Pete O'Hanlon12-Sep-16 2:22
mvePete O'Hanlon12-Sep-16 2:22 
GeneralRe: WPF Expander Pin
Itamar Gigi12-Sep-16 2:36
Itamar Gigi12-Sep-16 2:36 
GeneralRe: WPF Expander Pin
Pete O'Hanlon12-Sep-16 2:58
mvePete O'Hanlon12-Sep-16 2:58 
GeneralRe: WPF Expander Pin
Itamar Gigi12-Sep-16 3:09
Itamar Gigi12-Sep-16 3:09 
GeneralRe: WPF Expander Pin
Itamar Gigi12-Sep-16 2:39
Itamar Gigi12-Sep-16 2:39 
GeneralRe: WPF Expander Pin
Itamar Gigi12-Sep-16 2:45
Itamar Gigi12-Sep-16 2:45 
QuestionDynamic ContentControl > Style > DataTemplate....binding problem! Pin
Jayme658-Sep-16 6:46
Jayme658-Sep-16 6:46 
QuestionListView SelectionChanged event not firing for the first already selected row. Pin
Stephen Holdorf7-Sep-16 7:40
Stephen Holdorf7-Sep-16 7:40 
AnswerRe: ListView SelectionChanged event not firing for the first already selected row. Pin
Stephen Holdorf9-Sep-16 5:52
Stephen Holdorf9-Sep-16 5:52 
QuestionWPF Listbox - How to keep the scrolling from changing the property? Pin
dbrenth6-Sep-16 3:49
dbrenth6-Sep-16 3:49 
QuestionDoes width and height need to be explicitly defined in ControlTemplate? Pin
Imagiv5-Sep-16 6:35
Imagiv5-Sep-16 6:35 
QuestionComboBox - SelectedValue and SelectedItem Pin
Mycroft Holmes31-Aug-16 14:48
professionalMycroft Holmes31-Aug-16 14:48 

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.