Click here to Skip to main content
15,885,278 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Application download error in XBAP application after deploying the application Pin
Richard Deeming21-Sep-16 6:32
mveRichard Deeming21-Sep-16 6:32 
GeneralRe: Application download error in XBAP application after deploying the application Pin
indian14321-Sep-16 6:48
indian14321-Sep-16 6:48 
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 
I have a situation where I am trying to change the visibility of StackPanels in a child UserControl from a button in the parent window. I created a custom class below that holds a static reference to the UserControl value and in the UserControl View constructor the user control value is assigned to the static EditWindow class uc static value. Now what I am trying to do is hide and show StackPanels in the child UserControl view the button in the parent window is clicked. When the button is clicked the StackPanels are not changing from Collapsed to Visible. All of the code is below:

EditWindow.cs

public static class EditWindow
{
    public static string buttonString;
    public static Button button;

    // This is the UserControl
    public static View.ApplicationInfoView uc;

}

// UserControl as a View in the parent window:

<v:ApplicationInfoView />

ApplicationInfoView StackPanels

<StackPanel Name="Sp1">

<StackPanel Name="Sp2">

<StackPanel Name="Sp2">

// UserControl - ApplicationInfoView in the constructor

EditWindow.uc = this;

// Button Click event in the Parent Window

private void btnEdit_Click(object sender, RoutedEventArgs)
{
    EditWindow.uc.editAppInfo();
}

// editAppInfo method in the UserControl -  //ApplicationInfoView 

editAppInfo()
{
    EditWindow.uc.sp1.Visibility = Visibility.Collapsed;
    EditWindow.uc.sp2.Visibility = Visibility.Visible;
    EditWindow.uc.sp3.Visibility = Visibility.Visibile;
}

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 
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 

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.