public override void ViewWillAppear(bool animated)
 {
     base.ViewWillAppear(animated);
     NavigationController.NavigationBarHidden     = false;
     NavigationController.NavigationBar.TintColor = UIColor.White;
     Styling.SetLogo(this);
 }
Example #2
0
        public static bool DisplayCAS(Sim simInCAS, Sim stylerSim, ref bool tookSemaphore, bool forceFailureOutfit)
        {
            if (!Responder.Instance.OptionsModel.SaveGameInProgress)
            {
                tookSemaphore = GameStates.WaitForInteractionStateChangeSemaphore(simInCAS, ~(ExitReason.Replan | ExitReason.MidRoutePushRequested | ExitReason.ObjectStateChanged | ExitReason.PlayIdle | ExitReason.MaxSkillPointsReached));
                if (!tookSemaphore)
                {
                    return(false);
                }
                Sim sim = stylerSim ?? simInCAS;
                if (sim.Household == Household.ActiveHousehold)
                {
                    while ((Sims3.Gameplay.Gameflow.CurrentGameSpeed == Sims3.Gameplay.Gameflow.GameSpeed.Pause) || MoveDialog.InProgress())
                    {
                        SpeedTrap.Sleep();
                    }

                    StyledNotification notification = null;
                    if (stylerSim != null)
                    {
                        Stylist occupation = stylerSim.Occupation as Stylist;
                        if (occupation != null)
                        {
                            Stylist.Makeover currentJob = occupation.CurrentJob as Stylist.Makeover;
                            if ((currentJob != null) && (currentJob.MakeoverTarget == simInCAS))
                            {
                                string titleText = currentJob.JobTitle + ":" + Common.NewLine + Common.NewLine;
                                foreach (TaskInfo info in occupation.GetTaskNames().Values)
                                {
                                    titleText = titleText + "- " + info.TaskDescription + Common.NewLine;
                                }
                                StyledNotification.Format format = new StyledNotification.Format(titleText, StyledNotification.NotificationStyle.kGameMessagePositive);
                                notification = StyledNotification.Show(format);
                            }
                        }
                    }

                    new Sims.Stylist().Perform(new GameHitParameters <GameObject>(simInCAS, simInCAS, GameObjectHit.NoHit));

                    if (forceFailureOutfit)
                    {
                        CASLogic.GetSingleton().SetOverrideExitOutfit(OutfitCategories.Makeover, 0x0);
                    }

                    while (GameStates.NextInWorldStateId != InWorldState.SubState.LiveMode)
                    {
                        SpeedTrap.Sleep();
                    }

                    if (notification != null)
                    {
                        notification.CloseNow();
                    }

                    Styling.UpdateJobTrackerIfNecessary(simInCAS, stylerSim, forceFailureOutfit);
                    return(true);
                }
            }
            return(false);
        }
Example #3
0
        public static void Init(Vector2 centerPosition,
                                float width,
                                string title,
                                string description,
                                string text,
                                OnSetText setTextCallback,
                                ValidationFunction validateFunc,
                                string okButtonText,
                                Styling style)
        {
            var descContent = new GUIContent(description);
            var height      = GUI.skin.label.CalcHeight(descContent, width);

            if (height > EditorGUIUtility.singleLineHeight)
            {
                height -= EditorGUIUtility.singleLineHeight;
            }

            var win  = EditorWindow.CreateInstance <TextEditPopover>();
            var size = new Vector2(width, 90 + height);
            var rect = new Rect(centerPosition.x - size.x * 0.5f, centerPosition.y - size.y * 0.5f, 0, 0);

            win.Configure(title, description, text, setTextCallback, validateFunc, okButtonText, style);
            win.ShowAsDropDown(rect, size);
        }
Example #4
0
 protected override void OnParametersSet()
 {
     _btnClass = $"btn-{Styling.EnumToString().ToLowerInvariant()}";
     if (Styling == ButtonStyling.Brand)
     {
         _btnClass = $"btn-success {_btnClass}";
     }
 }
    void OnEnable()
    {
        if (_style == null)
        {
            _style = new Styling();
        }

        _style.Load();
    }
Example #6
0
        private void ProfileSearchForm_Load(object sender, EventArgs e)
        {
            Styling.SetFormScheme(this);

            //todo: user search
            //

            lblSearchResultsFor.Text = $"Search results: {SearchString}";
        }
        public static void OnFinishMakeoverFreestyle(Sim actor, Sim target, string interaction, ActiveTopic topic, InteractionInstance i)
        {
            try
            {
                bool tookSemaphore = false;
                Styling.MakeoverOutcome makeoverOutcome = Styling.GetMakeoverOutcome(target, actor, true);
                bool forceFailureOutfit = makeoverOutcome == Styling.MakeoverOutcome.EpicFailure;
                bool flag3 = false;
                try
                {
                    if (forceFailureOutfit)
                    {
                        Styling.LoadMakeoverEpicFailureOutfitForCasOverride(target);
                    }
                    flag3 = GetMakeoverEx.DisplayCAS(target, actor, ref tookSemaphore, forceFailureOutfit);
                }
                catch (Exception)
                {
                    throw;
                }
                finally
                {
                    if (tookSemaphore)
                    {
                        GameStates.ReleaseInteractionStateChangeSemaphore();
                    }
                }

                if (CASChangeReporter.Instance.GetPropertyChanged(CASChangeReporter.ChangeFlags.Any))
                {
                    SkillLevel         customerReactionType = Styling.GetCustomerReactionType(target, actor, makeoverOutcome, false);
                    SkillLevel         stylerReactionType   = Styling.GetStylerReactionType(customerReactionType);
                    StateMachineClient client = StateMachineClient.Acquire(actor, "StylistActiveCareer");
                    client.SetActor("x", target);
                    client.SetActor("y", actor);
                    client.SetParameter("doClothesSpin", !flag3);
                    client.SetParameter("customerReactionType", customerReactionType);
                    client.SetParameter("stylistReactionType", stylerReactionType);
                    client.EnterState("x", "Enter");
                    client.EnterState("y", "Enter");
                    actor.LoopIdle();
                    client.RequestState("x", "Customer Reaction");
                    Styling.PostMakeover(target, actor, makeoverOutcome, false, customerReactionType, true, true, new Styling.OnMakeoverCompletedCallback(SocialCallback.OnMakeoverFreestyleCompleted));
                    client.RequestState(false, "x", "Exit");
                    client.RequestState("y", "Stylist Reaction");
                    client.RequestState("y", "Exit");
                }
            }
            catch (ResetException)
            {
                throw;
            }
            catch (Exception e)
            {
                Common.Exception(actor, target, e);
            }
        }
Example #8
0
        public ConfigurationsTab(XcodeEditorWindow parent, Styling style)
        {
            if (parent == null)
            {
                throw new System.ArgumentNullException(nameof(parent), "parent cannot be null");
            }

            _parent = parent;
            _style  = style;
            _platformConfiguration = XcodeController.Instance().Configuration(_parent.Platform);
        }
Example #9
0
        void OnEnable()
        {
            XcodeController.OnRefresh += HandleRefresh;
            _activeTab = Tab.Changes;

            if (_style == null)
            {
                _style = new Styling();
            }

            _style.Load();
        }
Example #10
0
        void OnEnable()
        {
            _settings = XcodeController.Instance().Settings;
            _customIgnoredFiles.Clear();
            _customIgnoredFiles.AddRange(IgnoredFiles.CustomList);

            if (_style == null)
            {
                _style = new Styling();
            }

            _style.Load();
        }
Example #11
0
        void Configure(Rect popoverPosition, string popoverTitle, string[] content, OnSelectedItem selectedItemCallback, Styling style, bool allowCustomEntry, string initialString)
        {
            var size = new Vector2(popoverPosition.width, popoverPosition.height);

            popoverPosition.width = popoverPosition.height = 0;
            _content          = content;
            _filtered         = content;
            _searchString     = initialString;
            _onSelectedItem   = selectedItemCallback;
            _allowCustomEntry = allowCustomEntry;
            _title            = popoverTitle;
            _style            = style;
            UpdateFilteredList();
            ShowAsDropDown(popoverPosition, size);
        }
        public static BuildSettingSelectionPopover Init(Rect position,
                                                        Mode mode,
                                                        string[] existingSettings,
                                                        OnSelectedItem selectedItemCallback,
                                                        Styling style,
                                                        string initialString = "")
        {
            var win  = EditorWindow.CreateInstance <BuildSettingSelectionPopover>();
            var size = new Vector2(position.width, position.height);

            position.width = position.height = 0;
            win.ShowAsDropDown(position, size);
            win.Configure(mode, existingSettings, selectedItemCallback, style, initialString);
            return(win);
        }
Example #13
0
 void Configure(string popoverTitle,
                string description,
                string text,
                OnSetText setTextCallback,
                ValidationFunction validateFunc,
                string okButtonText,
                Styling style)
 {
     _title        = popoverTitle;
     _description  = description;
     _originalText = _text = text;
     _onSetText    = setTextCallback;
     _validateFunc = validateFunc;
     _okButton     = okButtonText;
     _style        = style;
 }
Example #14
0
        private HeaderedContentControl PresentTooltipContents([CanBeNull] object header, [NotNull] IEnumerable <object> tooltipContents)
        {
            var control = new HeaderedContentControl {
                Style     = UIResources.Instance.HeaderedContentControlStyle,
                Focusable = false,
                Header    = header,
                Content   = new ItemsControl {
                    Focusable   = false,
                    ItemsSource = tooltipContents
                }
            };

            ApplyFormatting(control);
            Styling.SetDocument(control, new WeakReference <IDocument>(_document));
            return(control);
        }
Example #15
0
        protected BaseChangeFileDrawer(XcodeEditorWindow parent, Styling style)
        {
            if (parent == null)
            {
                throw new System.ArgumentNullException((parent).ToString(), "Parent cannot be null");
            }

            Parent = parent;
            Style  = style;

            foreach (Sections e in System.Enum.GetValues(typeof(Sections)))
            {
                _foldoutStates[e] = true;
            }

            MaxFolderSectionWidth = DEFAULT_FOLDER_NAME_WIDTH;
        }
Example #16
0
        void Configure(Rect popoverPosition, OnSelectedItem selectedItemCallback, Styling style, BuildPlatform platform)
        {
            _xcodeFinder = new XcodeSDKFinder(platform);
            var minWidth = style.MaxLabelWidth(_xcodeFinder.FrameworkNames, popoverPosition.width) + 40;
            var width    = popoverPosition.width;

            _platform = platform;

            if (minWidth > popoverPosition.width)
            {
                width = Mathf.Max(minWidth, popoverPosition.width);
                float delta = (minWidth - popoverPosition.width) * 0.5f;
                popoverPosition.x -= delta;
            }

            var size = new Vector2(width, popoverPosition.height);

            popoverPosition.width = popoverPosition.height = 0;
            _onSelectedItem       = selectedItemCallback;
            _style = style;
            ShowAsDropDown(popoverPosition, size);
        }
        void Configure(Mode mode,
                       string[] existingSettings,
                       OnSelectedItem selectedItemCallback,
                       Styling style,
                       string initialString = "")
        {
            _style            = style;
            _existingSettings = new List <string>(existingSettings);
            //exclude settings we have already added
            var settings = XcodeBuildSettings.Instance().BuildSettings.Where(o => !existingSettings.Contains(o.BuildSettingName)).ToList();

            foreach (var s in settings)
            {
                Dictionary <string, string> dic;

                if (!_availableSettings.TryGetValue(s.Group, out dic))
                {
                    dic = new Dictionary <string, string>();
                    _availableSettings[s.Group] = dic;
                }

                dic[s.BuildSettingName]      = s.DisplayName;
                _groupFoldoutStates[s.Group] = true;
            }

            _searchString   = initialString;
            _onSelectedItem = selectedItemCallback;

            if (mode == Mode.Add)
            {
                _title = "Add Build Setting";
            }
            else
            {
                _title = "Edit Build Setting";
            }

            UpdateFilteredList();
        }
Example #18
0
        public static ListSelectionPopover Init(Rect position, string title, string[] content, OnSelectedItem selectedItemCallback, Styling style, bool allowCustomEntry = false, string initialString = "")
        {
            var win = EditorWindow.CreateInstance <ListSelectionPopover>();

            win.Configure(position, title, content, selectedItemCallback, style, allowCustomEntry, initialString);
            return(win);
        }
Example #19
0
 public PListElementDrawerMutable(Styling style)
     : base(style)
 {
 }
 public override void ViewDidAppear(bool animated)
 {
     base.ViewDidAppear(animated);
     Styling.SetLogo(this);
 }
Example #21
0
        /*
         * public void AddInteraction(Common.InteractionInjectorList interactions)
         * {
         *  interactions.Add<StylingStation, StylingStation.GetMakeover.Definition>(Singleton);
         * }
         */

        public override bool Run()
        {
            try
            {
                bool succeeded = false;
                if (Styler == null)
                {
                    return(false);
                }
                else if ((Actor.LotCurrent != Styler.LotCurrent) && !RouteActorToTargetLot())
                {
                    return(false);
                }
                else if (ShouldPushOtherHalf && !PushOtherHalf(StylingStation.GiveMakeover.Singleton, Actor, Styler, null))
                {
                    return(false);
                }
                else if (!Actor.RouteToSlot(Target, StylingStation.kPlatformRoutingSlot))
                {
                    return(false);
                }
                else if (!Styling.CanSimReceiveMakeover(Actor, Styler, Autonomous))
                {
                    return(false);
                }
                else if (Target.UseCount > 0x1)
                {
                    return(false);
                }
                else if (Target.UseCount == 0x1)
                {
                    if (!Target.IsActorUsingMe(Styler))
                    {
                        return(false);
                    }
                    if (Styler.InteractionQueue.GetHeadInteraction() != LinkedInteractionInstance)
                    {
                        return(false);
                    }
                }

                StandardEntry();
                Styling.PreMakeover(Actor, Styler);
                AddSynchronousOneShotScriptEventHandler(0x384, SnapSimToPlatform);
                AddSynchronousOneShotScriptEventHandler(0x385, SnapSimToGround);
                Animate("x", "Get On Platform");
                Actor.LoopIdle();
                if (!StartSync(true))
                {
                    Animate("x", "Get Off Platform");
                    Animate("x", "Exit");
                    StandardExit(true, false);
                    return(false);
                }
                BeginCommodityUpdates();
                AddPersistentScriptEventHandler(0x7a6a, DisplayThoughtBalloon);
                AddPersistentScriptEventHandler(0x7a69, DisplayThoughtBalloon);
                bool flag2 = false;
                int  num   = 0x0;
                do
                {
                    num++;
                    flag2 = false;
                    AnimateJoinSims("Customer and Stylist Loop");
                    float duration = (Styler.IsNPC && Actor.IsNPC) ? StylingStation.kNPCMakeoverDurationInMinutes : StylingStation.kMakeoverDurationInMinutes;
                    succeeded = DoTimedLoop(duration);
                    AnimateNoYield("y", "Stylist Idle");
                    StylingStation.GiveMakeover linkedInteractionInstance = LinkedInteractionInstance as StylingStation.GiveMakeover;
                    linkedInteractionInstance.DoStylistIdle = true;
                    if (succeeded)
                    {
                        bool enteringCAS = linkedInteractionInstance.SimInCAS != null;
                        Styling.MakeoverOutcome makeoverOutcome = Styling.GetMakeoverOutcome(Actor, Styler, enteringCAS);
                        bool epicMakeoverFailure = makeoverOutcome == Styling.MakeoverOutcome.EpicFailure;
                        if (!enteringCAS)
                        {
                            Sim.SwitchOutfitHelper switchOutfitHelper = null;
                            Styling.LoadMakeoverOutfitForClothesSpin(Actor, epicMakeoverFailure, Autonomous, ref switchOutfitHelper);
                            mSwitchOutfitHelper = switchOutfitHelper;
                        }
                        else if (epicMakeoverFailure)
                        {
                            Styling.LoadMakeoverEpicFailureOutfitForCasOverride(Actor);
                        }
                        Animate("x", "Gussy Anims Done");
                        if (!enteringCAS && (mSwitchOutfitHelper != null))
                        {
                            mSwitchOutfitHelper.Wait(true);
                            mSwitchOutfitHelper.AddScriptEventHandler(this);
                        }

                        if (enteringCAS)
                        {
                            bool tookSemaphore = mTookSemaphore;
                            enteringCAS    = DisplayCAS(linkedInteractionInstance.SimInCAS, Styler, ref tookSemaphore, epicMakeoverFailure);
                            mTookSemaphore = tookSemaphore;
                            ReleaseSemaphore();
                            succeeded = CASChangeReporter.Instance.GetPropertyChanged(CASChangeReporter.ChangeFlags.Any);
                        }

                        if (succeeded)
                        {
                            float[]    reactionWeightsBonus = Target.UpgradableComponent.LookGoodMirrors ? StylingStation.kUpgradeReactionWeightsBonus : null;
                            SkillLevel paramValue           = Styling.GetCustomerReactionType(Actor, Styler, makeoverOutcome, num >= 0x2, reactionWeightsBonus);
                            SetParameter("doClothesSpin", !enteringCAS);
                            SetParameter("customerReactionType", paramValue);
                            Animate("x", "Customer Reaction");
                            Styling.PostMakeover(Actor, Styler, makeoverOutcome, false, paramValue, enteringCAS, enteringCAS, OnMakeoverCompleted);
                            SkillLevel stylerReactionType = Styling.GetStylerReactionType(paramValue);
                            SetParameter("stylistReactionType", stylerReactionType);
                            AnimateNoYield("y", "Stylist Reaction");
                            (LinkedInteractionInstance as StylingStation.GiveMakeover).DoStylistIdle = true;
                            Actor.LoopIdle();
                            if (((Actor.IsNPC && Styler.IsNPC) && (paramValue == SkillLevel.poor)) && ((num <= 0x1) && Actor.HasNoExitReason()))
                            {
                                flag2 = true;
                            }
                        }
                        else
                        {
                            (LinkedInteractionInstance as StylingStation.GiveMakeover).MakeoverCancelled = true;
                        }
                    }
                }while (flag2);
                Animate("x", "Get Off Platform");
                AnimateNoYield("y", "Exit Stylist");
                Animate("x", "Exit");
                FinishLinkedInteraction(true);
                EndCommodityUpdates(succeeded);
                StandardExit(true, false);
                WaitForSyncComplete();
                return(succeeded);
            }
            catch (ResetException)
            {
                throw;
            }
            catch (Exception e)
            {
                Common.Exception(Actor, Target, e);
                return(false);
            }
        }
Example #22
0
 public override bool Run()
 {
     try
     {
         if (!Actor.RouteToSlotAndCheckInUse(Target, StylingStation.kPlatformRoutingSlot))
         {
             return(false);
         }
         StandardEntry();
         Styling.PreMakeover(Actor, Actor);
         EnterStateMachine("StylingStation", "Enter", "x", "stylistStation");
         AddSynchronousOneShotScriptEventHandler(0x384, new SacsEventHandler(SnapSimToPlatform));
         AddSynchronousOneShotScriptEventHandler(0x385, new SacsEventHandler(SnapSimToGround));
         AnimateSim("Get On Platform");
         if (Actor.HasExitReason())
         {
             AnimateSim("Get Off Platform");
             AnimateSim("Exit");
             StandardExit();
             return(false);
         }
         BeginCommodityUpdates();
         AnimateSim("Customer Alone Loop");
         float duration  = Actor.IsNPC ? StylingStation.kNPCMakeoverDurationInMinutes : StylingStation.kMakeoverDurationInMinutes;
         bool  succeeded = DoTimedLoop(duration);
         if (succeeded)
         {
             Styling.MakeoverOutcome success = Styling.MakeoverOutcome.Success;
             bool isSelectable = Actor.IsSelectable;
             if (!isSelectable)
             {
                 Sim.SwitchOutfitHelper switchOutfitHelper = null;
                 Styling.LoadMakeoverOutfitForClothesSpin(Actor, false, Autonomous, ref switchOutfitHelper);
                 mSwitchOutfitHelper = switchOutfitHelper;
             }
             Animate("x", "Gussy Anims Done");
             if (!isSelectable && (mSwitchOutfitHelper != null))
             {
                 mSwitchOutfitHelper.Wait(true);
                 mSwitchOutfitHelper.AddScriptEventHandler(this);
             }
             if (isSelectable)
             {
                 bool tookSemaphore = mTookSemaphore;
                 isSelectable   = GetMakeoverEx.DisplayCAS(Actor, null, ref tookSemaphore, false);
                 mTookSemaphore = tookSemaphore;
             }
             SkillLevel expert = SkillLevel.expert;
             SetParameter("doClothesSpin", !isSelectable);
             SetParameter("customerReactionType", expert);
             Animate("x", "Customer Reaction");
             ReleaseSemaphore();
             Styling.PostMakeover(Actor, Actor, success, false, expert, isSelectable, isSelectable, null);
         }
         if (succeeded)
         {
             Actor.SkillManager.AddElement(SkillNames.Styling);
         }
         EndCommodityUpdates(succeeded);
         AnimateSim("Get Off Platform");
         AnimateSim("Exit");
         StandardExit();
         return(succeeded);
     }
     catch (ResetException)
     {
         throw;
     }
     catch (Exception e)
     {
         Common.Exception(Actor, Target, e);
         return(false);
     }
 }
Example #23
0
 protected BasePListElementDrawer(Styling styling)
 {
     Style = styling;
 }
Example #24
0
        public async Task DialogsAsync(Form parent, ISignIn signingInState)
        {
            SignupSignInViewModel viewModel = new SignupSignInViewModel(signingInState, new NameOf(nameof(Texts.WelcomeToAxCrypt)), new NameOf(nameof(Texts.MessageAskAboutStartTrialForWindows)))
            {
                UserEmail = UserEmail,
                Version   = Version,
            };

            viewModel.BindPropertyChanged(nameof(viewModel.UserEmail), (string email) => UserEmail  = email);
            viewModel.BindPropertyChanged(nameof(viewModel.StopAndExit), (bool stop) => StopAndExit = stop);
            viewModel.BindPropertyChanged(nameof(viewModel.TopControlsEnabled), (bool enabled) => SetTopControlsEnabled(parent, enabled));

            viewModel.CreateAccount = (e) =>
            {
                using (CreateNewAccountDialog dialog = new CreateNewAccountDialog(parent, String.Empty, EmailAddress.Parse(UserEmail)))
                {
                    DialogResult result = dialog.ShowDialog();
                    if (result != DialogResult.OK)
                    {
                        e.Cancel = true;;
                    }
                }
                return(Task.FromResult <object>(null));
            };

            viewModel.RequestEmail = (e) =>
            {
                using (EmailDialog dialog = new EmailDialog(parent))
                {
                    dialog.EmailTextBox.Text = viewModel.UserEmail;
                    DialogResult result = dialog.ShowDialog(parent);
                    if (result != DialogResult.OK)
                    {
                        e.Cancel = true;
                        return(Task.FromResult <object>(null));
                    }
                    viewModel.UserEmail = dialog.EmailTextBox.Text;
                }
                return(Task.FromResult <object>(null));
            };

            viewModel.VerifyAccount = (e) =>
            {
                VerifyAccountViewModel vav = new VerifyAccountViewModel(EmailAddress.Parse(viewModel.UserEmail));
                vav.BindPropertyChanged <bool>(nameof(vav.AlreadyVerified), (verified) => viewModel.AlreadyVerified = verified);

                using (VerifyAccountDialog dialog = new VerifyAccountDialog(parent, vav))
                {
                    DialogResult result = dialog.ShowDialog(parent);
                    if (result != DialogResult.OK)
                    {
                        e.Cancel = true;
                    }
                }
                return(Task.FromResult <object>(null));
            };

            viewModel.SignInCommandAsync = signingInState.SignIn;

            viewModel.RestoreWindow = () =>
            {
                if (New <UserSettings>().RestoreFullWindow)
                {
                    Styling.RestoreWindowWithFocus(parent);
                }
                return(Task.FromResult <object>(null));
            };

            await viewModel.DoAll.ExecuteAsync(null);
        }
Example #25
0
 public void AddStyle(string name, string style)
 {
     Styling.Add(name, style);
 }
Example #26
0
 public Site()
 {
     Styling = new Styling();
     Aliases = new List<string>();
 }
Example #27
0
 public PListElementDrawer(Styling style)
     : base(style)
 {
 }
 public void SetClip(Styling.Rectangle rectangle)
 {
    //
 }
Example #29
0
 public PreviewTab(XcodeEditorWindow parent, Styling style)
     : base(parent, style)
 {
     _plistDrawer = new PListElementDrawer(style);
 }
Example #30
0
 private void PlaylistsTabForm_Load(object sender, EventArgs e)
 {
     Styling.SetFormScheme(this);
 }
Example #31
0
        public static FrameworksPopover Init(Rect position, OnSelectedItem selectedItemCallback, Styling style, BuildPlatform platform)
        {
            var win = EditorWindow.CreateInstance <FrameworksPopover>();

            win.Configure(position, selectedItemCallback, style, platform);
            return(win);
        }