Hello
How do I set the top left form icon form via code?
I have attached a sample section of code and
given the Image a name of imgFormIcon but
I cannot reference via code?
Regards,
Simon
How do I set the top left form icon form via code?
I have attached a sample section of code and
given the Image a name of imgFormIcon but
I cannot reference via code?
Regards,
Simon
<
telerik:RadWindow
x:Class
=
"Designer.Forms.LoginWindow"
<br> xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"<
br
> xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"<
br
> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"<
br
> Height="202" Width="406" FontFamily="Verdana" WindowStartupLocation="CenterScreen" Name="frmLogin" Loaded="frmLogin_Loaded" Header="Login"><
br
> <
telerik:RadWindow.IconTemplate
><
br
> <
DataTemplate
><
br
> <
Image
Source
=
""
Stretch
=
"UniformToFill"
MaxHeight
=
"16"
MaxWidth
=
"16"
Name
=
"imgFormIcon"
/><
br
> </
DataTemplate
><
br
> </
telerik:RadWindow.IconTemplate
><
br
> <
Grid
><
br
> <
Grid.RowDefinitions
><
br
> <
RowDefinition
Height
=
"12"
/><
br
> <
RowDefinition
Height
=
"24"
/><
br
> <
RowDefinition
Height
=
"36"
/><
br
> <
RowDefinition
Height
=
"24"
/><
br
> <
RowDefinition
Height
=
"24"
/><
br
> <
RowDefinition
Height
=
"12"
/><
br
> <
RowDefinition
Height
=
"24"
/><
br
> <
RowDefinition
Height
=
"212*"
/><
br
> </
Grid.RowDefinitions
><
br
> <
Grid.ColumnDefinitions
><
br
> <
ColumnDefinition
Width
=
"70"
/><
br
> <
ColumnDefinition
Width
=
"120"
/><
br
> <
ColumnDefinition
Width
=
"240"
/><
br
> </
Grid.ColumnDefinitions
><
br
> <
Image
Height
=
"48"
HorizontalAlignment
=
"Left"
Margin
=
"12,0,0,0"
Name
=
"imgIcon"
Stretch
=
"Fill"
VerticalAlignment
=
"Top"
Width
=
"48"
Grid.Row
=
"1"
Grid.RowSpan
=
"2"
/><
br
> <
Label
Content
=
"Login Credentials:"
Grid.Column
=
"1"
Grid.Row
=
"1"
Height
=
"24"
HorizontalAlignment
=
"Left"
Margin
=
"0,0,0,0"
Name
=
"label1"
VerticalAlignment
=
"Top"
FontSize
=
"10"
FontWeight
=
"Bold"
/><
br
> <
Label
Content
=
"Authentication:"
Grid.Column
=
"1"
Grid.Row
=
"2"
Height
=
"24"
HorizontalAlignment
=
"Left"
Margin
=
"0,0,0,0"
Name
=
"label2"
VerticalAlignment
=
"Top"
FontSize
=
"10"
/><
br
> <
Label
Content
=
"Username:"
Grid.Column
=
"1"
Grid.Row
=
"3"
Height
=
"24"
HorizontalAlignment
=
"Left"
Margin
=
"0,0,0,0"
Name
=
"label3"
VerticalAlignment
=
"Top"
FontSize
=
"10"
/><
br
> <
Label
Content
=
"Password:"
Grid.Column
=
"1"
Grid.Row
=
"4"
Height
=
"24"
HorizontalAlignment
=
"Left"
Margin
=
"0,0,0,0"
Name
=
"label4"
VerticalAlignment
=
"Top"
FontSize
=
"10"
/><
br
> <
RadioButton
Content
=
"Windows Authentication"
Grid.Column
=
"2"
Grid.Row
=
"2"
Grid.RowSpan
=
"2"
Height
=
"16"
HorizontalAlignment
=
"Left"
Margin
=
"0,4,0,0"
Name
=
"rdbWindowsAuthentication"
VerticalAlignment
=
"Top"
FontSize
=
"10"
GroupName
=
"Authentication"
IsChecked
=
"True"
/><
br
> <
RadioButton
Content
=
"Standard Authentication"
Grid.Column
=
"2"
Grid.Row
=
"2"
Grid.RowSpan
=
"2"
Height
=
"16"
HorizontalAlignment
=
"Left"
Margin
=
"0,20,0,0"
Name
=
"rdbStandardAuthentication"
VerticalAlignment
=
"Top"
FontSize
=
"10"
GroupName
=
"Authentication"
/><
br
> <
telerik:RadMaskedTextBox
Grid.Column
=
"2"
Grid.Row
=
"3"
HorizontalAlignment
=
"Left"
Name
=
"txtUsername"
VerticalAlignment
=
"Top"
Width
=
"180"
MaskType
=
"None"
Mask
=
""
FontSize
=
"10"
/><
br
> <
telerik:RadMaskedTextBox
Grid.Column
=
"2"
Grid.Row
=
"4"
HorizontalAlignment
=
"Left"
Name
=
"txtPassword"
VerticalAlignment
=
"Bottom"
Width
=
"180"
MaskedText
=
""
Margin
=
"0,0,0,2"
MaskType
=
"None"
Mask
=
""
FontSize
=
"10"
/><
br
> <
telerik:RadButton
Content
=
"Login"
Grid.Column
=
"2"
Grid.Row
=
"6"
Height
=
"22"
Width
=
"75"
HorizontalAlignment
=
"Left"
Margin
=
"0,0,0,0"
Name
=
"cmdLogin"
VerticalAlignment
=
"Top"
IsDefault
=
"True"
/><
br
> <
telerik:RadButton
Content
=
"Close"
Grid.Column
=
"2"
Grid.Row
=
"6"
Height
=
"22"
Width
=
"75"
HorizontalAlignment
=
"Left"
Margin
=
"80,0,0,0"
Name
=
"cmdClose"
VerticalAlignment
=
"Top"
IsCancel
=
"True"
/><
br
> </
Grid
><
br
></
telerik:RadWindow
><
br
>