예제 #1
0
        private void InitializeClasificationButtonCollection2()
        {
            var ClassificationButtonCollection2 = new CxControlLibrary.ClassificationButtonCollection();

            ClassificationButtonCollection2.HorizontalAlignment = HorizontalAlignment.Center;
            ClassificationButtonCollection2.VerticalAlignment   = VerticalAlignment.Center;


            ClassificationButtonCollection2.AddCollection(new ClassificationButton()
            {
                Color = new SolidColorBrush(Color.FromRgb(236, 58, 88)),
                Text  = "Top secret",
                Name  = "testBtn1"
            });
            ClassificationButtonCollection2.AddCollection(new ClassificationButton()
                                                          //2
            {
                Color = new SolidColorBrush(Color.FromRgb(252, 120, 84)),
                Text  = "Top secret",
                Name  = "testBtn2"
            });
            ClassificationButtonCollection2.AddCollection(new ClassificationButton()
                                                          //3
            {
                Color = new SolidColorBrush(Color.FromRgb(236, 58, 88)),
                Text  = "Top guarded long headljnjnjnjnj",
                Name  = "testBtn3"
            });
            ClassificationButtonCollection2.AddCollection(new ClassificationButton()
                                                          //4
            {
                Color = new SolidColorBrush(Color.FromRgb(252, 222, 83)),
                Text  = "Guarded",
                Name  = "testBtn4"
            });
            ClassificationButtonCollection2.Title = "Hey Title";


            XAMLStackPanel.Children.Add(ClassificationButtonCollection2); // add to Xaml
            ClassificationButtonCollection2.Name      = "ClassificationButtonCollection2";
            ClassificationButtonCollection2.Margin    = new Thickness(5);
            ClassificationButtonCollection2.IsUseMore = true; //visible or hiden button more
        }
예제 #2
0
        private void InitializeClasificationButtonCollection()
        {
            var ClassificationButtonCollection = new CxControlLibrary.ClassificationButtonCollection();

            ClassificationButtonCollection.HorizontalAlignment = HorizontalAlignment.Center;
            ClassificationButtonCollection.VerticalAlignment   = VerticalAlignment.Center;

            ClassificationButtonCollection.Title = "My Title";

            ClassificationButtonCollection.BackgroundColor = new SolidColorBrush(Colors.Black);



            ClassificationButtonCollection.DropShadow = false;

            ClassificationButtonCollection.AddCollection(new ClassificationButton()
            {
                Color     = new SolidColorBrush(Color.FromRgb(236, 58, 88)),
                Text      = "ATop secret",
                Name      = "testBtn1",
                SortIndex = 6,
                Container = ClassificationButtonCollection
            });
            ClassificationButtonCollection.AddCollection(new ClassificationButton()
                                                         //2
            {
                Color     = new SolidColorBrush(Color.FromRgb(252, 120, 84)),
                Text      = "Top secret",
                Name      = "testBtn2",
                SortIndex = 5,
                Container = ClassificationButtonCollection
            });
            ClassificationButtonCollection.AddCollection(new ClassificationButton()
                                                         //3
            {
                Color     = new SolidColorBrush(Color.FromRgb(236, 58, 88)),
                Text      = "Top guarded long headljnjnjnjnj",
                Name      = "testBtn3",
                SortIndex = 4,
                Container = ClassificationButtonCollection
            });
            ClassificationButtonCollection.AddCollection(new ClassificationButton()
                                                         //4
            {
                Color     = new SolidColorBrush(Color.FromRgb(252, 222, 83)),
                Text      = "Guarded",
                Name      = "testBtn4",
                SortIndex = 3,
                Container = ClassificationButtonCollection
            });
            ClassificationButtonCollection.AddCollection(new ClassificationButton()
                                                         //5
            {
                Color     = new SolidColorBrush(Color.FromRgb(72, 247, 150)),
                Text      = "Classified B",
                Name      = "testBtn5",
                SortIndex = 2,
                Container = ClassificationButtonCollection
            });
            ClassificationButtonCollection.AddCollection(new ClassificationButton()
                                                         //6
            {
                Color     = new SolidColorBrush(Colors.White),
                Text      = "Top secret",
                Name      = "None",
                SortIndex = 1,
                Container = ClassificationButtonCollection
            });
            ClassificationButtonCollection.AddCollection(new ClassificationButton()
                                                         //6
            {
                Color     = new SolidColorBrush(Colors.White),
                Text      = "None",
                Name      = "None",
                SortIndex = 0,
                Container = ClassificationButtonCollection
            });


            XAMLStackPanel.Children.Add(ClassificationButtonCollection); // add to Xaml

            ClassificationButtonCollection.Name      = "ClassificationButtonCollection";
            ClassificationButtonCollection.Margin    = new Thickness(5);
            ClassificationButtonCollection.IsUseMore = false; //visible or hiden button more
        }
예제 #3
0
        public void InitializeClasificationButtonCollection()
        {
            var ClassificationButtonCollection = new CxControlLibrary.ClassificationButtonCollection();

            ClassificationButtonCollection.HorizontalAlignment = HorizontalAlignment.Center;
            ClassificationButtonCollection.VerticalAlignment   = VerticalAlignment.Center;


            ClassificationButtonCollection.AddCollection(new ClassificationButton()
            {
                Color     = new SolidColorBrush(Color.FromRgb(236, 58, 88)),
                Text      = "Top secret",
                Name      = "testBtn1",
                SortIndex = 6
            });
            ClassificationButtonCollection.AddCollection(new ClassificationButton()
                                                         //2
            {
                Color     = new SolidColorBrush(Color.FromRgb(252, 120, 84)),
                Text      = "Top secret",
                Name      = "testBtn2",
                SortIndex = 5
            });
            ClassificationButtonCollection.AddCollection(new ClassificationButton()
                                                         //3
            {
                Color     = new SolidColorBrush(Color.FromRgb(236, 58, 88)),
                Text      = "Top guarded long headljnjnjnjnj",
                Name      = "testBtn3",
                SortIndex = 4
            });
            ClassificationButtonCollection.AddCollection(new ClassificationButton()
                                                         //4
            {
                Color     = new SolidColorBrush(Color.FromRgb(252, 222, 83)),
                Text      = "Guarded",
                Name      = "testBtn4",
                SortIndex = 3
            });
            ClassificationButtonCollection.AddCollection(new ClassificationButton()
                                                         //5
            {
                Color     = new SolidColorBrush(Color.FromRgb(72, 247, 150)),
                Text      = "Classified B",
                Name      = "testBtn5",
                SortIndex = 2
            });
            ClassificationButtonCollection.AddCollection(new ClassificationButton()
                                                         //6
            {
                Color     = new SolidColorBrush(Colors.White),
                Text      = "Top secret",
                Name      = "None",
                SortIndex = 1
            });
            ClassificationButtonCollection.AddCollection(new ClassificationButton()
                                                         //6
            {
                Color     = new SolidColorBrush(Colors.White),
                Text      = "None",
                Name      = "None",
                SortIndex = 0
            });


            XAMLStackPanel.Children.Add(ClassificationButtonCollection); // add to Xaml

            ClassificationButtonCollection.Name           = "ClassificationButtonCollection";
            ClassificationButtonCollection.Margin         = new Thickness(5);
            ClassificationButtonCollection.HaveMoreButton = Visibility.Collapsed; //visible or hiden button more
        }
예제 #4
0
        public void InitializeClasificationButtonCollection2()
        {
            var ClassificationButtonCollection2 = new CxControlLibrary.ClassificationButtonCollection();

            ClassificationButtonCollection2.HorizontalAlignment = HorizontalAlignment.Center;
            ClassificationButtonCollection2.VerticalAlignment   = VerticalAlignment.Center;


            ClassificationButtonCollection2.AddCollection(new ClassificationButton()
            {
                Color = new SolidColorBrush(Color.FromRgb(236, 58, 88)),
                Text  = "Top secret",
                Name  = "testBtn1"
            });
            ClassificationButtonCollection2.AddCollection(new ClassificationButton()
                                                          //2
            {
                Color = new SolidColorBrush(Color.FromRgb(252, 120, 84)),
                Text  = "Top secret",
                Name  = "testBtn2"
            });
            ClassificationButtonCollection2.AddCollection(new ClassificationButton()
                                                          //3
            {
                Color = new SolidColorBrush(Color.FromRgb(236, 58, 88)),
                Text  = "Top guarded long headljnjnjnjnj",
                Name  = "testBtn3"
            });
            ClassificationButtonCollection2.AddCollection(new ClassificationButton()
                                                          //4
            {
                Color = new SolidColorBrush(Color.FromRgb(252, 222, 83)),
                Text  = "Guarded",
                Name  = "testBtn4"
            });
            //ClassificationButtonCollection2.AddCollection(new ClassificationButton()
            ////5
            //{
            //    Color = new SolidColorBrush(Color.FromRgb(72, 247, 150)),
            //    Text = "Classified B",
            //    Name = "testBtn5"
            //});
            //ClassificationButtonCollection2.AddCollection(new ClassificationButton()
            ////6
            //{
            //    Color = new SolidColorBrush(Colors.White),
            //    Text = "Top secret",
            //    Name = "None"
            //});
            //ClassificationButtonCollection2.AddCollection(new ClassificationButton()
            ////6
            //{
            //    Color = new SolidColorBrush(Colors.White),
            //    Text = "None",
            //    Name = "None"
            //});


            XAMLStackPanel.Children.Add(ClassificationButtonCollection2); // add to Xaml
            ClassificationButtonCollection2.Name           = "ClassificationButtonCollection2";
            ClassificationButtonCollection2.Margin         = new Thickness(5);
            ClassificationButtonCollection2.HaveMoreButton = Visibility.Visible; //visible or hiden button more
        }
        public static void InitCxButtonCollection(ref
                                                  ClassificationButtonCollection cxClassificationButtonCollection)
        {
            cxClassificationButtonCollection.AddCollection(
                new ClassificationButton()
            {
                Color     = new SolidColorBrush(Color.FromRgb(236, 58, 88)),
                MarkImage = ClassificationButton.GetIcon("Red"),
                Text      = "Top secret",
                Name      = "Top_secret",
                SortIndex = 0
            });
            cxClassificationButtonCollection.AddCollection(
                new ClassificationButton()
            {
                Color     = new SolidColorBrush(Color.FromRgb(252, 120, 84)),
                MarkImage = ClassificationButton.GetIcon("RedOrange"),
                Text      = "Top guarded long headl...",
                Name      = "Top_guarded_long_headl",
                SortIndex = 1
            });
            cxClassificationButtonCollection.AddCollection(
                new ClassificationButton()
            {
                Color     = new SolidColorBrush(Color.FromRgb(250, 157, 46)),
                MarkImage = ClassificationButton.GetIcon("Orange"),
                Text      = "Guardeded",
                Name      = "Guardeded",
                SortIndex = 2
            });

            cxClassificationButtonCollection.AddCollection(
                new ClassificationButton()
            {
                Color     = new SolidColorBrush(Color.FromRgb(252, 222, 83)),
                MarkImage = ClassificationButton.GetIcon("Yellow"),
                Text      = "Classified A",
                Name      = "Classified_A",
                SortIndex = 3
            });
            cxClassificationButtonCollection.AddCollection(
                new ClassificationButton()
            {
                Color     = new SolidColorBrush(Color.FromRgb(72, 247, 150)),
                MarkImage = ClassificationButton.GetIcon("Green"),
                Text      = "Classified B",
                Name      = "Classified_B",
                SortIndex = 4
            });
            cxClassificationButtonCollection.AddCollection(
                new ClassificationButton()
            {
                Color = new SolidColorBrush(Color
                                            .FromRgb(114, 238, 249)),
                MarkImage = ClassificationButton.GetIcon("Blue"),
                Text      = "General",
                Name      = "General",
                SortIndex = 5
            });
            cxClassificationButtonCollection.AddCollection(
                new ClassificationButton()
            {
                Color     = new SolidColorBrush(Colors.White),
                MarkImage = ClassificationButton.GetIcon("White"),
                Text      = "None",
                Name      = "None",
                SortIndex = 6
            });
            cxClassificationButtonCollection.IsUseMore = true;
            cxClassificationButtonCollection.SortedBy  = true;
        }