Found 11 packages
The `ViewItemValue` helps end-users to configure the default values for lookup view items.
This library provides controls for use in XAML which don't provide their own style. It is a part of the Windows Community Toolkit. Controls: - AdaptiveGridView: Presents items in an evenly-spaced set of columns to fill the total available space. - ConstrainedBox: Constrain child element by aspect ratio, scale, or multiple. - DockPanel: Define areas where you can arrange child elements either horizontally or vertically, relative to each other. - StaggeredLayout: Layout of items in a column approach where an item will be added to whichever column has used the least amount of space. - StaggeredPanel: Layout of items in a column approach where an item will be added to whichever column has used the least amount of space. - SwitchPresenter: A presenter which can act as a switch statement for layout providing alternate layouts based on a value. - UniformGrid: Presents items in an evenly-spaced set of rows or columns to fill the total available display space. - WrapLayout: Positions child elements in sequential position from left to right and breaks content to the next line. - WrapPanel: Positions child elements in sequential position from left to right and breaks content to the next line.
This plugin allows for a popup to contain a Xamarin.Forms Picker Control. It will take a model of value and description and be able to return the item picked as object.
This library provides controls for use in XAML which don't provide their own style. It is a part of the Windows Community Toolkit. Controls: - AdaptiveGridView: Presents items in an evenly-spaced set of columns to fill the total available space. - DockPanel: Define areas where you can arrange child elements either horizontally or vertically, relative to each other. - StaggeredLayout: Layout of items in a column approach where an item will be added to whichever column has used the least amount of space. - StaggeredPanel: Layout of items in a column approach where an item will be added to whichever column has used the least amount of space. - SwitchPresenter: A presenter which can act as a switch statement for layout providing alternate layouts based on a value. - UniformGrid: Presents items in an evenly-spaced set of rows or columns to fill the total available display space. - WrapLayout: Positions child elements in sequential position from left to right and breaks content to the next line. - WrapPanel: Positions child elements in sequential position from left to right and breaks content to the next line.
Requires Sitecore 10.3 Requires .NET Framework 4.8 Constellation is a collection of utilities for .NET CMS implementers. The Feature.Navigation library addresses the three most common forms of Navigation on Sitecore sites: Declared (static) Navigation: (explicitly defined, may differ from the shape of the content tree) - DeclaredNavigationRepository.GetNavigation - Accepts a Navigation Menu item and assembles a full tree-like ViewModel for immediate processing in your View. If you need context highlighting in your navigation, be sure to pass in the Context Item as well. When using NavigationLink objects, there are usually several opportunities to supply the text of a given link. NavigationLink.GetBestLinkText() evaluates all of them and attempts to supply the best fit. The strategy is based on overriding the concept of "name". Here are the rules: - If Use This Display Name is checked on the NavigationLink item, it wins. - If the Link.Text is supplied by the user, it wins. - If the Link.TargetItem exists and inherits from Page Navigation Title, and the field value is not null, it wins. - If the Link.TargetItem exists its DisplayName is used. - Assuming all other things are not true, use the NavigationLink's DisplayName. Note that in this condition if you intended to point to a Sitecore Item, you have a bad link. Branch (Context) Navigation: (implicitly defined. It follows the shape of the Content Tree) - BranchNavigationRepository.GetNavigation - Accepts the request Context Item (should be a Page) and generates a tree of BranchNodes representing the nearest LandingPage, its children, as well as the descendants of any children that are Ancestors of the Context Item. (will also create Children for the Context Item node in the tree). Use this to produce the expanded navigation seen on many sites with deep content. Breadcrumbs: (implicitly defined. It walks up the Content Tree to get the path) - BreadcrumbNavigationRepository.GetNavigation - Accepts the request Context Item and Context SiteInfo. Generates an array of Breadcrumb models you can enumerate on your View. The breadcrumbs will start on your Site's StartItem and end with the supplied Context Item, which will be marked IsContextItem so you can change your rendering behavior. Uses the Item.Axes.GetAncestors() method to generate the list of breadcrumbs. The included package must be installed to use this library. This should happen automatically after you build and deploy your project.
This package is a Windows core extension to the Legerity framework for speeding up the development of automated UI tests with Selenium/Appium including: - WindowsElementWrapper, for creating element wrappers for custom controls - AppBarButton, a clickable app bar button element - AppBarToggleButton, an app bar button element with a toggle state - AutoSuggestBox, a text input element which also has auto-complete capabilities - Button, a clickable button element - CalendarDatePicker, a popup element with capabilities to select a date from a calendar - CalendarView, a calendar date picker element - CheckBox, a checkable element - ComboBox, a drop down selector - CommandBar, a wrapper element for displaying app bar button elements - DatePicker, an element for selecting and validating dates - FlipView, a carousel-like element for viewing items within a collection - GridView, a visual list based element which shows items in a grid - Hub, a layout element for displaying content within sections - HyperlinkButton, a clickable URL button element - InkToolbar, a wrapper element for displaying ink selection elements - ListBox, a list item selector - ListView, a visual list based element which shows items in a vertical list - MenuFlyoutItem, a clickable element from a menu flyout - MenuFlyoutSubItem, a clickable sub element of a menu flyout item - PasswordBox, a text input element for secret values - Pivot, a layout element for displaying content on pivotal pages - ProgressBar, a visual indicator element for percentage progress - ProgressRing, a visual indicator element for progress - RadioButton, a selectable button element - Slider, a value selection element that allows a value to be selected in a range - TextBlock, a readonly text element - TextBox, a text input element - TimePicker, an element for selecting and validating time - ToggleButton, a button element with a toggle state - ToggleSwitch, a slider element with an on/off toggle state
This is a Library designed to ease working within an MVVM framework, and is meant to consolidate boiler-plate ViewModel interactions for common WPF controls into pre-built classes. ## Example - A simplified ComboBox Experience A ComboBoxDefinition has the following properties that the ViewModel may interact with, and are easily bound within the XAML using a single binding. - ItemSource (The items within the drop-down) - SelectedItem (The currently selected item) - SelectedValue \ SelectedValuePath ( The value of the SelectedItem, as an object, typically a property of the item ) - SelectedItemChanged event - Occurs and a new item is selected - ItemSourceChanged event - Occurs when the itemsource is updated - IsEnabled - Enable/Disable a control from within the ViewModel - Visibilty / IsVisible - Toggle visibility of an item from within the ViewModel ## XAML: <ComboBox MvvmControls:ControlDefinitions.ComboBoxDefinition="{Binding MyComboBox}" />
更新内容: 1、[增强] [转换器] StringFormatConverter 添加属性 IsEmptyNotApplyFormat,可设置为 true:绑定值为空时不进行格式化处理。 2、[新增] [转换器] BoolToOtherResultConverter:Bool 值转其它类型的结果(以标记扩展方式使用)。 3、[增强] [附加属性] SelectorItemDragState.IsUnderDragCursor、IsBeingDragged 支持继承。 *********************************************** 本库为一款【WPF 帮助类库】,包含但不限于以下内容: 01、MVVM 基础支持类(命令:RelayCommand;绑定:ObservableObject、SimpleBindableBase、NotifyDataErrorObject、ViewModelBase)。 02、WPF 帮助类(BindingProxy、ResourceBinding、MediaColorHelper、FrameworkElementHelper、ConverterHelper 等)。 03、附加属性帮助类(WpfXamlPropProxy、BringIntoViewBehavior、ExportPicAttached、WpfTouchScrollHelper、GridHelper、FocusAttached、DataGridAttached、 TextBoxAttached、LabelAttached、RadioButtonAttached、RotateToTranslateAttachedV2、LocationTargetRenderOriginAttached、TabControlAttached 等)。 04、行为类(DragInCanvasBehavior、SelectedItemBehavior、AttachAdornerBehavior 等)。 05、样式(<ResourceDictionary Source="pack://application:,,,/WPFTemplateLib;component/Styles/StyleDictionary.xaml" />); 默认主题(不引入则不设置默认样式)(<ResourceDictionary Source="pack://application:,,,/WPFTemplateLib;component/Styles/DefaultThemeDictionary.xaml" />); 颜色主题(部分控件有效):[默认]蓝色(*/Light.Blue.xaml)、绿色(<ResourceDictionary Source="pack://application:,,,/WPFTemplateLib;component/Themes/Light.Green.xaml" />)。 06、转换器("<ResourceDictionary Source="pack://application:,,,/WPFTemplateLib;component/WpfConverters/ConverterDictionary.xaml" />) 07、配置属性系统(ConfigManager)。 08、自定义控件(Toast、ToastTextBlock、SystemDropShadowChrome、XUI:Form、PanelWithMessage、CircleWithInOutText、PP:CornerClip、FlipableControl、FlipableContentControl、 Handy:UniformSpacingPanel、PP:DateTimePicker、PP:SimplePanel、Handy:Row/Col、AutoGrid、TitleValueUnit、fruit:Table、fruit:PasswordInput、mah:MetroHeader 等)。 09、用户控件(UC_InfoRegion、CircleWithTextBox、UC_Wait、UC_ConfirmBox 等)。 10、类型转换器(EnumDescriptionTypeConverter)。 11、在行为中使用的事件触发器(RoutedEventTrigger)。 12、增强类(FixedCountObservableCollection、RangeObservableCollection 等)。 13、一个常用值类 CommonValues(目前有两个布尔值:TrueValue、FalseValue)。 14、标记扩展(lib:IntValue、SolidColorBrushValue、BoolValue、VisibilityValue 等)。 基础说明: - Xaml 命名空间:xmlns:lib="https://gitee.com/dlgcy/WPFTemplateLib" 。 - 样式以"LibSty"开头,控件模版以"LibTpl"开头。WPF 系统样式以"SysSty"开头,控件模板以"SysTpl"开头。 - 转换器列表:https://gitee.com/dlgcy/WPFTemplateLib/blob/master/WpfConverters/ConverterDictionary.xaml - 默认主题的内容:https://gitee.com/dlgcy/WPFTemplateLib/blob/master/Styles/DefaultThemeDictionary.xaml - 转换器等地方需要指定值转换模式的,使用以下枚举名或值:Visibility(1)、Bool(2)、String(3)、Int(4)、Float(5)、Double(6)、SolidColorBrush(7)、UInt(8)、Short(9)、UShort(10)、Byte(11)、Long(12)。 或者整体使用[静态类]UsefulConvertParaStr,如:UsefulConvertParaStr.VisibleCollapsed、TrueFalse。 使用方法详见: 1、https://gitee.com/dlgcy/DLGCY_WPFPractice 2、https://gitee.com/dlgcy/WPFTemplate 3、https://dlgcy.com 4、https://gitee.com/dlgcy/WpfAnimationDemo 一部分是搬运修改网上的资源,一部分是自己原创,以自用为主,感兴趣的朋友也可以使用,欢迎交流讨论(微信公众号:独立观察员博客)。 重要更改基本在本人业余时间完成,仅代表个人立场,与本人所在公司无关。 免责声明:本库及维护者不对使用产生的任何问题负责,请自行充分测试。 严正声明:禁止在 996 以及相似类型的公司中使用本库。
Java Tabmenu Datagrid public T> ListT> get(String path, Type t) throws Exception { return gs.fromJson(result, TypeToken.getParameterized(List.class, t).getType()); @ManagedBean(name = "slotController", eager = true) @ViewScoped p:growl id="growl" sticky="true" /> return gs.fromJson(result, TypeToken.getParameterized(List.class, t).getType()); p:selectOneMenu value="#{todoControl.addToDo.taskId}"> f:selectItem itemLabel="Select One" itemValue="" /> f:selectItems value="#{taskControl.taskList}" var="taskitem" itemLabel="#{taskitem.name} #{taskitem.taskId}" itemValue="#{taskitem.taskId}"/> p:column> #{taskitem.name} - #{taskitem.taskId} /p:column> /p:selectOneMenu> p:column headerText="Edit"> p:commandButton update=":todoform:display" value="Edit: #{todo.toDoId}" oncomplete="PF('tdlg').show()"> f:setPropertyActionListener value="#{todo}" target="#{todoControl.editToDo}" /> /p:commandButton> /p:column> p:dialog widgetVar="tdlg"> h:panelGrid id="display" columns="2"> h:outputText value="Edit"/> h:inputText value="#{todoControl.editToDo.name}" /> h:outputText value="Content" /> h:inputText value="#{todoControl.editToDo.content}" /> h:outputText value="Deadline"/> p:calendar value="#{todoControl.editToDo.deadLine}" pattern="MM/dd/yyyy HH:mm" /> h:outputText value="Taskid" /> h:inputText value="#{todoControl.editToDo.taskId}" /> p:commandButton value="Save" update="todoform" action="#{todoControl.updateToDo}" /> /h:panelGrid>
How call from project with help PowerShell window: PM> dotnet [Полный путь к компоненте Core.ORM.Procedures.Component.dll] [Имя подключения к БД в конфигурационном файле] [Тип получаемых объектов ("procedure" или "table")] [Путь к корню проекта в котором необходимы модели] [Процедура1 Процедура2] For Example: // Data for create Tables models and Direct file // string[] str = new string[] { "PRIZDB", "C:\\Project_Admin\\Core.ORM.Procedures\\Core.ORM.Procedures\\Core.ORM.Procedures.Web.Test", "table", "AccessMatrix", "AccessLevel", "AccessMatrixRole" }; // Data for create Procedures models and Direct file // string[] str = new string[] { "PRIZDB", "C:\\Project_Admin\\Core.ORM.Procedures\\Core.ORM.Procedures\\Core.ORM.Procedures.Web.Test", "procedure", "GetFormIdBySysName", "AddActivityOKPD", "GetFinValuePoint", "AddOIV", "LoadReport" }; // Create Process var s = new Core.ORM.Procedures.Component.Program(str); //var res = new Models.PRIZDB.Operations.PRIZDBEntities(configuration).GetFinValuePoint("550-966", null, null);//Error sql (Input/Output)(Error) //var res = new Models.PRIZDB.Operations.PRIZDBEntities(configuration).total_GetBooleanList(); // List without input parametrs (Success) //var res = new Models.PRIZDB.Operations.PRIZDBEntities(configuration).uniwp_GetChReqListForUser("HQ\\EvdokimovIP"); //With parameter (Input)(Success) //var res = new Models.PRIZDB.Operations.PRIZDBEntities(configuration).GetFormIdBySysName("Contract2014", null); // With OUTPUT Params //var res = new Models.PRIZDB.Operations.PRIZDBEntities(configuration).AccessLevel(); // Execute Table without Parameters //var res = new Models.PRIZDB.Operations.PRIZDBEntities(configuration).AccessLevel(1,null,null,null,null,null); // Execute Table with Parameters public IConfiguration Configuration { get; } var s = new Procedures.Component.Controllers.DbContext("PRIZDB", configuration); s.OnModelCreating(new string[] { "SetLog", "cntr_ViewDeterminationMethodList", "REPORT_PlanPurchaseNewForm", "SP_GetAdditionalConditions", "GetKBKTargetItemAsur" });
private void Directions_SelectionChanged(object sender, SelectionChangedEventArgs e) { using (var connection = new SqlConnection("Server=(localdb)\\mssqllocaldb;Database=shoidaaaaaaaaaa;")) { if (Directions.SelectedIndex != -1) { var select = Directions.SelectedItem; SqlCommand command = new SqlCommand("SELECT * FROM Event INNER JOIN Directions ON Event.id = Directions.id where Directions.name = @select", connection); command.Parameters.AddWithValue("@select", select); connection.Open(); SqlDataReader reader = command.ExecuteReader(); DataTable dataTable = new DataTable(); dataTable.Load(reader); // Load data from SqlDataReader into DataTable EventsListView.ItemsSource = dataTable.DefaultView; // Set DataTable as ItemsSource } else { SqlCommand command = new SqlCommand("SELECT * FROM Event INNER JOIN Directions ON Event.id = Directions.id", connection); connection.Open(); SqlDataReader reader = command.ExecuteReader(); DataTable dataTable = new DataTable(); dataTable.Load(reader); // Load data from SqlDataReader into DataTable EventsListView.ItemsSource = dataTable.DefaultView; // Set DataTable as ItemsSource } connection.Close(); } } private void Date_SelectedDateChanged(object sender, SelectionChangedEventArgs e) { using (var connection = new SqlConnection("Server=(localdb)\\mssqllocaldb;Database=shoidaaaaaaaaaa;")) { if (Date.SelectedDate != null) { DateTime selectedDate = Date.SelectedDate.Value; SqlCommand command = new SqlCommand("SELECT * FROM Event INNER JOIN Directions ON Event.id = Directions.id where Event.Date = @selectedDate", connection); command.Parameters.AddWithValue("@selectedDate", selectedDate); connection.Open(); SqlDataReader reader = command.ExecuteReader(); DataTable dataTable = new DataTable(); dataTable.Load(reader); // Load data from SqlDataReader into DataTable EventsListView.ItemsSource = dataTable.DefaultView; } else { SqlCommand command = new SqlCommand("SELECT * FROM Event INNER JOIN Directions ON Event.id = Directions.id", connection); connection.Open(); SqlDataReader reader = command.ExecuteReader(); DataTable dataTable = new DataTable(); dataTable.Load(reader); // Load data from SqlDataReader into DataTable EventsListView.ItemsSource = dataTable.DefaultView; // Set DataTable as ItemsSource } } }