private void ErrorRootIsNotFrame() { throw new Exception("The root visual is not an instance of the Frame class. If your root visual is not a Frame, please pass a Frame reference in the first parameter to Initialize()."); }