Note that there are some explanatory texts on larger screens.

plurals
  1. POError Cannot serialize a nested public type. why?
    primarykey
    data
    text
    <p>In the performance of this code is an error Cannot serialize a nested public type 'System.Windows.Forms.AxHost+State'.</p> <p>FlashControl my usercontrol</p> <pre><code>&lt;UserControl x:Class="Adminka.UserControls.FlashControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300" xmlns:controls="clr-namespace:MyBlogUserControls;assembly=MyBlogUserControls"&gt; &lt;Grid&gt; &lt;controls:FlashPlayer/&gt; &lt;/Grid&gt; &lt;/UserControl&gt; </code></pre> <p>FlashPlayer - usercontrol for view flash</p> <p>fd is a richtextbox, i need to replace FlashControl on TextBox, but an error occurs</p> <pre><code>error - Cannot serialize a nested public type 'System.Windows.Forms.AxHost+State'. for (int i = 0; i &lt; fd.Blocks.Count; i++) { var block = (fd.Blocks as BlockCollection).ElementAt(i); if (block is Paragraph) { var p = new Paragraph(); for (int y = 0; y &lt; ((Paragraph)block).Inlines.Count; y++) { var inline = ((Paragraph)block).Inlines.ElementAt(y); if (inline is InlineUIContainer) { var elem = ((InlineUIContainer)inline).Child; if (elem is FlashControl) { elem = new TextBox() { Text = string.Format(format, "FlashControl", (elem as FlashControl).FlashPlayer.Source) }; } ((InlineUIContainer)inline).Child = null; \\error occurs here } } block = p; } } </code></pre> <p>how to replace FlashControl on TextBox ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload