|
<Window ResxExtension.DefaultResxName="WpfApp.MainWindow" Language="{UICulture}"
x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:src="clr-namespace:WpfApp"
Title="{Resx Window.Title}" Height="300" Width="334" Icon="{Resx Window.Icon}">
<Grid>
<Grid.Resources>
<src:SampleEnumConverter x:Key="sampleEnumConverter"/>
</Grid.Resources>
<Menu Height="22" Name="_mainMenu" VerticalAlignment="Top">
<MenuItem Header="{Resx _fileMenuItem.Header}" Name="_fileMenuItem">
<MenuItem Header="{Resx _newMenuItem.Header}" Icon="{Resx _newMenuItem.Icon}" Name="_newMenuItem" />
<MenuItem Header="{Resx _openMenuItem.Header}" Icon="{Resx _openMenuItem.Icon}" Name="_openMenuItem" />
<Separator />
<MenuItem Header="{Resx _exitMenuItem.Header}" Icon="{Resx _exitMenuItem.Icon}" Name="_exitMenuItem" />
</MenuItem>
<MenuItem Header="{Resx _languageMenuItem.Header}" Name="_languageMenuItem">
<MenuItem Header="{Resx _englishMenuItem.Header}" Name="_englishMenuItem" IsCheckable="True" />
<MenuItem Header="{Resx _frenchMenuItem.Header}" Name="_frenchMenuItem" />
</MenuItem>
<MenuItem Header="{Resx _helpMenuItem.Header}" Name="_helpMenuItem">
<MenuItem Header="{Resx _aboutMenuItem.Header}" Icon="{Resx _aboutMenuItem.Icon}" Name="_aboutMenuItem" />
</MenuItem>
</Menu>
<TabControl Margin="10,40,10,10" Name="_tabControl">
<TabItem Header="{Resx _fileTab.Header}" Name="_fileTab">
<Grid>
<Button Content="{Resx _addButton.Content}" Height="21" HorizontalAlignment="Left" Margin="11,26,0,0" Name="_addButton" VerticalAlignment="Top" Width="97" />
<Button Content="{Resx _removeButton.Content}" Height="21" HorizontalAlignment="Left" Margin="11,53,0,0" Name="_removeButton" VerticalAlignment="Top" Width="97" />
<ListBox Margin="122,28,13,38" Name="_fileListBox">
</ListBox>
<TextBlock Height="26" Margin="6,0,6,6" Name="_selectedTextBlock" VerticalAlignment="Bottom">
<TextBlock.Text>
<Resx Key="_selectedTextBlock.Text"
BindingElementName="_fileListBox"
BindingPath="SelectedItem"
BindingConverter="{StaticResource sampleEnumConverter}"/>
</TextBlock.Text>
</TextBlock>
</Grid>
</TabItem>
<TabItem Header="{Resx _directoryTab.Header}" Name="_directoryTab">
<Grid>
<TextBox Height="21" Name="_dirTextBox" Margin="14,16,24,0" VerticalAlignment="Top" />
</Grid>
</TabItem>
</TabControl>
</Grid>
</Window>
|
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.
I am currently the Software Architect at
Infralution. Infralution develops .NET components and solutions including:
Globalizer - localization for .NET made easy. Let your translators instantly preview translations and even build the localized version of your application without giving away your source code.
Infralution Licensing System - simple, secure and affordable licensing for .NET apps and components
Virtual Tree - superfast, flexible, databound tree/list view