Hello Dilyan,
Thanks for your answer. I think we can live with that approach for now.
Best regards,
Markus (representative for Robert)
private
void
OpenFialog_Closed(
object
sender, WindowClosedEventArgs e)
{
var viewModel =
this
.openDialog.DataContext;
this
.openDialog.FilterIndex = (
int
)viewModel.GetType().GetProperty(
"FilterIndex"
).GetValue(viewModel) + 1;
var layout = (LayoutConfigurationModel)viewModel.GetType().GetProperty(
"SelectedLayout"
).GetValue(viewModel);
this
.openDialog.InitialSelectedLayout = (LayoutType)layout.LayoutType;
}