Example #1
0
        void CreateStreamView()
        {
            // Will be the control that take sup all remaining space
            if (streamView == null)
            {
                streamView = new StreamView();
            }

            Root.Children.Add(streamView);
        }
 public SingleLineViewHelper(ConversationsState state, StreamView view)
 {
     this.state = state;
     this.view = view;
 }
 void BuildViews()
 {
     if (streamView == null)
     {
         // We initialize the streamview and keep a reference to it here because
         // both the ActivityStreamView and the SingleLineStreamView use this instace
         // and only effect the visual templates shown. This would not be the
         // best reference implementation for implementing stream views but in this
         // case it gets the job done.
         streamView = new StreamView();
         view1 = new ActivityStreamViewHelper(state, streamView);
         view2 = new SingleLineViewHelper(state, streamView);
     }
 }
 public ActivityStreamViewHelper(ConversationsState state, StreamView view)
 {
     this.state = state;
     this.view = view;
 }
        void CreateStreamView()
        {
            // Will be the control that take sup all remaining space
            if (streamView == null)
                streamView = new StreamView();

            Root.Children.Add(streamView);
        }