protected override void OnStartup(System.Windows.StartupEventArgs e) { base.OnStartup(e); SurfacePalette myPalette = new LightSurfacePalette(); SurfaceColors.SetDefaultApplicationPalette(myPalette); }
public MobileApplication() { InitializeComponent(); InitializeWindow(); ListBoxExtensions.SetAllowReorderSource(Whiteboard.BoardView, true); ListBoxExtensions.Reordered += (sender, e) => ((MobileApplicationViewModel)DataContext).ReorganizeDragAndDroppedPatients(e.DroppedData, e.OriginalData); var pal = new Microsoft.Surface.Presentation.Palettes.LightSurfacePalette(); pal.ListBoxItemSelectionBackgroundDisabledColor = pal.ListBoxItemSelectionBackgroundColor = pal.ListBoxItemSelectionBackgroundPressedColor = System.Windows.Media.Colors.White; SurfaceColors.SetDefaultApplicationPalette(pal); Loaded += MobileApplication_Loaded; }