private void InitializePowerSupplyControl() { initialBrush = BatteryCharge.Fill; maxWidth = BatteryCharge.Width; powerSupply.StatusChanged += PowerSupply_StatusChanged; UpdateStatus(powerSupply.GetStatus()); }
private void InitializePowerSupplyControl() { initialBrush = BatteryCharge.Fill; maxWidth = BatteryCharge.Width; powerSupply.StatusChanged += PowerSupply_StatusChanged; Popup.CustomPopupPlacementCallback = new CustomPopupPlacementCallback(Popup_PlacementCallback); UpdateStatus(powerSupply.GetStatus()); }