コード例 #1
0
        private static void DocumentStyle_Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            MarkdownEditor source = sender as MarkdownEditor;

            if (source == null)
            {
                return;
            }

            source.markdown.DocumentStyle = (Style)e.NewValue;
        }
コード例 #2
0
        private static void AssetPathRoot_Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            MarkdownEditor source = sender as MarkdownEditor;

            if (source == null)
            {
                return;
            }

            source.markdown.AssetPathRoot = (string)e.NewValue;
        }