-
February 18th, 2009, 01:45 PM
#1
Highlight Your Xaml - Heres How!
Please see the following post on VBF from me detailing how to highlight your Xaml. This will make it easier to read and respond to. Thanks
http://www.vbforums.com/showthread.php?t=558394
-
February 18th, 2009, 02:16 PM
#2
Re: Highlight Your Xaml - Heres How!
go go gadget x:Lite!
Code:
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel x:Name="_titlePanel" Opacity="0" Grid.Row="0">
<TextBlock Text="Title:" Style="{StaticResource FormTitleTextBox}" Margin="0"/>
<Grid Height="25">
<Rectangle Style="{StaticResource ItemBackgroundRectangle}" />
<TextBlock x:Name="_titleTextBlock" Cursor="IBeam" TextWrapping="Wrap"
MouseLeftButtonDown="_titleTextBlock_MouseLeftButtonDown" Margin="5" />
<TextBox x:Name="_titleTextBox" Visibility="Collapsed"
KeyDown="_titleTextBox_KeyDown"
LostFocus="_titleTextBox_LostFocus"/>
</Grid>
</StackPanel>
<uc:FilterControl x:Name="_filterControl" Margin="0,10,0,0" Grid.Row="1"
FilterChanged="_filterControl_FilterChanged" Opacity="0">
</uc:FilterControl>
</Grid>
Last edited by gurge60; March 25th, 2009 at 06:17 PM.
-
February 18th, 2009, 03:01 PM
#3
Re: Highlight Your Xaml - Heres How!
Ha ha yeah its good! makes reading so much easier. The actual code is also on VBF if you are interested. Just do a search under my name. Another example:
Code:
<Window x:Class="Window1"
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"
Title="Window1" Height="300" Width="300">
<Grid>
<RichTextBox Height="79" Name="RichTextBox1" Width="278" IsDocumentEnabled="False" VerticalAlignment="Top" />
<Button HorizontalAlignment="Right" Margin="0,85,0,0" Name="Button1" Width="75" Height="23" VerticalAlignment="Top">Button</Button>
<TextBox Margin="0,126,0,61" Name="TextBox1" />
<Button Height="23" HorizontalAlignment="Right" Margin="0,0,0,12" Name="Button2" VerticalAlignment="Bottom" Width="75">Button</Button>
</Grid>
</Window>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<VisualBrush Visual="{Binding ElementName=ImageContainer}" />
</Thumb.Template>
<vsm:VisualState x:Name="Normal">
<ColorAnimation Duration="00:00:00" Storyboard.TargetName="gsRectPagerButton_0" Storyboard.TargetProperty="Color" To="{StaticResource Gradient_DarkGray_0}">
</ColorAnimation>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|