I dont think you can use that exact syntax but you could do something like this in C#. I used the WPF window class not exactly the same as yours
Window window = new Window()
{
RenderSize = new Size()
{
Height = 100,
Width = 200
},
WindowStartupLocation = WindowStartupLocation.CenterScreen
};