Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting window title with Caliburn.Micro

I have a view model that inherits the Screen class and a window which is a view for this model. Screen class has a property DisplayName and Caliburn.Micro binds the window title to this property but I want it to be bound to a dynamic resource which I add to the window in WindowManager.EnsureWindow override.

Is there any way to prevent Caliburn.Micro from automatically binding window title to the DisplayName property?

like image 281
0wl Avatar asked Jan 18 '26 13:01

0wl


1 Answers

Just create the binding manually on the window like this:

Title={DynamicResource .... }

Caliburn.Micro will respect your choice.

like image 198
Ibrahim Najjar Avatar answered Jan 21 '26 04:01

Ibrahim Najjar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!