public image_frame()
{
InitializeComponent();
//this.title_bar.Background = configurations.contribution_view_title_bar_color;
//Static Configuration Values:
this.the_item.Width = configurations.frame_width;
this.the_item.Height = 300;
this.the_content.Width = configurations.frame_width;
this.the_media.Margin = new Thickness(0, -1 * configurations.frame_title_bar_height, 0, 0);
//this.title_bar.Background = new SolidColorBrush(Color.;
//this.frame.BorderBrush = new SolidColorBrush(Color.;
this.title_bar.Height = configurations.frame_title_bar_height;
var b1 = new ImageBrush();
b1.ImageSource = configurations.img_close_icon;
this.close.Background = b1;
if (configurations.response_to_mouse_clicks)
this.close.Click += new RoutedEventHandler(close_Click);
//this.change_view.Click += new RoutedEventHandler(change_view_Click);
this.close.PreviewTouchDown += new EventHandler<TouchEventArgs>(close_Click);
RenderOptions.SetBitmapScalingMode(the_item, configurations.scaling_mode);
}