or
<
Window
x:Class
=
"Calculadoreta"
ResizeMode
=
"NoResize"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
KeyDown
=
"Window_KeyDown"
Title
=
"Calculadora"
Height
=
"350"
Width
=
"443"
><
Grid
x:Name
=
"Calculadora"
>
<
Grid.Background
>
<
LinearGradientBrush
EndPoint
=
"0.985,0.415"
StartPoint
=
"0.053,0.415"
>
<
GradientStop
Color
=
"#FF99B4D1"
Offset
=
"0"
/>
<
GradientStop
Color
=
"White"
Offset
=
"1"
/>
</
LinearGradientBrush
>
</
Grid.Background
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
<
RowDefinition
Height
=
"*"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
telerik:RadCalculator
Grid.RowSpan
=
"3"
Grid.ColumnSpan
=
"2"
Margin
=
"115,25,117,29"
/>
</
Grid
>
</
Window
>
Public Class Calculadoreta
Private Sub Window_KeyDown(sender As Object, e As KeyEventArgs)
If Key.Escape Then
Me.DialogResult = True
Me.Close()
End If
End Sub
End Class
<telerik:GridViewDataColumn Header="Choices" |
DataMemberBinding="{Binding Choices, Mode=TwoWay}"> |
<telerik:GridViewDataColumn.CellEditTemplate> |
<DataTemplate> |
<telerik:RadComboBox x:Name="ChoicesCombo" |
Loaded="OnChoicesComboBoxLoaded" SelectedIndex="0" |
SelectedValue="{Binding Choices, Mode=TwoWay}" > |
<telerik:RadComboBox.ItemTemplate> |
<DataTemplate> |
<CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}" |
Content="{Binding Text}" /> |
</DataTemplate> |
</telerik:RadComboBox.ItemTemplate> |
<telerik:RadComboBox.SelectionBoxTemplate> |
<DataTemplate> |
<TextBlock Text="{Binding Owner.CheckedItems, Converter={StaticResource ValueConverter}}" /> |
</DataTemplate> |
</telerik:RadComboBox.SelectionBoxTemplate> |
</telerik:RadComboBox> |
</DataTemplate> |
</telerik:GridViewDataColumn.CellEditTemplate> |
</telerik:GridViewDataColumn> |
<telerik:RadBusyIndicatorIsBusy="{Binding IsBusy, FallbackValue=False, TargetNullValue=False}" ...>
Some Buttons and TextBoxes</telerik:RadBusyIndicator>
<
Application.Resources
>
<
ResourceDictionary
>
<
ResourceDictionary.MergedDictionaries
>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml"
/>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.xaml"
/>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Docking.xaml"
/>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.GridView.xaml"
/>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Navigation.xaml"
/>
</
ResourceDictionary.MergedDictionaries
>
</
ResourceDictionary
>
</
Application.Resources
>
<
ResourceDictionary
xmlns
=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x
=
"http://schemas.microsoft.com/winfx/2006/xaml"
>
<
Style
x:Key
=
"myStyle"
TargetType
=
"Button"
>
<
Setter
Property
=
"Background"
Value
=
"Orange"
/>
<
Setter
Property
=
"FontStyle"
Value
=
"Italic"
/>
<
Setter
Property
=
"Padding"
Value
=
"8,4"
/>
<
Setter
Property
=
"Margin"
Value
=
"4"
/>
</
Style
>
<!-- Declare the template used for the left pages -->
<
DataTemplate
x:Name
=
"LeftPageTemplate"
>
<
StackPanel
Margin
=
"10"
Background
=
"LightGray"
>
</
StackPanel
>
</
DataTemplate
>
<!-- Declare the template used for the right pages -->
<
DataTemplate
x:Name
=
"RightPageTemplate"
DataType
=
"Grid"
>
<
StackPanel
Margin
=
"10"
Background
=
"LightBlue"
>
<
TextBlock
HorizontalAlignment
=
"Right"
FontSize
=
"24"
FontWeight
=
"Bold"
Text
=
"{Binding Title}"
/>
<
Image
Width
=
"240"
Height
=
"320"
Source
=
"{Binding Image}"
/>
<
StackPanel
HorizontalAlignment
=
"Right"
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Date Taken:"
/>
<
TextBlock
Text
=
"{Binding DateTaken}"
/>
</
StackPanel
>
<
StackPanel
HorizontalAlignment
=
"Right"
Orientation
=
"Horizontal"
>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Size:"
/>
<
TextBlock
Text
=
"{Binding Size}"
/>
</
StackPanel
>
</
StackPanel
>
</
DataTemplate
>
</
ResourceDictionary
>