-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathAccordionView.xaml.cs
65 lines (59 loc) · 2 KB
/
AccordionView.xaml.cs
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
#region Copyright Syncfusion Inc. 2001-2024.
// Copyright Syncfusion Inc. 2001-2024. 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 Common;
using Syncfusion.UI.Xaml.Utils;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
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 Layout.Accordion
{
public sealed partial class AccordionView : SampleLayout
{
public AccordionView()
{
this.InitializeComponent();
this.Loaded += AccordionView_Loaded;
}
void AccordionView_Loaded(object sender, RoutedEventArgs e)
{
//if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))
//{
// accordion.Width = 350;
// accordion.Foreground = new SolidColorBrush(Colors.Black);
//}
}
public override void Dispose()
{
Loaded -= AccordionView_Loaded;
if (accordion != null)
{
accordion.Dispose();
if (accordion.Items != null && accordion.Items.Count > 0)
accordion.Items.Clear();
accordion.ItemsSource = null;
accordion.ItemContainerStyle = null;
accordion.ContentTemplate = null;
accordion.HeaderTemplate = null;
}
accordion = null;
GC.Collect();
}
}
}