public void Initialize() { Double width = ViewModel.MainPageViewModel.ParagraphWidth, height = ViewModel.MainPageViewModel.ParagraphChartHeight; // do not use binding BarChartElement.Width = width; BarChartElement.Height = height; GroupedBarChartElement.Width = width; GroupedBarChartElement.Height = height; LineChartElement.Width = width; LineChartElement.Height = height; ScatterplotElement.Width = width; ScatterplotElement.Height = height; PivotTableViewElement.Width = width; PivotTableViewElement.Height = height; DistributionViewElement.Width = width; DistributionViewElement.Height = height; DescriptiveStatisticsViewElement.Width = width; DescriptiveStatisticsViewElement.Height = height; CorrelationStatisticsViewElement.Width = width; CorrelationStatisticsViewElement.Height = height; ShowStoryboard.Begin(); }
public RotationTextBlock() { InitializeComponent(); HideStoryboard.Completed += (sender, o) => { RotationTextContainer.Text = Text; ShowStoryboard.Begin(); }; }
public void Show(TimeSpan delay) { ShowStoryboard.BeginTime = delay; ((ScaleTransform)CheckBacground.RenderTransform).ScaleX = 0; ((ScaleTransform)CheckBacground.RenderTransform).ScaleY = 0; ((ScaleTransform)CheckSymbol.RenderTransform).ScaleX = 0; ((ScaleTransform)CheckSymbol.RenderTransform).ScaleY = 0; TitleTextBlock.Opacity = 0; ShowStoryboard.Begin(); }
private void UIElement_OnDoubleTapped(object sender, DoubleTappedRoutedEventArgs e) { if (topbar.Opacity == 0) { ShowStoryboard.Begin(); } else { HideStoryboard.Begin(); } }
public MessageBox() { InitializeComponent(); ContentGrid.Opacity = 0; HideStoryboard.Completed += (sender, o) => _service.Hide(); _service.Child = this; _service.Opened += (sender, args) => ShowStoryboard.Begin(); _service.Closed += Closed; _service.BackKeyPressed += (sender, args) => { args.Handled = true; HideStoryboard.Begin(); }; }
public InputBox() { InitializeComponent(); ContentGrid.Opacity = 0; _service.Child = this; _service.Opened += (sender, args) => ShowStoryboard.Begin(); _service.BackKeyPressed += (sender, args) => { args.Handled = true; HideStoryboard.Begin(); }; ShowStoryboard.Completed += (sender, o) => InputTextBox.Focus(FocusState.Programmatic); HideStoryboard.Completed += (sender, o) => _service.Hide(); InputTextBox.KeyDown += (sender, args) => { if (args.Key != VirtualKey.Enter) { return; } OkOnClick(null, null); }; }
public void Show() { ShowStoryboard.Begin(); }
protected override void LoadComplete() { ShowStoryboard.BindValueChanged(_ => initializeStoryboard(true), true); base.LoadComplete(); }
private void animatedImage_ImageOpened() { ShowStoryboard.Begin();//Start the Animation }