﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - UXDock + MVVM Example and questions</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDock--MVVM-Example-and-questions/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>UXDock + MVVM Example and questions</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDock--MVVM-Example-and-questions/</link><pubDate>Mon, 11 Apr 2011 21:56:17 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>UXDock mvvm</category><description>&lt;p&gt;Hello T,&lt;/p&gt;&lt;p&gt;Unfortunately, it cannot be done for now due to limitation in UXDockButton itself in your scenario.&lt;br /&gt;You can refer into the best practice to use StyleSelector in this &lt;a href="http://www.intersoftpt.com/Support/ClientUI/Documentation/#url=Intersoft.Client.Framework~Intersoft.Client.Framework.ISHeaderedItemsControl~ItemContainerStyleSelector.html" target="_blank"&gt;link&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>UXDock + MVVM Example and questions</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDock--MVVM-Example-and-questions/</link><pubDate>Mon, 11 Apr 2011 04:01:03 GMT</pubDate><dc:creator>ktersius</dc:creator><category>UXDock mvvm</category><description>Hi Handy&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Could you possibly give me an example of how it should be done?&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Regards&lt;/div&gt;
&lt;div&gt;T&lt;/div&gt;</description></item><item><title>UXDock + MVVM Example and questions</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDock--MVVM-Example-and-questions/</link><pubDate>Fri, 08 Apr 2011 08:14:42 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>UXDock mvvm</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;After discussed with our developer, I don't recommend you to use this approach. UxDockButton is not designed that way. You should not change the control template directly with UXDockSeparator.&lt;br /&gt;We would like to use Style selector for this scenario which would be more elegant.&lt;br /&gt;Unfortunately, there is a limitation to use this approach for now. We would enhance this in our next release.&lt;br /&gt;Also, You can change UXDockSeparator width by changing its width property.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>UXDock + MVVM Example and questions</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDock--MVVM-Example-and-questions/</link><pubDate>Wed, 06 Apr 2011 06:12:35 GMT</pubDate><dc:creator>MarTin</dc:creator><category>UXDock mvvm</category><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I will need more time to investigate your issue in order to provide you a solution.&lt;/p&gt;
&lt;p&gt;I'll get back to you as soon as possible.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>UXDock + MVVM Example and questions</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDock--MVVM-Example-and-questions/</link><pubDate>Wed, 06 Apr 2011 05:11:21 GMT</pubDate><dc:creator>ktersius</dc:creator><category>UXDock mvvm</category><description>&lt;p&gt;I got the separator working with the following style but I'm not sure if it is the best way to do things. Seems like overkill? Also how would I adjust the width of the button? I have tried to make the width of the "separator" smaller but that does not work. Any ideas?&lt;/p&gt;&lt;p /&gt;&lt;pre&gt;&amp;lt;Style.Triggers&amp;gt;
            &amp;lt;DataTrigger Binding="{Binding IsSeparator}" Value="true" &amp;gt;
                &amp;lt;Setter Property="Template" &amp;gt;
                    &amp;lt;Setter.Value&amp;gt;
                        &amp;lt;ControlTemplate TargetType="{x:Type Intersoft:UXDockButton}"&amp;gt;
                            &amp;lt;Grid x:Name="RootElement"&amp;gt;
                                &amp;lt;VisualStateManager.VisualStateGroups&amp;gt;
                                    &amp;lt;VisualStateGroup x:Name="CommonStates"&amp;gt;
                                        &amp;lt;VisualStateGroup.Transitions&amp;gt;
                                            &amp;lt;VisualTransition From="{x:Null}" GeneratedDuration="0:0:0.05" GeneratedEasingFunction="{x:Null}" Storyboard="{x:Null}" To="{x:Null}"/&amp;gt;
                                            &amp;lt;VisualTransition From="{x:Null}" GeneratedDuration="0:0:0.3" GeneratedEasingFunction="{x:Null}" Storyboard="{x:Null}" To="Normal"/&amp;gt;
                                        &amp;lt;/VisualStateGroup.Transitions&amp;gt;
                                        &amp;lt;VisualState x:Name="Normal"/&amp;gt;
                                        &amp;lt;VisualState x:Name="MouseOver"/&amp;gt;
                                        &amp;lt;VisualState x:Name="Pressed"/&amp;gt;
                                        &amp;lt;VisualState x:Name="HighlightFocused"/&amp;gt;
                                        &amp;lt;VisualState x:Name="Checked"/&amp;gt;
                                        &amp;lt;VisualState x:Name="Disabled"&amp;gt;
                                            &amp;lt;Storyboard&amp;gt;
                                                &amp;lt;DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/&amp;gt;
                                            &amp;lt;/Storyboard&amp;gt;
                                        &amp;lt;/VisualState&amp;gt;
                                    &amp;lt;/VisualStateGroup&amp;gt;
                                    &amp;lt;VisualStateGroup x:Name="FocusStates"&amp;gt;
                                        &amp;lt;VisualState x:Name="Focused"/&amp;gt;
                                        &amp;lt;VisualState x:Name="Unfocused"/&amp;gt;
                                    &amp;lt;/VisualStateGroup&amp;gt;
                                    &amp;lt;VisualStateGroup x:Name="KeyboardFocusStates"&amp;gt;
                                        &amp;lt;VisualState x:Name="KeyboardUnfocused"/&amp;gt;
                                        &amp;lt;VisualState x:Name="KeyboardFocused"&amp;gt;
                                            &amp;lt;Storyboard&amp;gt;
                                                &amp;lt;ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="KeyboardFocus"&amp;gt;
                                                    &amp;lt;DiscreteObjectKeyFrame KeyTime="0"&amp;gt;
                                                        &amp;lt;DiscreteObjectKeyFrame.Value&amp;gt;
                                                            &amp;lt;Visibility&amp;gt;Visible&amp;lt;/Visibility&amp;gt;
                                                        &amp;lt;/DiscreteObjectKeyFrame.Value&amp;gt;
                                                    &amp;lt;/DiscreteObjectKeyFrame&amp;gt;
                                                &amp;lt;/ObjectAnimationUsingKeyFrames&amp;gt;
                                            &amp;lt;/Storyboard&amp;gt;
                                        &amp;lt;/VisualState&amp;gt;
                                    &amp;lt;/VisualStateGroup&amp;gt;
                                    &amp;lt;!--&amp;lt;VisualStateGroup x:Name="TooltipStates"&amp;gt;
                                        &amp;lt;VisualStateGroup.Transitions&amp;gt;
                                            &amp;lt;VisualTransition From="{x:Null}" GeneratedDuration="0:0:0.1" GeneratedEasingFunction="{x:Null}" Storyboard="{x:Null}" To="{x:Null}"/&amp;gt;
                                        &amp;lt;/VisualStateGroup.Transitions&amp;gt;
                                        &amp;lt;VisualState x:Name="TooltipShow"&amp;gt;
                                            &amp;lt;Storyboard&amp;gt;
                                                &amp;lt;DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="TooltipElement"/&amp;gt;
                                            &amp;lt;/Storyboard&amp;gt;
                                        &amp;lt;/VisualState&amp;gt;
                                        &amp;lt;VisualState x:Name="TooltipHide"&amp;gt;
                                            &amp;lt;Storyboard&amp;gt;
                                                &amp;lt;DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="TooltipElement"/&amp;gt;
                                            &amp;lt;/Storyboard&amp;gt;
                                        &amp;lt;/VisualState&amp;gt;
                                    &amp;lt;/VisualStateGroup&amp;gt;--&amp;gt;
                                &amp;lt;/VisualStateManager.VisualStateGroups&amp;gt;
                                &amp;lt;MediaElement x:Name="AudioElement" Position="0" SpeedRatio="1"/&amp;gt;
                                &amp;lt;Border x:Name="OuterBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="{TemplateBinding CornerRadius}"/&amp;gt;
                                &amp;lt;Border x:Name="AnimationElement" BorderThickness="1" CornerRadius="{TemplateBinding CornerRadius}" Opacity="0"/&amp;gt;
                                &amp;lt;Grid&amp;gt;
                                    &amp;lt;Grid.RowDefinitions&amp;gt;
                                        &amp;lt;RowDefinition/&amp;gt;
                                        &amp;lt;RowDefinition/&amp;gt;
                                    &amp;lt;/Grid.RowDefinitions&amp;gt;
                                    &amp;lt;Ellipse x:Name="GlowElement" Fill="{TemplateBinding GlowingEffectColor}" HorizontalAlignment="Stretch" Opacity="1" VerticalAlignment="Stretch" Panel.ZIndex="-1"/&amp;gt;
                                &amp;lt;/Grid&amp;gt;
                                &amp;lt;Border x:Name="Glass" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding GlassBackground}" CornerRadius="{TemplateBinding CornerRadius}" Margin="1"/&amp;gt;
                                &amp;lt;Border x:Name="InnerBorder" BorderBrush="#BFFFFFFF" CornerRadius="{TemplateBinding InnerCornerRadius}" Margin="{TemplateBinding BorderThickness}" Visibility="{TemplateBinding InnerBorderVisibility}"/&amp;gt;
                                &amp;lt;Intersoft:StylishLabel x:Name="TooltipElement" BorderBrush="{x:Null}" Background="#99000000" Content="{TemplateBinding Text}" CornerRadius="8" Foreground="White" FontSize="16" HorizontalAlignment="Center" IsHitTestVisible="False" Opacity="0" Padding="8,2" VerticalAlignment="Center"/&amp;gt;
                                &amp;lt;Grid&amp;gt;
                                    &amp;lt;Border x:Name="StackMenuContainer"/&amp;gt;
                                    &amp;lt;Intersoft:ContentReflector x:Name="ContentReflector" EnableReflection="{TemplateBinding EnableReflection}" ReflectionVisibility="{TemplateBinding ReflectionVisibility}" ReflectionPosition="{TemplateBinding ReflectionPosition}" ReflectionSource="{TemplateBinding Icon}"&amp;gt;
                                        &amp;lt;Grid x:Name="ContentContainer"&amp;gt;
                                            &amp;lt;Intersoft:ImageLoader x:Name="ImageElement" /&amp;gt;
                                            &amp;lt;Intersoft:StylishLabel x:Name="StylishLabel" /&amp;gt;
                                            &amp;lt;Intersoft:UXDockSeparator Height="120" Orientation="Vertical"/&amp;gt;
                                            &amp;lt;!--&amp;lt;Intersoft:ImageLoader x:Name="ImageElement" Height="{TemplateBinding ImageHeight}" ImageSource="{TemplateBinding Icon}" ProgressBarHorizontalAlignment="Stretch" ProgressBarVerticalAlignment="Bottom" ProgressTextVisibility="{TemplateBinding ImageLoaderTextVisibility}" ProgressBarMargin="15,0,15,14" UseLoader="{TemplateBinding UseImageLoader}" Width="{TemplateBinding ImageWidth}"/&amp;gt;
                                    &amp;lt;Intersoft:StylishLabel x:Name="StylishLabel" BorderBrush="{x:Null}" Background="{x:Null}" ContentType="{TemplateBinding DisplayMode}" Content="{TemplateBinding Content}" Effect="{x:Null}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" ImageMargin="0" ImageWidth="{TemplateBinding ImageWidth}" ImageSource="{TemplateBinding Icon}" ImageHeight="{TemplateBinding ImageHeight}" Margin="{TemplateBinding Padding}" Padding="0" TextImageRelation="{TemplateBinding TextImageRelation}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/&amp;gt;--&amp;gt;
                                        &amp;lt;/Grid&amp;gt;
                                    &amp;lt;/Intersoft:ContentReflector&amp;gt;
                                    &amp;lt;Intersoft:ContentReflector x:Name="StackIndicatorElement" AutoRefresh="False" EnableReflection="{TemplateBinding EnableReflection}" ReflectionVisibility="{TemplateBinding ReflectionVisibility}" ReflectionPosition="{TemplateBinding ReflectionPosition}" ReflectionSource="{TemplateBinding StackIndicatorSource}" Visibility="Collapsed"&amp;gt;
                                        &amp;lt;Intersoft:ImageLoader x:Name="StackIndicatorImageElement" ImageSource="{TemplateBinding StackIndicatorSource}" ProgressBarHorizontalAlignment="Stretch" ProgressBarVerticalAlignment="Bottom" ProgressTextVisibility="{TemplateBinding ImageLoaderTextVisibility}" ProgressBarMargin="15,0,15,14" UseLoader="{TemplateBinding UseImageLoader}"/&amp;gt;
                                    &amp;lt;/Intersoft:ContentReflector&amp;gt;
                                &amp;lt;/Grid&amp;gt;
                                &amp;lt;Grid x:Name="IndicatorElement" HorizontalAlignment="Center" VerticalAlignment="Center"&amp;gt;
                                    &amp;lt;Image x:Name="IndicatorImageElement" Height="{TemplateBinding IndicatorHeight}" Margin="{TemplateBinding IndicatorOffset}" Width="{TemplateBinding IndicatorWidth}"/&amp;gt;
                                &amp;lt;/Grid&amp;gt;
                                &amp;lt;Border x:Name="DisabledVisualElement" Background="White" CornerRadius="{TemplateBinding CornerRadius}" IsHitTestVisible="False" Opacity="0"/&amp;gt;
                                &amp;lt;Rectangle x:Name="KeyboardFocus" IsHitTestVisible="False" Margin="2" RadiusY="{TemplateBinding CornerRadiusDouble}" RadiusX="{TemplateBinding CornerRadiusDouble}" Stroke="#FF747474" StrokeDashArray="1 1" Visibility="Collapsed"/&amp;gt;
                                &amp;lt;Border x:Name="FocusVisualElement" BorderBrush="#00156174" BorderThickness="1" CornerRadius="{TemplateBinding CornerRadius}" IsHitTestVisible="False"/&amp;gt;
                            &amp;lt;/Grid&amp;gt;
                        &amp;lt;/ControlTemplate&amp;gt;
                    &amp;lt;/Setter.Value&amp;gt;
                &amp;lt;/Setter&amp;gt;
            &amp;lt;/DataTrigger&amp;gt;
        &amp;lt;/Style.Triggers&amp;gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;</description></item><item><title>UXDock + MVVM Example and questions</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDock--MVVM-Example-and-questions/</link><pubDate>Tue, 05 Apr 2011 09:35:56 GMT</pubDate><dc:creator>ktersius</dc:creator><category>UXDock mvvm</category><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;Thanks for the updated bins. I now have another issue. I need to add separators in the dock. I have added a datatemplate to the UxDockButton and the separator is created, but when I hover over the separator with my mouse an object null reference exception is thrown..&lt;/p&gt;
&lt;p&gt;It seems that there is some kind of mouse over event that gets raised and then causes the exception.&lt;/p&gt;
&lt;p&gt;If this is not the way to add a dynamic separator, based on the actual bound item please adivse how it can be done.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;Style x:Key="UXDockButtonStyle1" TargetType="Intersoft:UXDockButton"&amp;gt;
        &amp;lt;Setter Property="StackMenuStyle" Value="{StaticResource UXStackMenuStyle1}"/&amp;gt;
        &amp;lt;Setter Property="Command" Value="{Binding MenuClickCommand}"/&amp;gt;
        &amp;lt;Setter Property="CommandParameter" Value="{Binding }"/&amp;gt;
        &amp;lt;Style.Triggers&amp;gt;
            &amp;lt;DataTrigger Binding="{Binding IsSeparator}" Value="true" &amp;gt;
                &amp;lt;Setter Property="Template" &amp;gt;
                    &amp;lt;Setter.Value&amp;gt;
                        &amp;lt;ControlTemplate&amp;gt;                            
                                &amp;lt;Intersoft:UXDockSeparator Orientation="Vertical"/&amp;gt;                             
                        &amp;lt;/ControlTemplate&amp;gt;
                    &amp;lt;/Setter.Value&amp;gt;                    
                &amp;lt;/Setter&amp;gt;          
            &amp;lt;/DataTrigger&amp;gt;
        &amp;lt;/Style.Triggers&amp;gt;
&amp;lt;/Style&amp;gt;&lt;/pre&gt;
&lt;p&gt; Also how would one change the tooltip font when you hover over the icon?&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>UXDock + MVVM Example and questions</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDock--MVVM-Example-and-questions/</link><pubDate>Tue, 22 Mar 2011 21:45:02 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>UXDock mvvm</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;We are planning to release at the end of month. FYI, I attached a nightly build (disclaimer:on). This hotfix has not been fully tested (not official). We are glad to receive any feedback regarding this hotfix. Hope this helps you to continue your development process.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy &lt;/p&gt;</description></item><item><title>UXDock + MVVM Example and questions</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDock--MVVM-Example-and-questions/</link><pubDate>Tue, 22 Mar 2011 03:32:59 GMT</pubDate><dc:creator>ktersius</dc:creator><category>UXDock mvvm</category><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;When is the next release due? I would appreciate a hotfix a.s.a.p so that I can go on with my development.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>UXDock + MVVM Example and questions</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDock--MVVM-Example-and-questions/</link><pubDate>Mon, 21 Mar 2011 11:18:04 GMT</pubDate><dc:creator>MarTin</dc:creator><category>UXDock mvvm</category><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Here is the WPF sample file for commanding scenario.&lt;/p&gt;
&lt;p&gt;For your 1st issue about the image of sub items, it is confirmed as a bug in WPF application.&lt;/p&gt;
&lt;p&gt;I have reported this issue to the developer team to be investigated further. I believe the hotfix for this issue will be available in the next release. If you urgently need the hotfix, I could send you the nightly build when it is available.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>UXDock + MVVM Example and questions</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDock--MVVM-Example-and-questions/</link><pubDate>Thu, 17 Mar 2011 06:57:32 GMT</pubDate><dc:creator>ktersius</dc:creator><category>UXDock mvvm</category><description>&lt;p&gt;Hi Martin &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the project. Unfortunately my project is a WPF project. I had a look at the code and it looks the same as my WPF project code. Would it be possible to provide me with a WPF version of the code you provided?&lt;/p&gt;
&lt;p&gt;Edit : I have updated my solution to include a silverlight copy with the exact same code and in the silverlight project everything works fine... So it seems there is a bug in the WPF libraries or I'm doing something wrong. Please have a look.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;</description></item><item><title>UXDock + MVVM Example and questions</title><link>http://www.intersoftsolutions.com/Community/ClientUI/UXDock--MVVM-Example-and-questions/</link><pubDate>Tue, 15 Mar 2011 09:15:31 GMT</pubDate><dc:creator>ktersius</dc:creator><category>UXDock mvvm</category><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;Where can I get a project sample of UXDock with MVVM? None of the samples use UXDock with MVVM. &lt;/p&gt;
&lt;p&gt;I have tried to recreate a project based on the helpfile's MVVM exaple of ButtonObject and ItemObject. It works up to a point but I'm having a couple of issues.&lt;/p&gt;
&lt;p&gt;1. The images of the UxDockButtons work file but the images of the sub items(UxStackItem?) do not work, only the text is displayed. &lt;/p&gt;
&lt;p&gt;2. How do I link up a click command to the actual ItemObject. I want to be able to add a command to the ItemObject and bind the click event to this command.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;Below are the code I'm using as from the example.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:Intersoft="http://intersoft.clientui.com/schemas"
		xmlns:vm="clr-namespace:Intersoft"
		xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
		mc:Ignorable="d"
		x:Class="Intersoft.MainWindow"
		x:Name="Window"
		Title="MainWindow"
		Width="640"
		Height="480"&amp;gt;
        &amp;lt;Grid x:Name="LayoutRoot" Background="White"&amp;gt;
        &amp;lt;Grid.DataContext&amp;gt;
            &amp;lt;vm:MainPageViewModel/&amp;gt;
        &amp;lt;/Grid.DataContext&amp;gt;
        &amp;lt;Intersoft:UXDock 
		 ItemsSource="{Binding Buttons}" DisplayMemberPath="Text"  ImageMemberPath="Image" CollectionMemberPath="SubItems"/&amp;gt;
    &amp;lt;/Grid&amp;gt;
&amp;lt;/Window&amp;gt;&lt;/pre&gt;&lt;pre&gt;public class ButtonObject: INotifyPropertyChanged
    {
        private ObservableCollection&amp;lt;ItemObject&amp;gt; _subItems;
        private string _text;
        private string _image;
        public ObservableCollection&amp;lt;ItemObject&amp;gt; SubItems
        {
            get { return this._subItems; }
            set
            {
                if (this._subItems != value)
                {
                    this._subItems = value;
                    this.OnPropertyChanged("SubItems");
                }
            }
        }
        public string Text
        {
            get { return this._text; }
            set
            {
                if (this._text != value)
                {
                    this._text = value;
                    this.OnPropertyChanged("Text");
                }
            }
        }
        public string Image
        {
            get { return this._image; }
            set
            {
                if (this._image != value)
                {
                    this._image = value;
                    this.OnPropertyChanged("Image");
                }
            }
        }
        protected void OnPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        public event PropertyChangedEventHandler PropertyChanged;
    }&lt;/pre&gt;&lt;pre&gt;public class ItemObject : INotifyPropertyChanged
    {
        private string _text;
        private string _image;
        public string Text
        {
            get { return this._text; }
            set
            {
                if (this._text != value)
                {
                    this._text = value;
                    this.OnPropertyChanged("Text");
                }
            }
        }
        public string Image
        {
            get { return this._image; }
            set
            {
                if (this._image != value)
                {
                    this._image = value;
                    this.OnPropertyChanged("Image");
                }
            }
        }
        protected void OnPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        public event PropertyChangedEventHandler PropertyChanged;
    }&lt;/pre&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt; public class MainPageViewModel : INotifyPropertyChanged
    {
		 public MainPageViewModel()
        {
            this.Buttons = new ObservableCollection&amp;lt;ButtonObject&amp;gt;();
            this.Buttons.Add(new ButtonObject() { Text = "Home", Image = "robot.png" });
            this.Buttons.Add(new ButtonObject() { Text = "Clock", Image = "robot.png" });
            this.Buttons.Add(new ButtonObject() { Text = "Photo", Image = "robot.png" });
            this.Buttons.Add(new ButtonObject() { Text = "Mail", Image = "robot.png" });
            ButtonObject document = new ButtonObject() { Text = "Document", Image = "robot.png" };
            document.SubItems = new ObservableCollection&amp;lt;ItemObject&amp;gt;();
            document.SubItems.Add(new ItemObject() { Text = "Video", Image = "robot.png" });
            document.SubItems.Add(new ItemObject() { Text = "Picture", Image = "robot.png" });
            document.SubItems.Add(new ItemObject() { Text = "Music", Image = "robot.png" });
            document.SubItems.Add(new ItemObject() { Text = "Text", Image = "robot.png" });
            this.Buttons.Add(document);
        }
        private ObservableCollection&amp;lt;ButtonObject&amp;gt; _buttons;
        public ObservableCollection&amp;lt;ButtonObject&amp;gt; Buttons
        {
            get { return this._buttons; }
            set
            {
                if (this._buttons != value)
                {
                    this._buttons = value;
                    this.OnPropertyChanged("Buttons");
                }
            }
        }
        protected void OnPropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        public event PropertyChangedEventHandler PropertyChanged;
    }
&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p /&gt;</description></item></channel></rss>