Beispiel #1
0
        internal void RaiseSelectedEvent(Hamburger hamburger)
        {
            var copy = Selected;

            if (copy != null)
            {
                copy(this, new HamburgerItemSelectedEventArgs(hamburger));
            }
        }
Beispiel #2
0
        internal void RaiseClickEvent(Hamburger hamburger)
        {
            var copy = Click;

            if (copy != null)
            {
                copy(this, new HamburgerItemClickedEventArgs(hamburger));
            }
        }
        /// <summary>Initializes a new instance of the <see cref="HamburgerFrameBuilder"/> class.</summary>
        public HamburgerFrameBuilder()
        {
            DeselectWhenPageNotFound = true; 
                 
            Frame = new MtFrame();
            Frame.PageAnimation = null; 
            Frame.Navigated += FrameOnNavigated;

            Hamburger = new Hamburger();
            Hamburger.Content = Frame; 
            Hamburger.ItemChanged += HamburgerOnItemChanged;
        }
 /// <summary>Initializes a new instance of the <see cref="HamburgerItemSelectedEventArgs"/> class.</summary>
 /// <param name="hamburger">The hamburger control.</param>
 public HamburgerItemSelectedEventArgs(Hamburger hamburger)
 {
     Hamburger = hamburger;
 }
 /// <summary>Initializes a new instance of the <see cref="HamburgerItemClickedEventArgs"/> class.</summary>
 /// <param name="hamburger">The hamburger.</param>
 public HamburgerItemClickedEventArgs(Hamburger hamburger)
 {
     Hamburger = hamburger;
 }
Beispiel #6
0
 internal void RaiseClickEvent(Hamburger hamburger)
 {
     var copy = Click;
     if (copy != null)
         copy(this, new HamburgerItemClickedEventArgs(hamburger));
 }
Beispiel #7
0
 internal void RaiseSelectedEvent(Hamburger hamburger)
 {
     var copy = Selected;
     if (copy != null)
         copy(this, new HamburgerItemSelectedEventArgs(hamburger));
 }
 /// <summary>Initializes a new instance of the <see cref="HamburgerItemSelectedEventArgs"/> class.</summary>
 /// <param name="hamburger">The hamburger control.</param>
 public HamburgerItemSelectedEventArgs(Hamburger hamburger)
 {
     Hamburger = hamburger;
 }
Beispiel #9
0
 /// <summary>Initializes a new instance of the <see cref="HamburgerItemClickedEventArgs"/> class.</summary>
 /// <param name="hamburger">The hamburger.</param>
 public HamburgerItemClickedEventArgs(Hamburger hamburger)
 {
     Hamburger = hamburger;
 }