-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathSplitMosaicTileView.xaml.cs
More file actions
75 lines (70 loc) · 2.48 KB
/
Copy pathSplitMosaicTileView.xaml.cs
File metadata and controls
75 lines (70 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#region Copyright Syncfusion® Inc. 2001-2026.
// Copyright Syncfusion® Inc. 2001-2026. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// licensing@syncfusion.com. Any infringement will be prosecuted under
// applicable laws.
#endregion
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Syncfusion.UI.Xaml.Controls.Input;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236
namespace Notification.HubTile
{
public sealed partial class SplitMosaicTileView : Common.SampleLayout
{
public SplitMosaicTileView()
{
this.InitializeComponent();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
//if (this.controlView.Visibility == Visibility.Visible)
//{
// this.controlView.Visibility = Visibility.Collapsed;
// this.setting.Visibility = Visibility.Visible;
// (sender as Button).Content = "Done";
//}
//else
//{
// this.controlView.Visibility = Visibility.Visible;
// this.setting.Visibility = Visibility.Collapsed;
// (sender as Button).Content = "Options";
//}
}
private void interval_ValueChanged(object sender, Syncfusion.UI.Xaml.Controls.Input.ValueChangedEventArgs e)
{
if (hubtile != null)
{
SfNumericUpDown _interval = sender as SfNumericUpDown;
hubtile.Interval = TimeSpan.FromSeconds(Double.Parse(_interval.Value.ToString()));
}
}
public override void Dispose()
{
interval.ValueChanged -= interval_ValueChanged;
if (hubtile != null)
{
hubtile.Dispose();
if (hubtile.ImageList != null)
{
hubtile.ImageList.Clear();
hubtile.ImageList = null;
}
hubtile = null;
}
}
}
}