public void NavigateToPage(Type pageType, bool showAnimation)
 {
     if (showAnimation)
     {
         ColorPickerFrame.Navigate(pageType);
     }
     else
     {
         ColorPickerFrame.Navigate(pageType, null, new SuppressNavigationTransitionInfo());
     }
 }
Esempio n. 2
0
        public void OpenTemperatureColorPickerPopup <T>(int defaultTemperature, T source, int idOnReturn)
        {
            ColorPickerFrame.Width = 240;

            ColorPickerFrame.Navigate(typeof(TemperatureColorPicker), null, new SuppressNavigationTransitionInfo());
            ((TemperatureColorPicker)ColorPickerFrame.Content).GiveVariables <PartyControl>(this);
            ((TemperatureColorPicker)ColorPickerFrame.Content).SetColorTemperatureSliderPosition(defaultTemperature);
            ((TemperatureColorPicker)ColorPickerFrame.Content).SetIsEnabled(true);

            colorPickerSource   = source;
            colorPickerSourceId = idOnReturn;
            isRGB = false;

            ColorPickerPopup.Visibility = Visibility.Visible;
            ColorPickerPopup.Scale      = new Vector3(1, 1, 1);
        }
Esempio n. 3
0
        public void OpenColorRGBPickerPopup <T>(Color defaultColor, T source, int idOnReturn)
        {
            ColorPickerFrame.Width = 235;

            ColorPickerFrame.Navigate(typeof(RGBColorPicker), null, new SuppressNavigationTransitionInfo());
            ((RGBColorPicker)ColorPickerFrame.Content).GiveVariables <PartyControl>(this);
            ((RGBColorPicker)ColorPickerFrame.Content).SetRGBColorPickerColor(defaultColor);
            ((RGBColorPicker)ColorPickerFrame.Content).SetIsEnabled(true);

            colorPickerSource   = source;
            colorPickerSourceId = idOnReturn;
            isRGB = true;

            ColorPickerPopup.Visibility = Visibility.Visible;
            ColorPickerPopup.Scale      = new Vector3(1, 1, 1);
        }