Set DesignMode for my application

315 views Asked by At

I have application where i can change XAML file. For example: Move and resize controls.

Inside controls we have some complex code and use next check:

DesigerProperties.GetIsInDesignMode(this)

But this check is always false. How to set for application grid, page that we inside design mode?

Thanks.

1

There are 1 answers

2
Lunivore On BEST ANSWER

DesignMode isn't really designed to be set. It should be true when the application isn't running, and it's just the XAML being rendered, for instance in Visual Studio.

However, there have been bugs with it in Visual Studio anyway, so I don't think you'll have luck getting it working in another application.

The answers on this question provide a wide variety of ways of working independently of Design Mode, and you may find some of them more helpful.