Click here to Skip to main content
13,632,434 members
Click here to Skip to main content

Tagged as

Stats

148.4K views
8.1K downloads
134 bookmarked
Posted 10 Aug 2011
Licenced CPOL

AvalonDock and MVVM

, 9 Oct 2011
Demonstrates a technique for integrating AvalonDock with an MVVM application.
<UserControl 
    x:Class="SampleApp.DocumentOverviewPaneView"
    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" 
    xmlns:local="clr-namespace:SampleApp"
    xmlns:ViewModels="clr-namespace:SampleApp.ViewModels;assembly=SampleApp.ViewModels"
    mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="300"
    >
    <UserControl.Resources>
    </UserControl.Resources>
    
    <StackPanel>
        <StackPanel
            Orientation="Horizontal"
            >
            <TextBlock
                Text="File:"
                />
            <TextBlock
                Text="{Binding FileName}"
                />
        </StackPanel>
        <StackPanel
            Orientation="Horizontal"
            >
            <TextBlock
                Text="Path:"
                />
            <TextBlock
                Text="{Binding DirectoryPath}"
                />
        </StackPanel>
        <StackPanel
            Orientation="Horizontal"
            >
            <TextBlock
                Text="Lines:"
                />
            <TextBlock
                Text="{Binding LineCount}"
                />
        </StackPanel>
        <StackPanel
            Orientation="Horizontal"
            >
            <TextBlock
                Text="Words:"
                />
            <TextBlock
                Text="{Binding WordCount}"
                />
        </StackPanel>
    </StackPanel>
    
</UserControl>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Ashley Davis
Chief Technology Officer OldView
Australia Australia
My book Data Wrangling with JavaScript is now live:

https://www.manning.com/books/data-wrangling-with-javascript

I have a long history in software development with many years in apps, web apps, backends, serious games, simulations and VR. Making technology work for business is what I do: building bespoke software solutions that span multiple platforms.

I have years of experience managing development teams, preparing technical strategies and creation of software products. I can explain complicated technology to senior management. I have delivered cutting-edge products in fast-paced and high-pressure environments. I know how to focus and prioritize to get the important things done.

I am a passionate technologist and agile practitioner. I have had great success with TDD and am convinced of its ability to produce better code that stabilizes more quickly while being evolved rapidly. I'm a fan of functional programming and its potential for safety, predictability & concurrency.

I contribute to open source and have founded multiple industry groups.

I'm also a keen systems trader, currently trading stocks on the ASX.

Creator of Market Wizard:

https://www.market-wizard.com.au/

Creator of Data-Forge:

http://www.data-forge-js.com/

Web

www.codecapers.com.au

Meetups

www.meetup.com/Game-Technology-Brisbane
www.meetup.com/Game-development-Brisbane
www.meetup.com/brisbane-unity-developers

Open source

https://github.com/codecapers
https://github.com/Real-Serious-Games
https://github.com/data-forge

Blogs

www.what-could-possibly-go-wrong.com
www.the-data-wrangler.com

Skills

Management of development teams & projects
Coaching developers
Making sense of technology for senior management
Developing technical strategies
Data wrangling & visualization.
Desktop, cloud/web & mobile apps.
Game dev, serious games, simulations & VR experiences.

See Linked-in for full history:

https://www.linkedin.com/in/ashleydavis75/

You may also be interested in...

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01 | 2.8.180712.1 | Last Updated 10 Oct 2011
Article Copyright 2011 by Ashley Davis
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid