This is a quick guideline to get rid of reading long and boring documentation and give you very basic information about a screen.
|
<Window x:Class="IntegratedHelpInWPF.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:DynamicHelp="clr-namespace:IntegratedHelpInWPF.AttachProperties"
xmlns:ViewPopup="clr-namespace:JerichoCOREService.View.Popup"
Title="MainWindow" Height="500" Width="800" >
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary
Source="Resources/CommonResource.xaml">
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Grid DynamicHelp:DynamicHelper.DynamicHelp="True" >
<DockPanel>
<StatusBar BorderBrush="DarkGray" Background="LightGray" DataContext="{Binding DynamicHelpViewModel}" DockPanel.Dock="Bottom">
<ContentControl Content="{Binding View}" />
</StatusBar>
<Grid>
<StackPanel Orientation="Vertical">
<Button Command="{Binding WishlistCommand}" AutomationProperties.HelpText="login.sendWishlist" Margin="10" Content="Send Wishlist" Width="100" HorizontalAlignment="Right" ></Button>
<Grid Margin="50" >
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<DockPanel >
<Label Target="{Binding ElementName=UserName}" DockPanel.Dock="Left" Margin="10" Content="_User Name"></Label>
<TextBox Name="UserName" Margin="10" AutomationProperties.HelpText="login.uname" ></TextBox>
</DockPanel>
<DockPanel Grid.Column="1" >
<Label Target="{Binding ElementName=Password}" Margin="10" Content="_Password"></Label>
<PasswordBox Name="Password" Margin="10" AutomationProperties.HelpText="login.password" ></PasswordBox>
</DockPanel>
<Button Grid.Column="2" Grid.Row="1" AutomationProperties.HelpText="login.login" Margin="10" Width="100" HorizontalAlignment="Left" >Login</Button>
</Grid>
</StackPanel>
</Grid>
</DockPanel>
</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.
In my childhood, my uncle has shown me how to see the cloud in a close look and I understand that one can draw some elements of the Earth in the sky-canvas if he/she wants to. After that the cloud becomes closer to me and It teaches me one thing that, a deeper-look to something will give you some clues to draw your imagination. You can able to see that one which you have build-up in your mind.
Years past, I have started my career as a software engineer and has been looking for passion in my coding and development which I should be to enjoy my profession and has started asking myself- 'am I doing any engineering here?!' Is my code becoming that thing which I have designed in my mind? So to find that answer I have tried that old solution here... I have decided to come closer to my code and start analyzing them. And it is really working for me and at least it gives me the confidence that I can build something that I really want to. I can draw my thinking there through my code and can build-up my vision that I have designed in my mind. It also helps me to think out of the box, solve each problems by making blocks and make me careful on each steps.
• Morshed's Technical Blog site: http://morshedanwar.wordpress.com/
• Morshed's Technical articles those are published in Codeproject site: http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=2992452
• Morshed's Linkedin profile: http://www.linkedin.com/in/morshedanwar
• Morshed's Facebook Profile : http://www.facebook.com/morshed.pulok
Beside all these I like to do - photography and music. Here is my Flickr photos : http://www.flickr.com/photos/morshed_anwar/