private void ApplyAntiAliasingSettings() { if (ClientSettings.Current.EnableAntiAliasing) { ContentPanel.ClearValue(RenderOptions.EdgeModeProperty); } else { RenderOptions.SetEdgeMode(ContentPanel, EdgeMode.Aliased); } }