This question is locked. New answers and comments are not allowed.
I'm making a settings page where i want to change the tranparency of my hubtile from on to off. i have the IsTranparencySupported set up like this
the _Transparency var is set up like this (hope this is right)
if i manually change the value from true to false it works. but i want to use the toggle to set it. so i have the toggle set up with the 2 options checked and unchecked. see below
my toggle xaml looks like this
i can't figure out how to set the _Transparency variable in code...can you help
this is what i have...it's commented out because i'm testing different options.
IsTransparencySupported = settings.TransparencySettings._Transparency,
the _Transparency var is set up like this (hope this is right)
public
class
TransparencySettings
{
public
const
bool
_Transparency =
true
;
}
if i manually change the value from true to false it works. but i want to use the toggle to set it. so i have the toggle set up with the 2 options checked and unchecked. see below
my toggle xaml looks like this
<telerikPrimitives:RadToggleSwitch x:Name=
"ToggleTransparent"
IsChecked=
"True"
HorizontalAlignment=
"Left"
Margin=
"262,73,0,0"
VerticalAlignment=
"Top"
Content=
"On"
Unchecked=
"ToggleUnchecked"
Checked=
"ToggleChecked"
/>
i can't figure out how to set the _Transparency variable in code...can you help
this is what i have...it's commented out because i'm testing different options.
public
void
ToggleUnchecked(
object
sender, RoutedEventArgs e)
{
//ToggleTransparent.IsChecked = false;
//if (TransparencySettings._Transparency== true)
//{
// TransparencySettings._Transparency == TransparencySettings._Transparency(false);
//}
}