/// <summary> /// 初始化加载view准备,_doUIModule是对应当前UIView的model实例 /// </summary> /// <param name="_doComponentUI"></param> public void LoadView(doUIModule _doUIModule) { this.model = (do_SwitchView_MAbstract)_doUIModule; this.HorizontalAlignment = Windows.UI.Xaml.HorizontalAlignment.Left; this.VerticalAlignment = Windows.UI.Xaml.VerticalAlignment.Top; ts.Toggled += ts_Toggled; this.Content = ts; //ts.OnContent = ""; //ts.OffContent = ""; }
public void OnRedraw() { var tp = doUIModuleHelper.GetThickness(this.model); this.Margin = tp.Item1; this.Width = tp.Item2; this.Height = tp.Item3; if (this.model.ChildUIComponents.Count == 1) { doUIModule _childUI = this.model.ChildUIComponents[0]; _childUI.CurrentComponentUIView.OnRedraw(); } }
/// <summary> /// 初始化加载view准备,_doUIModule是对应当前UIView的model实例 /// </summary> /// <param name="_doComponentUI"></param> public void LoadView(doUIModule _doUIModule) { this.HorizontalAlignment = HorizontalAlignment.Left; this.VerticalAlignment = VerticalAlignment.Top; this.sv.HorizontalScrollMode = ScrollMode.Disabled; this.model = (do_GridView_MAbstract)_doUIModule; this.Background = new SolidColorBrush(Colors.Red); this.Foreground = new SolidColorBrush(Colors.Blue); this.Content = sv; sv.Content = sp; sp.Orientation = Orientation.Vertical; //this.Background =await GetImg("resource.img.png"); }
/// <summary> /// 初始化加载view准备,_doUIModule是对应当前UIView的model实例 /// </summary> /// <param name="_doComponentUI"></param> public async void LoadView(doUIModule _doUIModule) { this.model = (button_MAbstract)_doUIModule; btn.Click += btn_Click; btn.Tapped += btn_Tapped; this.HorizontalAlignment = Windows.UI.Xaml.HorizontalAlignment.Left; this.VerticalAlignment = Windows.UI.Xaml.VerticalAlignment.Top; this.Content = btn; this.Background = new SolidColorBrush(Colors.Red); this.Foreground = new SolidColorBrush(Colors.Blue); this.Background = await GetImg("resource.img.png"); }
public void LoadView(doUIModule _doComponentUI) { this.model = _doComponentUI as do_ScrollView_Model; this.HorizontalAlignment = Windows.UI.Xaml.HorizontalAlignment.Left; this.VerticalAlignment = Windows.UI.Xaml.VerticalAlignment.Top; this.Content = scroll; if (this.model.ChildUIComponents.Count == 1) { doUIModule _childUI = this.model.ChildUIComponents[0]; if (_childUI.CurrentComponentUIView != null) { FrameworkElement _view = _childUI.CurrentComponentUIView as FrameworkElement; scroll.Content = _view; } } }
/// <summary> /// 初始化加载view准备,_doUIModule是对应当前UIView的model实例 /// </summary> /// <param name="_doComponentUI"></param> public void LoadView(doUIModule _doUIModule) { this.Content = canvas; this.model = (do_SlideView_MAbstract)_doUIModule; }