Example #1
0
        private void CCTVList_Loaded(object sender, RoutedEventArgs e)
        {
            var CCTVItem  = CCTVListView.ContainerFromItem(CCTVSelectedItem) as ListViewItem;
            var ChildGrid = UIElementUtil.FindChild <Grid>(CCTVItem, "ChildGrid");

            if (ChildGrid != null)
            {
                ChildGrid.BorderBrush = ConverHexToColor.GetSolidColorBrush("#ffcb00");
            }
        }
Example #2
0
        private async void HighLightSelectedItem(object Item)
        {
            if (Item == null)
            {
                return;
            }

            await Task.Delay(100);

            foreach (Grid gd in UIElementUtil.FindChildArray <Grid>(CCTVListView, "ChildGrid"))
            {
                gd.BorderBrush = new SolidColorBrush(Windows.UI.Colors.Transparent);
            }

            var CCTVItem  = CCTVListView.ContainerFromItem(Item) as ListViewItem;
            var ChildGrid = UIElementUtil.FindChild <Grid>(CCTVItem, "ChildGrid");

            if (ChildGrid != null)
            {
                ChildGrid.BorderBrush = ConverHexToColor.GetSolidColorBrush("#ffcb00");
            }
        }