$ 0 0 Why using Loaded if you can call SetDialogWidthBasedOnContent directly after InitializeComponent()?