The rule says
$$\int uv' dx = uv - \int u'v dx$$
which in your case translates to
$$\int xf(x)dx = x F(x) - \int 1\cdot F(x)dx$$
so you were almost correct, but there is still an integral on the right side of the equation.
The rule says
$$\int uv' dx = uv - \int u'v dx$$
which in your case translates to
$$\int xf(x)dx = x F(x) - \int 1\cdot F(x)dx$$
so you were almost correct, but there is still an integral on the right side of the equation.