c# - WPF Windows Navigation -
I am planning to create an image structure of Windows Wpf applications.
When I 'class builder 'Select, on the right I want to load the Class Creator.xaml and when I select' text replacer ', I want to load TextReplace.xaml in the right hand. How can I navigate through the above methods?
& lt; Grid & gt; & Lt; Dockpanel Last Childfill = "True" & gt; & Lt; List box horizontal alignment = "left" name = "device menu" width = "100" & gt; & Lt; ListBoxItem Content = "Class Creator" /> & Lt; ListBoxItem Material = "Text Ressplaner" /> & Lt; / ListBox & gt; & Lt; Border borderbrush = "silver" border color = "1" name = "border1" /> & Lt; / DockPanel & gt; & Lt; / Grid & gt;
To navigate content as the host Use.
& lt; Grid & gt; & Lt; Dockpanel Last Childfill = "True" & gt; & Lt; List box horizontal alignment = "left" name = "device menu" width = "100" & gt; & Lt; ListBoxItem Content = "Class Creator" /> & Lt; ListBoxItem Material = "Text Ressplaner" /> & Lt; / ListBox & gt; & Lt; Border borderbrush = "silver" border color = "1" name = "border1" & gt; & Lt; Frame x: name = "frame1" source = "classiser.xml" /> & Lt; / Border & gt; & Lt; / DockPanel & gt; & Lt; / Grid & gt; Then in the listboxes changelog event handler, navigate to the second view as the
navigate to frame 1 (new URI ("text replayx.xml" , Uricind. Relative)); Update: Alternatively
Layout structure fits against a TabControl . You can style a TabControl according to this layout, tab header on the left and tab items on the right.
& lt; Grid & gt; & Lt; TabControl TabStripPlacement = "Left" & gt; & Lt; TabControl.Resources & gt; & Lt; Style TargetType = "{x: Type TabItem}" & gt; & Lt; Setter Property = "Header Template" & gt; & Lt; Setter.Value & gt; & Lt; DataTemplate & gt; & Lt; ContentPresenter Content = "{TemplateBinding Content}" & gt; & Lt; ContentPresenter.LayoutTransform & gt; & Lt; RotateTransform angle = "270" /> & Lt; /ContentPresenter.LayoutTransform> & Lt; / ContentPresenter & gt; & Lt; / DataTemplate & gt; & Lt; /Setter.Value> & Lt; / Setter & gt; & Lt; Setter property = "padding" value = "3" /> & Lt; / Style & gt; & Lt; /TabControl.Resources> & Lt; TabItem header = "class creator" & gt; & Lt; Local: Classciter /> & Lt; / TabItem & gt; & Lt; TabItem Headers = "Text Ressplers" & gt; & Lt; Local: TextRPLICE / & gt; & Lt; / TabItem & gt; & Lt; / TabControl & gt; & Lt; / Grid & gt;
Comments
Post a Comment