Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
F

Feras Mazen Taleb

@Feras Mazen Taleb
About
Posts
71
Topics
34
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Online Exam System
    F Feras Mazen Taleb

    thanks a lot I appreciate your answer well I have another question I want to build this application using either ASP.NET or ASP.NET MVC 1.0 how can I take the decision in using one of them especially that I need to learn MVC before I start what are the points that I have to take in consideration when taking this decision ?

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    ASP.NET tutorial question csharp asp-net database

  • Online Exam System
    F Feras Mazen Taleb

    Hello I'm Developing an Online Examination System using ASP.NET - I just want to know the best way to store the students answer in the database is it better to store the Id of the Selected option or the value of it and What I have to store when the answer of question is text ? - how to display the quesitons depending on their type for example : Multichoice with one answer [Radio list box] Multichoice with many answer [check list box] regards ,

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    ASP.NET tutorial question csharp asp-net database

  • How To Bind Detail Table to CheckListBox
    F Feras Mazen Taleb

    ok I will try change my mind i will use another control

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WCF and WF question csharp database wpf wcf

  • How To Bind Detail Table to CheckListBox
    F Feras Mazen Taleb

    Hello I have a tricky question ? or at least as I think I have Master detail entry form by Linq To Sql (.dbml) : the detail rows will be displayed in CheckListBox so I bound the CheckListBox to Tables that contains All choices I want to add the checked items to the Business Object but by makeing binding I was wondering how can I do this by binding or a good way I know the easiest way but it is silly because I put the code in Interface layer : when the user check one choice [in Checked_eventHandler] I add the checked item to the related collection property in the business code

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WCF and WF question csharp database wpf wcf

  • problem with ObjectDataProvider inside DataTemplate
    F Feras Mazen Taleb

    I have to Bind to Method inside DataTemplate for ListBoxItem so I need to use ObjectDataProvider to determine the Method name and ofcourse the ObjectInstance will be the Object that is bound to the List Box Item that will use this template But How can I tell the Provider [In xaml] to use the bound object as Object Instatnce :confused: I tried the following code but Compiler error I got :(( <DataTemplate x:Key="ListBoxItemTemplate" > <DataTemplate.Resources> <ObjectDataProvider x:Key="CurrentRoomStateProvider" ObjectInstance={Binding } MethodName="GetRoomStateForSpecificDay" > <ObjectDataProvider.MethodParameters> <sys:DateTime>10-30-2009</sys:DateTime> </ObjectDataProvider.MethodParameters> </ObjectDataProvider> <ObjectDataProvider x:Key="CurrentRoomBookingWaitingsProvider" ObjectInstance={Binding } MethodName="GetBookingsWaitingForSpecificDay" > <ObjectDataProvider.MethodParameters> <sys:DateTime>10-30-2009</sys:DateTime> </ObjectDataProvider.MethodParameters> </ObjectDataProvider> </DataTemplate.Resources> <Border BorderBrush="#FFA69FEC" BorderThickness="2" Height="143" Width="123" > <Grid Width="120" Margin="0,0,0,0" VerticalAlignment="Top" Height="140" HorizontalAlignment="Right"> <GroupBox Margin="3.89,27,3.205,52.89" Header="Room Detail :"> <Grid> <TextBlock Margin="2.863,3.205,0,0" Text="Floor :" TextWrapping="Wrap" HorizontalAlignment="Left" Width="33.33" VerticalAlignment="Top" Height="18.57"/> <TextBlock Margin="2.863,21.775,0,0" Text="Type :" TextWrapping="Wrap" HorizontalAlignment="Left" Width="33.33" VerticalAlignment="Top" Height="21.375"/> <TextBlock Text="{Binding Path=FloorName}" ToolTip="{Binding Path=FloorName}" VerticalAlignment="Top" Height="14.57" Margin="40.193,3.205,8,0"/> <TextBlock Text="{Binding Path=RoomTypeName}" ToolTip="{Binding Path=RoomTypeName}"

    WCF and WF wpf help css wcf question

  • How to convert structure from rows to columns !!!??? very strange !
    F Feras Mazen Taleb

    I have Dictionary that contain (key values) I want to display it in Grid in WPF in one row only I mean : make the key as Column name and the related value the field value so how can i do that I think I need to Build Dynamic Class by Reflection and convert the key value of the dictionary to Properties after that initialize an object and fill its properties with values from dictionary after that bind the object to the Grid . is that right or is there any easier way ??

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    .NET (Core and Framework) question csharp css wpf tutorial

  • how to scroll zoomed imag with mouse
    F Feras Mazen Taleb

    thanks a lot could explain just a little more :doh:

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WCF and WF css tutorial question

  • how to scroll zoomed imag with mouse
    F Feras Mazen Taleb

    I want to use the mouse to scroll the image when its size bigger than the Grid so that the Scroll bar will appear I need to let the user to scroll when press the left mouse button and move the mouse on the image because user hated to use Scroll bar to move in the zoomed image :) :( :cool:

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WCF and WF css tutorial question

  • problem with Refreshing Binding Source in Media Element
    F Feras Mazen Taleb

    wow thanks ! It is a great idea I will use the file Watcher Component I think the same as windows forms one or maybe the same class

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WCF and WF wpf wcf help question

  • problem with Refreshing Binding Source in Media Element
    F Feras Mazen Taleb

    I'm using Media Element to Dispaly Video & pictures the binding to Source Property made with Convertor that Save the Binary Data to A file and return the URI of this file to the Media Element Every thing works well but When Edit The File and put other Movie or Picture the Displayed Picture Is Still the previous one until I close the Window and ReOpen it to get the Newest one this is the Binding Xaml :

    <MediaElement.Source >
    <MultiBinding Mode="TwoWay" Converter="{StaticResource RefConverter}" >
    <Binding Path="AddAnimationReference.File" Mode="TwoWay" />
    <Binding Path="AddAnimationReference.Extention" Mode="TwoWay" />
    <Binding Path="AddAnimationId" Mode="OneWay" />
    </MultiBinding>
    </MediaElement.Source>

    The convertor Code is so simple and I debugged it so I think there is no problem on this . thanks :)

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WCF and WF wpf wcf help question

  • what is the Best Practices to make MultiLayer Application
    F Feras Mazen Taleb

    hello , I studied linq to use it for Data Access Layer and I studied csla to use it for Business logic layer WPF for Interface layer I found that I didn't use them in professinal way for example : what is the suitable way to make multilayer application in Csla with Linq can I get some notices about that even in General with linq

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    LINQ csharp question wpf linq business

  • wpf themes make problems
    F Feras Mazen Taleb

    hello I used Wpf.Themes library from CodePlex in My Application When I apply a theme every thing works well except that when I open a new Window It appear empty for the first time !!!!!!!! without any control until I move the window to other position in screen the window Update its Layout why's that I watched the OutPut Window and Found the Exception that thrown to the Application and Iused to write it to the Application Output . what ever this is the Exception and its inner Exception could you tell how can I solve it or any usefull link

    Error : Cannot animate the 'Visibility'
    property on a 'System.Windows.Controls.Border'
    using a 'System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames'.
    For details see the inner exception.

    --Inner : The animation(s) applied to the 'Visibility' 
    	  property calculate a current value of 'Visible', 
                  which is not a valid value for the property.
    

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WPF question csharp wpf help announcement

  • how to make the animation starts in all direction
    F Feras Mazen Taleb

    thanks Mark it works well the image size is dynamic so I will set the CenterX and CenterY By Code after getting the Actual width for the image . :)

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WCF and WF database tutorial question

  • how to make the animation starts in all direction
    F Feras Mazen Taleb

    hello When Mouse over the image I will make it bigger by making a small trigger and when the mouse leave Image will return to its original size BUT when mouse over the image will turn to big BUT the Left Upper point will still fixed I mean I want to make it bigger in all direction :)

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WCF and WF database tutorial question

  • how to animate the button in sequencial mode ?
    F Feras Mazen Taleb

    thanks a lot I got it Now , I have gallery control that can display images or videos the animation starts from the left to the right Forever Paused when mouseover any item and resume when mouseLeave the Item I hope to have enough time to make my first article in CodeProject about my control :)

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WPF wpf question csharp com tutorial

  • how to animate the button in sequencial mode ?
    F Feras Mazen Taleb

    hello this what achieved until now 1- I decided to make the animation programmatically because I thing even if I used blend to design the animation I need to control it programmatically because I will set the same animation to many controls but with deffirent start and end point 2- I will use [DoubleAnimationUsingPath] class to design the animation path 3- Now I'm trying to look for answers for these two questions - How can I make the animation continuos of course (Forever) But What I mean Exactly is : when the control reaches the end point it will return to the start - How can I pause the the animation Programmatically thanks a lot for every one sharing me with his/her ideas

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WPF wpf question csharp com tutorial

  • how to animate the button in sequencial mode ?
    F Feras Mazen Taleb

    could you explain more ! I will try to explain what I understood I will make A dependency property IsSelected in My UserControl THis Property will e true when Any of the buttons are hovered on mouse All animations will paused when the property is True is this right ? ??? ?? ? second could you see my third replay that I inserted my code that i try to make the movement programmatically thanks a lot MR.O'Hanlon ;)

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WPF wpf question csharp com tutorial

  • how to animate the button in sequencial mode ?
    F Feras Mazen Taleb

    this is the last thing I Achieved : I added the animation to the buttons programmatically this is the code behind file :

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    using System.Windows.Media.Animation;

    namespace practiceOnAnimationClasses
    {
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Window1 : Window
    {
    public Window1()
    {
    InitializeComponent();
    }

        DoubleAnimationUsingPath Animation1 = new DoubleAnimationUsingPath();
    
        private void Window\_Loaded(object sender, RoutedEventArgs e)
        {
            List<Button> buttons = new List<Button>(5);
            buttons.Add(new Button() { Width = 120d, Height = 75d, Content = "Advertisement 1" });
            buttons.Add(new Button() { Width = 120d, Height = 75d, Content = "Advertisement 2" });
            buttons.Add(new Button() { Width = 120d, Height = 75d, Content = "Advertisement 3" });
            buttons.Add(new Button() { Width = 120d, Height = 75d, Content = "Advertisement 4" });
            buttons.Add(new Button() { Width = 120d, Height = 75d, Content = "Advertisement 5" });
    
            // Storyboard AnimationRectanglePath = (Storyboard)this.Resources\["StoryboardPath"\];
    
            int count = 0;
            foreach (var item in buttons)
            {
                MainCanvas.Children.Add(item);
                DoubleAnimation myDoubleAnimation = new DoubleAnimation();
                myDoubleAnimation.From = 75 + (count \* item.Width);
                myDoubleAnimation.To = 800;
                myDoubleAnimation.Duration = new Duration(TimeSpan.FromSeconds(15));
                myDoubleAnimation.AutoReverse = false;
                myDoubleAnimation.RepeatBehavior = RepeatBehavior.Forever;
    
                // Apply the animation to the button's Width property.
                item.BeginAnimation(Canvas.LeftProperty, myDoubleAnimation);
                count++;
            }
        }
    }
    

    }

    Xaml File it only contains the mainCanvas that I will Add Buttons to It the movement is very creasy and wrong How Can I make the movement

    WPF wpf question csharp com tutorial

  • how to animate the button in sequencial mode ?
    F Feras Mazen Taleb

    I'm waiting my friend I just need the starting point to know how to build this control

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WPF wpf question csharp com tutorial

  • how to animate the button in sequencial mode ?
    F Feras Mazen Taleb

    ABitSmart wrote:

    Take a look at this list of crazy WPF layout panels.

    thanks for that I will try to clear my idea I need to make a vertical list of photos that animate from up to down this is my simple idea in the previous xaml code you will notice that I put one button that animate from up to down repeatedly I want to put many photos but each photo has its own start and end point and when the photo reach the down I want to push it in the first (ie return it to the top) I hope that i cleared my idea :)

    You have To Search About The Truth Of Your Life Why Are you Here In Life ?

    WPF wpf question csharp com tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups