oop - Is it possible to descend from Silverlight's System.Windows.Controls.Page? -
I want to create a descendant of the page class of the Silverlight Navigation Framework, so I can execute all my normal navigation code, but I can not understand how to do this. How do I refine my XML files when I create a lineage?
It currently has the "Navigation: Pages" tag, so why should I change it with "MyPage" instead?
Example:
I currently have the following:
& lt; Navigation: Page x: Class = "See approximately" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/ 2006 / xaml "Xmlns: d =" http://schemas.microsoft.com/expression/blend/2008 "xmlns: MC =" http://schemas.openxmlformats.org/markup-compatibility/2006 "xmlns: Navigation = "Clr- namespace: System.Windows.Controls; Assembly = System.Windows.Controls.Navigation" mc: Ignorable = "d" d: DesignWidth = "640" d: DesignHeight = "480" title = "About" style = "{StaticResource PageStyle}" & gt; ... & lt; / Navigation: page & gt;
Instead, I would like (a Category MyOwnPage: System.Windows.Controls.Page has been given)
& lt; MyOwnPage ... & gt; ... & lt; / MyOwnPage & gt;
I got used to the above example, you need to refer to this Is that subassembly in the initial tag, such as:
xmlns: views = "clr-namespace: views"
and then
& lt; Announce the fundamental element in the form of scenes: MyOwnPage ... & gt; ... & lt; / View: MyOwnPage & gt;
Comments
Post a Comment