Click here to Skip to main content
14,298,693 members

Silverlight / WPF

 
GeneralRe: Using a static class to call child Usercontrols functions from a parent window button click event Pin
holdorf19-Sep-16 8:36
memberholdorf19-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
memberindian14318-Sep-16 18:24 
QuestionHow can I call xbap from client browser Pin
indian14316-Sep-16 6:57
memberindian14316-Sep-16 6:57 
QuestionWPF Expander Pin
Itamar Gigi12-Sep-16 0:22
memberItamar Gigi12-Sep-16 0:22 
AnswerRe: WPF Expander Pin
Pete O'Hanlon12-Sep-16 2:22
protectorPete O'Hanlon12-Sep-16 2:22 
GeneralRe: WPF Expander Pin
Itamar Gigi12-Sep-16 2:36
memberItamar Gigi12-Sep-16 2:36 
Ok look this is the code of xaml i use event with command and also send the expander as parameter

<expander x:name="AExpander" margin="0,0,0,5" isexpanded="{Binding SectionAExpander}"
="" isenabled="{Binding WasAppNumEntered}" style="{StaticResource LsExpander}">
<behaviors:commandbehaviorcollection.behaviors>
<behaviors:behaviorbinding event="Expanded" command="{Binding OnExpandedCommand}" commandparameter="{Binding ElementName=AExpander}">

<expander.header>

and this is the viewmodel code:

1) this is the command that binded to xaml

public ICommand OnExpandedCommand
{
get
{
if (_onExpandedCommand == null)
{
_onExpandedCommand = new RelayCommand(OnExpanderOpened);
}

return _onExpandedCommand;
}
}

2)this is the function OnExpanderOpened:

private Expander expanderA;
private void OnExpanderOpened(object obj)
{
expanderA = (Expander)obj;

if (expanderA.IsExpanded)//show true
{
CanPrintDataEntry = true;//attached property that call to the print screen function
}
}

so you see expanderA show that it's opened but the render happens after it is true in the VM
and i get print screen with closed expander so is there any way to notify
the viewmodel AFTER xaml is rendered
thank you
GeneralRe: WPF Expander Pin
Pete O'Hanlon12-Sep-16 2:58
protectorPete O'Hanlon12-Sep-16 2:58 
GeneralRe: WPF Expander Pin
Itamar Gigi12-Sep-16 3:09
memberItamar Gigi12-Sep-16 3:09 
GeneralRe: WPF Expander Pin
Itamar Gigi12-Sep-16 2:39
memberItamar Gigi12-Sep-16 2:39 
GeneralRe: WPF Expander Pin
Itamar Gigi12-Sep-16 2:45
memberItamar Gigi12-Sep-16 2:45 
QuestionDynamic ContentControl > Style > DataTemplate....binding problem! Pin
Jayme658-Sep-16 6:46
memberJayme658-Sep-16 6:46 
QuestionListView SelectionChanged event not firing for the first already selected row. Pin
holdorf7-Sep-16 7:40
memberholdorf7-Sep-16 7:40 
AnswerRe: ListView SelectionChanged event not firing for the first already selected row. Pin
holdorf9-Sep-16 5:52
memberholdorf9-Sep-16 5:52 
QuestionWPF Listbox - How to keep the scrolling from changing the property? Pin
dbrenth6-Sep-16 3:49
memberdbrenth6-Sep-16 3:49 
QuestionDoes width and height need to be explicitly defined in ControlTemplate? Pin
James J M5-Sep-16 6:35
memberJames J M5-Sep-16 6:35 
QuestionComboBox - SelectedValue and SelectedItem Pin
Mycroft Holmes31-Aug-16 14:48
memberMycroft Holmes31-Aug-16 14:48 
QuestionWPF: Reading a document's bytes into a stream to store in a database table. Pin
holdorf31-Aug-16 10:47
memberholdorf31-Aug-16 10:47 
AnswerRe: WPF: Reading a document's bytes into a stream to store in a database table. Pin
Pete O'Hanlon31-Aug-16 11:16
protectorPete O'Hanlon31-Aug-16 11:16 
QuestionUWP. How to find out size of uwp Windows.Storage element? Pin
wind te26-Aug-16 22:42
memberwind te26-Aug-16 22:42 
AnswerRe: UWP. How to find out size of uwp Windows.Storage element? Pin
Pete O'Hanlon31-Aug-16 12:29
protectorPete O'Hanlon31-Aug-16 12:29 
QuestionClosing a static WPF Window from other Window instances. Pin
holdorf23-Aug-16 3:23
memberholdorf23-Aug-16 3:23 
AnswerRe: Closing a static WPF Window from other Window instances. Pin
holdorf23-Aug-16 4:09
memberholdorf23-Aug-16 4:09 
AnswerRe: Closing a static WPF Window from other Window instances. Pin
Richard Deeming23-Aug-16 4:27
mveRichard Deeming23-Aug-16 4:27 

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.