コード例 #1
0
        protected override void Synchronise()
        {
            base.Synchronise();
            ChatWeatherCardDataItem dataItem = this.DataItem as ChatWeatherCardDataItem;

            this.cityElement.Text        = dataItem.City;
            this.ImageElement.Image      = dataItem.Image;
            this.TemperatureElement.Text = dataItem.Temperature;
            while (this.StackElement.Children.Count > 3)
            {
                this.StackElement.Children.RemoveAt(3);
            }
            foreach (string text in dataItem.Data)
            {
                this.StackElement.Children.Add((RadElement)this.CreateDataElement(text));
            }
        }
コード例 #2
0
 public ChatWeatherCardElement(ChatWeatherCardDataItem item)
     : base((BaseChatCardDataItem)item)
 {
 }