0

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.

H.B.
  • 166,899
  • 29
  • 327
  • 400
Ievgen
  • 4,261
  • 7
  • 75
  • 124

1 Answers1

1

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.

Community
  • 1
  • 1
Lunivore
  • 17,277
  • 4
  • 47
  • 92
  • Those problems with design mode appears in winforms or in WPF also? – Ievgen Jan 20 '12 at 11:44
  • But this is strange because my application in this case works like wpf designer and why i cannot set for controls design mode? – Ievgen Jan 20 '12 at 11:49