public EditTaskListPage() { InitializeComponent(); //this.Title = EditTaskListPageModel.Instance.ActiviyName; BindingContext = new EditTaskListPageModel(); // NavigationPage.SetHasNavigationBar(this, false); //NavigationPage.SetBackButtonTitle(this, ""); assignmentsList.ItemTapped += (object sender, ItemTappedEventArgs e) => { // don't do anything if we just de-selected the row if (e.Item == null) { return; } // do something with e.SelectedItem ((ListView)sender).SelectedItem = null; // de-select the row }; MyEditor.Unfocused += (object sender, FocusEventArgs e) => { MyScrollView.ScrollToAsync(MyEditor, ScrollToPosition.Start, true); }; MyEditor.Focused += (object sender, FocusEventArgs e) => { MyScrollView.ScrollToAsync(MyEditor, ScrollToPosition.Start, true); }; }
void Start() { ScoreItemList tList = new ScoreItemList(); MyScrollView tScrollView = GameObject.Find("scoreItemList").GetComponent <MyScrollView>(); MyScrollView.Option tOption = new MyScrollView.Option(); tOption.elementSize = new Vector2(12, 1); tOption.contentSize = new Vector2(12, 6); tOption.doubleTap = false; tOption.sortable = true; tScrollView.init(tList, tOption); Subject.addObserver(new Observer("browseScoreListMain", (message) => { if (message.name == "endBrowseButtonPushed")//譜面一覧を閉じる { MySceneManager.changeScene("selection"); return; } if (message.name == "editButtonPushed") //編集へ移る { MySceneManager.changeScene("edit", new Arg(new Dictionary <string, object>() { { "scoreData", DataFolder.loadScoreData(message.getParameter <string>("file")) } })); return; } if (message.name == "sortButtonPushed")//譜面の並び替え適用 { List <Arg> tMusicList = tList.getCompletedMusicList(); MusicList.updateList(tMusicList); AlartCreater.alart("曲の並びを保存しました"); } })); }
private void ScrollView_OnPropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName == nameof(ScrollView.ContentSize)) { MyScrollView.ScrollToAsync(CmdBox, ScrollToPosition.End, true); } }
private void InitializeViews() { { SVmain = new MyScrollView(Xamarin.Forms.ScrollOrientation.Vertical); { ALmain = new MyAbsoluteLayout { HorizontalOptions = Xamarin.Forms.LayoutOptions.FillAndExpand, VerticalOptions = Xamarin.Forms.LayoutOptions.Start, HeightRequest = treap.itemHeight, BackgroundColor = Xamarin.Forms.Color.LightYellow }; { LBend = new MyLabel("End of Results") { IsEnabled = false }; var layoutMethod = BarsLayoutMethod(0); ALmain.Children.Add(LBend, layoutMethod.Item1, layoutMethod.Item2); } SVmain.Content = ALmain; } this.Content = SVmain; } }
async void Handle_Scrolled(object sender, ScrolledEventArgs e) { if ((WasFocused && e.ScrollY > 12) || (string.IsNullOrWhiteSpace(ReplyEditor.Text) && e.ScrollY > 12)) { await MyScrollView.ScrollToAsync(0, 0, true); WasFocused = false; } }
// Use this for initialization void Start() { bg_change_scene.gameObject.SetActive(false); //string noti = PlayerPrefs.GetString("noti", ClientConfig.Language.GetText("noti")); SetNoti(str_noti); currentGameID = PlayerPrefs.GetInt("gameid", -1); UnloadScene(Res.ROOM_NAME); //Debug.LogError("Game Id " + gameId); if (currentGameID == -1) { PopupAndLoadingScript.instance.popup.ShowPopupOneButton("", ClientConfig.Language.GetText("room_gameid_khong_ton_tai"), () => { BackToLobby(); }); return; } scene_ab = ClientConfig.Language.GetText(currentGameID + "_ab"); scene_name = ClientConfig.Language.GetText(currentGameID + "_name"); SendData.onSendGameID((sbyte)currentGameID); myScrollView = objScrollTable.GetComponent <MyScrollView>(); StartCoroutine(UpDateInfo()); StartCoroutine(SetGameName(currentGameID)); //StartCoroutine(LoadTables()); }
public void ChangeOntologyFile() { MyScrollView window = (MyScrollView)EditorWindow.GetWindow(typeof(MyScrollView), true, "My Empty Window"); window.Show(); string path = EditorUtility.OpenFilePanel("Select ontology file", "", "owl"); if (path.Length != 0) { //WWW www = new WWW("file:///" + path); //Debug.Log(path); //m_OwlFile = path; //DestroyOwlNodes(m_owlNodeTree.m_keyTree.m_tree); //DestroyOwlEdges(); //m_winText.text = m_versionTxt; //StartCoroutine(GameLoop()); } }
public TaskContentPage() { InitializeComponent(); BindingContext = new TaskContentPageModel(); assignmentsList.ItemTapped += (object sender, ItemTappedEventArgs e) => { // don't do anything if we just de-selected the row if (e.Item == null) { return; } // do something with e.SelectedItem ((ListView)sender).SelectedItem = null; // de-select the row }; MyEditor.Unfocused += (object sender, FocusEventArgs e) => { MyScrollView.ScrollToAsync(MyEditor, ScrollToPosition.Start, true); }; MyEditor.Focused += (object sender, FocusEventArgs e) => { MyScrollView.ScrollToAsync(MyEditor, ScrollToPosition.Start, true); }; }
public MyScrollViewOperateState(MyScrollView aParent) { parent = aParent; }
public MyScrollViewDragSortState(MyScrollView aParent) : base(aParent) { }
public MyScrollViewImmediatelyAfterClickingState(MyScrollView aParent) : base(aParent) { }
static void Init() { MyScrollView window = (MyScrollView)EditorWindow.GetWindow(typeof(MyScrollView), true, "My Empty Window"); window.Show(); }
public MyScrollViewSecondLongTapState(MyScrollView aParent) : base(aParent) { }
public MyScrollViewWaitState(MyScrollView aParent) : base(aParent) { }