Пример #1
0
        private void btnRO_Checked(object sender, RoutedEventArgs e)
        {
            rtb.IsReadOnly = !rtb.IsReadOnly;

            //Set the button image based on the state of the toggle button.
            if (rtb.IsReadOnly)
            {
                btnRO.Content = RichMainPage.createImageFromUri(new Uri("/SMT.SAAS.Images;Component/Images/Office/view.png", UriKind.RelativeOrAbsolute), 20, 20);
            }
            else
            {
                btnRO.Content = RichMainPage.createImageFromUri(new Uri("/SMT.SAAS.Images;Component/Images/Office/edit.png", UriKind.RelativeOrAbsolute), 20, 20);
            }
            ReturnFocus();
        }
Пример #2
0
 public MPContextMenu(RichMainPage mp)
 {
     this.mp = mp;
 }
Пример #3
0
 public MPContextMenu(RichMainPage mp)
 {
     this.mp = mp;
 }