Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια

 

Αρχική σελίδα Ιστολόγια Συζητήσεις Εκθέσεις Φωτογραφιών Αρχειοθήκες

Mirrored Weblogs

  • WinJS ListView - The most important features an how to use them

    The WinJS.UI.ListView control is one of the most important in Window Store Applications. It is the basis of the application's UI and the one most familiar to users. In this post will explore the features/tweaks available for the control that are most needed to the developer when used. This post can serve as a cheatsheet to anyone wishing to use the WinJS.UI.ListView control in his applications. Adding a ListView, its Data Template, its Data Items and styling it In the part of the page you want the list to be displayed just add a div element with the data-win-control attribute set to WinJS.UI.ListView. <div id="demolistview" data-win-control="WinJS.UI.ListView"></div> The ListView by default will have a height of 400px and a width of 100%. Next, we need to add a data template for the list elements. This is done by creating a div element and setting its data-win-control attribute to WinJS.Binding.Template. Then we can use the data-win-bind attribute to bind to specific properties of the elements in the...
    31-08-2013, 07:58 από Ioannis Panagopoulos blog στο C# and .NET Tips and Tricks
    Δημοσίευση στην κατηγορία: ,
  • Model View inheritance in next eXpandFramework version

    Right now in XAF it is possible to Clone an Application Model node by simply right click on it and choose Clone from the context menu. What will happen is that an identical node will be created. However by design, further modifications are not synchronized between mother-child nodes. I am going to demonstrate a different approach that does synchronize child nodes and you can find it in eXpandFramework 13.1.6.9 or later when using any module. In the next image we see two Application Model views , first the MDO_DetailView -the base node- and then the RDO_DetailView which its ModelClass.Type descents from the MDO_DetailView ModelClass.Type. In any Object View it is now possible to add MergeDifference items like the “ Everything MDO ” we see in the above picture. The Lookup datasource of the View attribute enumerates all views of the hierarchy chain of the current View.ModelClass.Type. For now, there are two Strategies (Everything and Only Layout). The merging algorithm will create a model node out of the differences...
    30-08-2013, 14:35 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία: , ,
  • HowTo: use a Timer component for delayed execution in WinForms

    This is my contribution to: http://stackoverflow.com/questions/303116/system-windows-threading-dispatcher-and-winforms Sometimes a Timer component is useful and easy to setup in WinForms, just set its interval and then enable it, then make sure the first thing you do in its Tick event handler is to disable itself. I think Timer runs the code in its own thread, so you […]...
    25-08-2013, 20:28 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , , , , ,
  • HowTo: Display version information on WinForm title

    This is my contribution to http://stackoverflow.com/questions/7178725/version-number-in-winform-form-text I’m using the following at the WinForm of the WebCapture tool I’m making for ClipFlair: public MainForm() { InitializeComponent(); Version version = Assembly.GetExecutingAssembly().GetName().Version; Text = Text + " " + version.Major + "." + version.Minor + " (build " + version.Build + ")"; //change form title } Not showing […]...
    20-08-2013, 23:39 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , ,
  • HowTo: Save screenshot of a control hosted on a WinForm

    I’m trying to automate grabbing of activity screenshots from ClipFlair Activity Gallery, but most command-line screen capturing tools, like SiteShoter and IECapt fail to get an image from Silverlight content (they get just a background color). Some other opensource tool that I could tweek was ThumbPage, but  that didn’t support command-line and needed to disable […]...
    20-08-2013, 18:38 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , ,
  • Declarative data auditing

    In this post I will provide a discussion on how to apply auditing configurations to your XAF applications, I will use the build-in XAF Audit Trail module and the eXpand Logic module for extending the XAF Application Model . Goal Our goal is to be able to declaratively configure auditing for different scenarios. For example apply an auditing configuration to a group of objects that fit in a criterion on a predefined group of views   only when these views are shown in the main window. Background -The logic module The logic module provides the API we will use to extend the Application Model . In eXpand there are a few modules which use this API. For example three of them live in the ModeArtifactState module. In the next image we can see the structure of two of them the ConditionalAction and  the ConditionalController. Bellow there is the third child of the ModelArtifactState module ObjectView structure. I want to draw your attention to the common attributes we see in both images. All they come from the...
    20-08-2013, 14:09 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία: ,
  • Conditional assemblies merged in ModelArtifact in 13.1.6

    Hello all, The following modules do not exist anymore in 13.1.6.1 ConditionalActionState , ConditionalControllerState , ConditionalObjectView now are under the ModelArtifact omprella. Also Logic.Win merged with Logic module. So you need to remove all code and change the usings in case you have them install in your projects. There are a few breaking changes in 13.1.6.1, so please post in the forums in case you get lost with the new super fast and flexible logic ruling engine. In short everything that has to do with Logic Rules is now handled by the logic modules and there are a few classes like LogicRuleManager, LogicInstallerManager, LogicRuleCollector, LogicRuleEvaluator etc that do all the hard job. The design now is very clean and easy to follow and I am sure it will reduce many strange issues we had and will help to build new modules based on the Logic engine!...
    14-08-2013, 19:01 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία:
  • Flexible-fast layouts with CSS styles in the XAF application model

    XAF has a build-in mechanism for customizing the layout’s. However nothing can be compared with the power of native CSS styles. In this post I will discuss eXpand’s implementation of CSS styles in the XAF application model . How XAF renders a layout To render a web layout XAF uses the WebLayoutManager class. This class queries all the IModelViewLayoutElements of a DetailView.Model.Layout and renders WebControls accordingly. For example for an IModelLayoutViewItem which is an interface that links the layout element with a property editor, the WebLayoutManager will render two controls. The first one will hold the caption/label and the second one will be the actual control depending on the type of the property editor. Take a look how an looks IModelLayoutViewItem in the Model Editor . As you can see XAF supports a lot of attributes by default! Due to the large number of attributes WebLayoutManager introduces a table to hold and position our controls and a div above it to allow more flexibility in configuration. It...
    06-08-2013, 17:20 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία:
  • Gotcha: use server-side comment, not HTML comment in ASP.net

    I try to remember to use <%– and –%> instead of <!– and –> for comments in server-side web pages, to avoid having implementation details (for security reasons that is) in the output HTML and to keep the download size smaller / have the pages load faster. What came to me though the other day […]...
    29-07-2013, 01:15 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , ,
  • Creating object relationships using the application model

    In next version of eXpandFramework 13.1.5.13 it will be possible to create associations between business objects. Let’s see in details how this will work. 1. Installation – Prerequisites The runtime members can be found in the eXpand.ExpressApp assembly, therefore you need to install the XpandSystemModule. However because this assembly has platform specific versions you will not find it in the toolbox and you have to go for its win or web version which is XpandSystemWindowsFormsModule or XpandSystemAspNetModule. To see how easy it is to install the XpandSystemWindowsFormsModule watch the next video. Note that it is also possible to create object relationship for the web. 2. Simple association In the next video you can see how we can create a relationship between two entities at runtime. To be more specific I will create a relationship between the TopicIcon and The Category business objects. I already have a sample application and logged in as the Admin user so the relationship I will create it will be stored in...
    28-07-2013, 18:46 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία:
  • Gotcha: Java Calendar class returns 0-based month, but 1-based days

    Just noticed that the Java Calendar class breaks the least-user-expected rule (that is don’t make something behave in the least expected way) regarding the indexing of the month value it returns, compared to all other indexed variables it can return (like day of year, day of month, day of week etc.). The former is using […]...
    18-07-2013, 14:02 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , , , ,
  • Runtime views created from business users

    You all know the powerful Application Model Editor with the embedded layout control that allows view creation without any technical knowledge. However the Model Editor is so powerful that may be dangerous to allow access to everybody. A few years now in eXpand we have the XpandViewVariants module that allowed end users to build views without the model editor. This modules is based in XAF ’s built-in ViewVariants module and the XAF team is constantly improving it. However eXpand resources are not so huge so our module was a bit outdated. Today things changed, because I spend some hours to refactor the ModifyVariantsController and now can do magic. if you using eXpand you only need to install XpandViewVariants module, if not and thanks to XAF’s MVC architecture just grab the controller for eXpand’s online repository http://goo.gl/mnFR7 or even follow its history http://goo.gl/CPx5A . Now simply watch the next video to see that this controller can do for you. http://screencast.com/t/nrELagRJBhY P.S.: We really appreciate...
    16-07-2013, 10:23 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία:
  • HowTo: Bind ASP.net control to list of files or folders

    At from ClipFlair Gallery metadata input pages for Activities and Clips I had to bind an ASP.net control to a list of files and folders respectively and although I found a Folder Contents DataSource control, it didn’t cover my needs (like filtering of a folder contents). I just contributed my solution using .NET Anonymous Types and […]...
    15-07-2013, 03:33 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , , , , , , ,
  • Anonymous authentication for XAF aps.net applications

    As promised  in eXpand’s forums with next version of eXpand (13.1.5.8) you can enjoy anonymous authentication for your web applications! The anonymous authentication functionality is embedded in Xpand.ExpressApp.Security.Web module. After installing this module you need to enable it and setup the anonymous username using XAF ’s Application Model Editor . It is possible and recommended to combine anonymous authentication with auto-authentication discussed in http://apobekiaris.blogspot.gr/2013/07/auto-authentication-rememberme-for-your.html . Note that the model of the previous post is refactored to allow each feature to work independently. Next you need to configure XAF’s security system by setting up the Authentication and the LogonParameters as illustrated in the image bellow.   And finally you need to create the anonymous user and role in your ModuleUpdater .cs. For this and if your use XpandRole class I provided the next extensions methods (GetAnonymousRole, GetAnonymousUser). void CreateAnonymousSecurityObjects...
    14-07-2013, 17:21 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία: ,
  • HowTo: Remove invalid filename characters in .NET

    In ClipFlair Studio I use DotNetZip (Ionic.Zip) library for storing components (like the activity and its nested child components) to ZIP archives (.clipflair or .clipflair.zip files). Inside the ZIP archive its child components have their own .clipflair.zip file and so on (so that you could even nest activities at any depth) which construct their filename […]...
    12-07-2013, 23:28 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , , , , , , ,
  • Reviewing “Getting Started with nopCommerce” book

    Usually I am not reviewing software books but recently I have purchased and read Getting Started with nopCommerce The overwhelming majority of my websites are built using NopCommerce (ASP.Net MVC,Entity Framework,JQuery). I am a senior developer at a small company (NopServices – http://www.nopservices.com ) that use NopCommerce as the shopping cart of choice, so I grabbed this book just out of sheer curiosity. I use this book to help content writers/managers who work under me at my day job acclimated to NopCommerce so that they are able to take the sites I have built, add products, add content and in general make all the necessary configurations. This book is rather short is very easy to read and understand. The whole learning experience is smooth because of the many screenshots that appear in the book. In the first chapter, the reader can understand what are the prerequisites and requirements in order to work with NopCommerce. Then we learn how to install the various components, install SQL Server and Visual...
    11-07-2013, 17:32 από το μέλος nikolaosk στο Dot Net Rules
  • HowTo: Perform ASP.net action after page child controls are databound

    While creating metadata entry/update pages for ClipFlair’s Activity and Clip Galleries I had the problem of figuring out how to do some initialization (from XML data, loaded from a filename based on the 1st item of a DataBound control), after all child controls of the ASP.net Page have been databound (from XmlDataSource). Seems others have […]...
    11-07-2013, 11:57 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , , ,
  • Auto authentication + rememberme for your XAF web apps coming

    In next version 13.1.5.2 of eXpandframework there is a new Security module for web (Xpand.ExpressApp.Security.Web.dll) that can automatically logon using forms authentication. It is based on the CanAutomaticallyLogonWithStoredLogonParameters functionality of XAF web apps. Installation To use it simply install the Xpand.ExpressApp.Security and use the XpandLogonParameters object in your authentication type To enable this functionality as usual we need to use XAF’s Application Model editor . As you can see in the image above it is possible to control the ticket expiration as well. By default XpandLogonParameters will render a RememberMe checkbox However again using Model Editor we can simply remove the RememberMe PropertyEditor and the auto authentication will work for any user logged in last!   Happy XAFing to everyone! and do not forget your input in our forums http://www.expandframework.com/forum/11-news/3452-auto-authenticate-and-remember-me.html#4007 P.S.: Here is the related code in our github repo http://goo.gl/XfIP...
    10-07-2013, 15:24 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία: , , ,
  • Poll - Which of the following eXpand modules/feautres do you use most?

    Our community project ( www. eXpandframework .com) is growing fast and thanks everybody for the contribution and trust! However in order to use our limited resources better and make some plans for the future I would to ask your participation in the following survey. I would like to ask your input one more time in the following survey: Click here to take survey...
    09-07-2013, 05:39 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία:
  • Which eXpand module/feature do you use most?

    Our community project ( www. eXpandframework .com) is growing fast and thanks everybody for the contribution and trust! However in order to use our limited resources better and make some plans for the future I would to ask your participation in the following survey. I would like to ask your input one more time in the following survey: Click here to take survey...
    09-07-2013, 05:14 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία:
  • DetailView as a PreView in GridView

    Recently I had the need to display a complex layout as a preview row in my AspxGridView. Instead of adding a nonpersistent property where I will construct the html I though it would be easier to simply use XAF ’s ModelEditor to design a DetailView and then assign that in my preview row. After one hour or less I ended up with this controller.     [ ModelAbstractClass ]     public interface IModelListViewPreviewRowDetailView : IModelListView {         [ DataSourceProperty ( ModelViewsDomainLogic . DataSourcePropertyPath )]         [ DataSourceCriteria ( ModelObjectViewDomainLogic . ModelViewsByClassCriteria )]         [ Category ( "eXpand" )]         IModelDetailView PreviewRowDetailView { get ; set ; }     }       public class PreviewRowDetailViewController : ViewController < ListView >, IModelExtender...
    09-07-2013, 04:30 από A.Bekiaris's .Net / XAF Blog στο A. Bekiaris's Blog
    Δημοσίευση στην κατηγορία:
  • Visual Studio 2012 tips that will improve your coding speed - Web developers

    Disable "Start Page" There is no reason to wait every time for the "Start Page" to load its contents from the internet and display. So the best thing to do is disable it using the checkbox at the left, bottom of it Switch between/Execute programs on taskbar without the mouse You can use the Win + Number to switch between the open programs in the taskbar. If the program is not running it will execute, otherwise it will get the focus. Win + Shift + Number will open a new instance of the progam on the taskbar. Those are extremely useful especially when you are doing web development and want to be able to switch between browser windows and VS. Finaly, the most important Win + Ctrl + Shift + Number will run the program as administrator. Associate "Open Containing folder to a shortcut Go to "Quick Launch" and start typing "Keyboard...". Select "Environment -> Keyboard". In the "Show command containing" write "OpenContaining" and select the match at the list below. Assign the shortcut key (eg press "Ctrl + Shift +...
    08-07-2013, 07:40 από Ioannis Panagopoulos blog στο C# and .NET Tips and Tricks
    Δημοσίευση στην κατηγορία:
  • Implementing a JSON REST service with ASP.NET MVC

    Two years ago, I have written a post about implementing a REST service using WCF. Back then, I didn't know that I was referring to services over the HTTP protocol which are not necessarily REST. Nevertheless, since it seems (from my blog analytics point of view) that people out there when they search for REST services actually imply services over the HTTP protocol or not SOAP more generally I kept the same title in this post. The point is that you have some kind of client code in javascript and you need to implement in ASP.NET MVC a bunch of services that support getting/putting data from/to your database. In this post we will see how to take advantage of ASP.NET MVC 3 to implement such a JSON service and explore how you can pass data back and forth. I could write this post for ASP.NET MVC4 but in many ways I believe that knowning how to do that in ASP.NET MVC3 helps you understand a lot of the automations that the new MVC version has brought to the picture. Taking also advantage of the WebAPI in ASP.NET MVC4...
    26-06-2013, 10:26 από Ioannis Panagopoulos blog στο C# and .NET Tips and Tricks
    Δημοσίευση στην κατηγορία:
  • An introduction to creating scalable Single Page Applications with Knockoutjs and SASS

    Everyone who develops web applications (or websites in general) knows that the basic tools for creating simple "Single Page Applications" are HTML5, CSS3, JQuery and a server side framework (such as ASP.NET MVC) for serving data to AJAX requests. Although those are sufficient for implementing SPAs, they tend to lead to implementations that violate basic software design principles, leading to designs that are not easily scalable, difficult to debug and overly complicated. In this post we will see how we can take advantage of the Knockoutjs and Syntactically Awsome StyleSheets - SASS frameworks in order to design SPAs that respect: The "Single Responsibility Princile - SRP" that states that each software module should be responsible for only one thing in your code. In our case, we will implement the Model-View-View-Model pattern using the Knockoutjs framework to clearly separate the logic that drives the workings of UI from the logic that provides the data/behavior for the UI The "Do not Repeat Yourself Principle...
    25-06-2013, 20:05 από Ioannis Panagopoulos blog στο C# and .NET Tips and Tricks
  • Fix: Java ServletException: IncompatibleClassChangeError

    was getting an error like the following at your JavaEE Servlet (Portlets are also Servlets under the hood btw): javax.servlet.ServletException: javax.portlet.PortletException: java.lang.Throwable: java.lang.IncompatibleClassChangeError: : incorrect call to interface method   at first I thought the issue was with:   <bean:message class=”someCSSstyleClass” key="someMsgKey"/>   and used instead:   <span class="someCSSstyleClass"><bean:message key="someMsgKey"/></span>   in case the “class” […]...
    25-06-2013, 18:49 από George Birbilis @zoomicon στο George Birbilis' blog
    Δημοσίευση στην κατηγορία: , , , , , , , , , ,
Περισσότερες Δημοσιεύσεις « Προηγούμενη - Επόμενη »
Με χρήση του Community Server (Commercial Edition), από την Telligent Systems