Skip to content

Instantly share code, notes, and snippets.

@dz0
Created October 7, 2016 18:29
Show Gist options
  • Select an option

  • Save dz0/adde269f7e66835f5502ac3dc3b2a292 to your computer and use it in GitHub Desktop.

Select an option

Save dz0/adde269f7e66835f5502ac3dc3b2a292 to your computer and use it in GitHub Desktop.
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApplication2"
xmlns:System="clr-namespace:System;assembly=mscorlib" x:Class="WpfApplication2.MainWindow"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid Margin="0,0,2,-2">
<TextBox x:Name="tb_a" HorizontalAlignment="Left" Height="23" Margin="46,81,0,0" TextWrapping="Wrap" Text="a" VerticalAlignment="Top" Width="69"/>
<TextBox x:Name="tb_b" HorizontalAlignment="Left" Height="23" Margin="214,81,0,0" TextWrapping="Wrap" Text="b" VerticalAlignment="Top" Width="63" RenderTransformOrigin="-0.095,0.565"/>
<ComboBox x:Name="comboBox" HorizontalAlignment="Left" Margin="146,82,0,0" VerticalAlignment="Top" Width="42" SelectionChanged="comboBox_SelectionChanged">
</ComboBox>
<Label x:Name="label_ats" Content="ats" HorizontalAlignment="Left" Margin="355,80,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.474,0.462" Width="54"/>
<Button x:Name="button" Content="=" HorizontalAlignment="Left" Height="28" Margin="302,78,0,0" VerticalAlignment="Top" Width="30"/>
<TextBlock x:Name="textBlock" HorizontalAlignment="Left" Margin="129,160,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="132" Width="210"><Run Text="MainWindow konstruktoriaus gale:"/><LineBreak/><Span Foreground="Black"><Run Text="comboBox.Items.Add("/></Span><Span Foreground="#FFA31515"><Run Text="&quot;+&quot;"/></Span><Span Foreground="Black"><Run Text=");"/></Span><LineBreak/><Run Text="comboBox.Items.Add("/><Span Foreground="#FFA31515"><Run Text="&quot;-&quot;"/></Span><Span Foreground="Black"><Run Text=");"/></Span><LineBreak/><Run Text="comboBox.Items.Add("/><Span Foreground="#FFA31515"><Run Text="&quot;*&quot;"/></Span><Span Foreground="Black"><Run Text=");"/></Span><LineBreak/><Run Text="comboBox.Items.Add("/><Span Foreground="#FFA31515"><Run Text="&quot;/&quot;"/></Span><Span Foreground="Black"><Run Text=");"/></Span></TextBlock>
</Grid>
</Window>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment